1. 25 Nov, 2019 1 commit
  2. 05 Nov, 2019 1 commit
  3. 01 Oct, 2019 4 commits
  4. 01 Aug, 2019 2 commits
  5. 22 Mar, 2019 2 commits
    • Jérome Perrin's avatar
      slapproxy: update database version to 13 · d0ce721b
      Jérome Perrin authored
      Because we want to trigger an upgrade that will remove old tables.
      
      Note that re-dumping database_dump_version_current fixed the column
      order in software table - the dump was incorrect (this also change
      output of `proxy show` for this test)
      d0ce721b
    • Jérome Perrin's avatar
      slapproxy: remove old tables on migration · 2f83e1e7
      Jérome Perrin authored
      Instead of keeping old tables which cause confusion for humans and tools
      directly operating on the database, remove old tables and create a
      separate backup file.
      2f83e1e7
  6. 07 Mar, 2019 1 commit
  7. 18 Feb, 2019 1 commit
  8. 07 Feb, 2019 1 commit
  9. 20 Dec, 2018 3 commits
  10. 16 Dec, 2018 1 commit
  11. 14 Dec, 2018 1 commit
  12. 30 Jul, 2018 1 commit
  13. 20 Jul, 2018 1 commit
    • Rafael Monnerat's avatar
      API Change: Remove available/building API from Computer Partition · 9fdaa54d
      Rafael Monnerat authored
        The API that notify availability and building from Computer Partition is unecessary and it's
        implementation overuse resources and cause flaky effect on the state of the Computer Partition.
      
        At the Software Release, the states can be available/building/error, and this state tens to be
        immutable once the software release is finished (it will be available, where building and error are
        transitory states).
      
        At Computer Partition, we intent to have started/stopped/destroyed instances, where available and
        building were transitory, but they have no practical function as a second report would come quickly
        after. So we may consider that started is actually same as available, in this case, it is a duplicated
        meaning, as you cannot be available w/o been started/stopped.
      
        computer_partition.building were never used, as the master knew that a partition is been processed,
        so this API were never used.
      
        Report transitory states are prevent us to determinate the actuall state, considering that the latest
        actuall state is more relevant (started/stopped/destroyed).
      9fdaa54d
  14. 20 Jun, 2017 2 commits
  15. 06 Jun, 2017 2 commits
  16. 30 Nov, 2016 1 commit
  17. 25 Oct, 2016 1 commit
  18. 13 Apr, 2016 1 commit
  19. 15 Nov, 2015 2 commits
    • Kirill Smelkov's avatar
      slapproxy: Teach slapproxy to handle non-ascii instance parameters · 347d33d6
      Kirill Smelkov authored
      1. when forming instance parameters xml dict on client side, we cannot
         use str() to convert parameter_value to string - because it breaks e.g.
         this way:
      
         In [1]: s = u'Привет Мир!'
         In [2]: str(s)
         ---------------------------------------------------------------------------
         UnicodeEncodeError                        Traceback (most recent call
      
         UnicodeEncodeError: 'ascii' codec can't encode characters in position
         0-5: ordinal not in range(128)
      
         Fix is: convert arguments to unicode strings.
      
      2. when decoding xml on server side it was erroneously assumed to be
         always unicode, and this way xml.encode('utf-8') fails if xml is str
         but with non-ascii characters:
      
         In [3]: r = 'hello world'
      
         In [4]: r.encode('utf-8')
         Out[4]: 'hello world'
      
         In [5]: t = s.encode('utf-8')
      
         In [6]: t
         Out[6]: '\xd0\x9f\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82 \xd0\x9c\xd0\xb8\xd1\x80!'
      
         In [7]: t.encode('utf-8')
         ---------------------------------------------------------------------------
         UnicodeDecodeError                        Traceback (most recent call last)
      
         UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
      
         Fix is: don't assume xml string is unicode and decode it only, if it
                 is unicode, and leave as it is if it is just str.
      347d33d6
    • Kirill Smelkov's avatar
      *: Factor opening sqlite db into separate function · 8bf68261
      Kirill Smelkov authored
      Currently it is just sqlite3.connect(), but we'll want to add connection
      autotuning in the next patch, so before that let's consolidate all
      sqlite opening places in the code into one.
      8bf68261
  20. 16 Jul, 2015 1 commit
  21. 22 Apr, 2015 1 commit
  22. 25 Mar, 2015 1 commit
  23. 05 Jan, 2015 1 commit
  24. 18 Nov, 2014 2 commits
  25. 14 Nov, 2014 1 commit
  26. 13 Nov, 2014 1 commit
  27. 10 Nov, 2014 3 commits