1. 18 Jan, 2011 13 commits
  2. 14 Jan, 2011 1 commit
  3. 30 Sep, 2010 1 commit
    • Iustin Pop's avatar
      Change behaviour of OpDiagnoseOS w.r.t. 'valid' · d22dfef7
      Iustin Pop authored
      This patch changes the behaviour of OpDiagnoseOS with regards to the
      'valid' field to be similar to the one for the hidden/blacklisted
      fields: unless this field is requested, invalid OSes are filtered out.
      The rationale is that, except for the gnt-os info/diagnose, all other
      users of this opcode are requesting the valid field just to filter out
      invalid OSes, and not for any other use. Thus, changing this behaviour
      makes these callers simpler.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
  4. 29 Jul, 2010 1 commit
    • Iustin Pop's avatar
      burning: fix handling of empty job sets · 78bb78b1
      Iustin Pop authored
      If we call burning with only existing instance, then it will fail to
      create any of them, and thus in the removal phase it won't have anything
      to remove. Since calling luxi.SUBMIT_MULTIPLE_JOBS with an empty job set
      is an error (and will raise an exception), this creates a very strange
      error in burnin (which is unfortunately hidden by ExecJobSet()).
      As such, we modify CommitQueue to return immediately if it has an empty
      op queue.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
  5. 23 Jul, 2010 1 commit
  6. 07 Jul, 2010 1 commit
  7. 28 Jun, 2010 1 commit
    • Guido Trotter's avatar
      Remove pred from compat.any/all · 403f5172
      Guido Trotter authored
      This makes it compatible with the python builtin, and we can even use
      the builtin when running under the right version of python. The all and
      any functions are renamed to _all and _any, so that they can be tested,
      and (non)existing unittests are updated (translation: there are no unit
      tests, so none are updated).
      This patch also moves the code deciding which partial to use next to
      the definition of the _partial function, rather than after TryToRoman.
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
  8. 23 Jun, 2010 2 commits
  9. 21 Apr, 2010 2 commits
  10. 15 Apr, 2010 1 commit
  11. 09 Apr, 2010 3 commits
  12. 06 Apr, 2010 1 commit
  13. 23 Mar, 2010 1 commit
  14. 18 Mar, 2010 2 commits
  15. 11 Mar, 2010 2 commits
  16. 08 Mar, 2010 1 commit
  17. 11 Feb, 2010 1 commit
  18. 09 Feb, 2010 1 commit
    • Iustin Pop's avatar
      Add an early release lock/storage for disk replace · 7ea7bcf6
      Iustin Pop authored
      This patch adds an early_release parameter in the OpReplaceDisks and
      OpEvacuateNode opcodes, allowing earlier release of storage and more
      importantly of internal Ganeti locks.
      The behaviour of the early release is that any locks and storage on all
      secondary nodes are released early. This is valid for change secondary
      (where we remove the storage on the old secondary, and release the locks
      on the old and new secondary) and replace on secondary (where we remove
      the old storage and release the lock on the secondary node.
      Using this, on a three node setup:
      - instance1 on nodes A:B
      - instance2 on nodes C:B
      It is possible to run in parallel a replace-disks -s (on secondary) for
      instances 1 and 2.
      Replace on primary will remove the storage, but not the locks, as we use
      the primary node later in the LU to check consistency.
      It is debatable whether to also remove the locks on the primary node,
      and thus making replace-disks keep zero locks during the sync. While
      this would allow greatly enhanced parallelism, let's first see how
      removal of secondary locks works.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
  19. 04 Jan, 2010 4 commits