Skip to content
Snippets Groups Projects
  1. Jan 18, 2011
  2. Jan 10, 2011
    • 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. Jan 06, 2011
  4. Jan 05, 2011
  5. Dec 17, 2010
  6. Dec 15, 2010
  7. Dec 13, 2010
  8. Dec 08, 2010
  9. Dec 07, 2010
  10. Dec 02, 2010
  11. Dec 01, 2010
  12. Nov 29, 2010
  13. Nov 24, 2010
  14. Nov 01, 2010
  15. Oct 28, 2010
  16. Oct 27, 2010
  17. Oct 26, 2010
  18. Oct 21, 2010
  19. Oct 20, 2010
  20. Oct 05, 2010
  21. Sep 30, 2010
  22. Sep 20, 2010
    • 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. Sep 16, 2010
  24. Sep 14, 2010
  25. Sep 13, 2010
  26. Sep 02, 2010
  27. Aug 17, 2010
Loading