1. 18 Jan, 2011 3 commits
  2. 10 Jan, 2011 2 commits
    • Adeodato Simo's avatar
      Add OpAssignGroupNodes and LUAssignGroupNodes · 96276ae7
      Adeodato Simo authored
      
      
      This operation allows to assign nodes to a group, verifying whether
      the change would leave any mirrored instance split between different
      node groups.
      Signed-off-by: default avatarAdeodato Simo <dato@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      96276ae7
    • Iustin Pop's avatar
      Generalize the OpCode-should-be-in-mcpu test · 687c10d9
      Iustin Pop authored
      
      
      Currently, the unittest TestDispatchTable in mcpu unittest does a
      hard-coded approach to test whether an opcode should be included or
      not in the mcpu.Processor dispatch table. This is not flexible, so we
      replace it with two changes:
      
      - first, we do not return the base OpCode in opcodes.OP_MAPPING;
        rationale being that we shouldn't need to serialise or deserialise
        this opcode during normal operation
      - second, we add a new attribute WITH_LU (other name suggestions
        welcome) to the base opcode set to True, and we explicitly set it to
        False in OpTestDummy, thus automatic skipping of such LUs in the
        unittest (and in other places)
      
      To correct for the new behaviour, the tests in the opcode unittests
      are updated to include OpCode explicitly.
      
      Note: we also replace assert_ with assertTrue in the affected unittest
      (as assert_ is deprecated in 2.7).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      687c10d9
  3. 06 Jan, 2011 1 commit
  4. 05 Jan, 2011 4 commits
  5. 17 Dec, 2010 1 commit
  6. 15 Dec, 2010 1 commit
  7. 13 Dec, 2010 4 commits
  8. 08 Dec, 2010 3 commits
  9. 07 Dec, 2010 1 commit
  10. 02 Dec, 2010 1 commit
  11. 01 Dec, 2010 1 commit
  12. 29 Nov, 2010 2 commits
  13. 24 Nov, 2010 1 commit
  14. 01 Nov, 2010 1 commit
  15. 28 Oct, 2010 2 commits
  16. 27 Oct, 2010 1 commit
  17. 26 Oct, 2010 2 commits
  18. 21 Oct, 2010 1 commit
  19. 20 Oct, 2010 1 commit
  20. 05 Oct, 2010 1 commit
  21. 30 Sep, 2010 1 commit
  22. 20 Sep, 2010 1 commit
    • Michael Hanselmann's avatar
      jqueue: Change model from per-job to per-opcode processing · be760ba8
      Michael Hanselmann authored
      
      
      In order to support priorities, the processing of jobs needs to be
      changed. Instead of processing jobs as a whole, the code is changed to
      process one opcode at a time and then return to the queue. See the
      Ganeti 2.3 design document for details.
      
      This patch does not yet use priorities for acquiring locks.
      
      The enclosed unittests increase the test coverage of jqueue.py from
      about 34% to 58%. Please note that they also test some parts not added
      by this patch, but testing them became only possible with some
      infrastructure added by this patch. For the first time, many
      implications and assumptions for the job queue are codified in these
      unittests.
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      be760ba8
  23. 16 Sep, 2010 1 commit
  24. 14 Sep, 2010 1 commit
  25. 13 Sep, 2010 1 commit
  26. 02 Sep, 2010 1 commit