1. 13 May, 2011 2 commits
    • Apollon Oikonomopoulos's avatar
      TLMigrateInstance: do not migrate to self · dcfb969a
      Apollon Oikonomopoulos authored
      Check that the instance is not being migrated to its current primary node
      during CheckPrereq. Otherwise migration is aborted because the instance is
      already running and cleaned-up, which causes the running instance to be killed.
      Signed-off-by: default avatarApollon Oikonomopoulos <apollon@noc.grnet.gr>
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
    • Michael Hanselmann's avatar
      SharedLock: Implement downgrade from exclusive to shared mode · 3dbe3ddf
      Michael Hanselmann authored
      If a job needs to modify a resource and then wait for a result, it must
      acquire the resource lock in exclusive mode. In some cases it would be
      possible to only have a shared lock for waiting. Until now it was not
      possible to change a lock's mode once it'd been acquired. Releasing and
      re-acquiring might have been possible, but would require many more
      checks and can introduce new issues.
      With this patch a new method, named “downgrade”, is added to Ganeti's
      own SharedLock class. It can only be called when the lock is held in
      exclusive mode and changes it to shared. If there are any pending shared
      acquires on the same priority, they're moved to the front of the queue
      and notified (jumping ahead of exclusive acquires).
      In a lockset the internal lock will be downgraded if, and only if, all
      individual locks owned by the current thread are either released or
      acquired in shared mode.
      Unittests are provided.
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
  2. 12 May, 2011 4 commits
  3. 11 May, 2011 2 commits
    • Guido Trotter's avatar
      Remove references to acquired_locks · d9f99d88
      Guido Trotter authored
      These sneaked in from 2.4 during the merge, but this attribute is
      actually gone in the master branch.
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
    • Guido Trotter's avatar
      Merge branch 'devel-2.4' · 93384b8c
      Guido Trotter authored
      * devel-2.4:
        Use floppy disk and a second CDROM on KVM
        Document the selection of instance kernels
        Make root_path an optional hypervisor parameter
        Some man page updates
        Add 2 new variables to the OS scripts environment
        Add --no-wait-for-sync when converting to drbd
        Recreate instance disks: allow changing nodes
        Rename instance: only show new name when different
        Fix race condition in LUGroupAssignNodes
        Re-wrap and fix formatting issues in gnt-instance.rst
        Documentation for the new parameters for KVM
        cmdlib: Fix typo, s/nick/NIC/
        A small optimisation in cluster verify
        A few docstring fixes
        luxi: do not handle KeyboardInterrupt
        Handle EPIPE errors while writing to the terminal
        Cluster verify: check for missing bridges
                - manually merge the 2.4 fix
                - add new field from 2.4, but also describe it
                - merge new attributes with general 2.4 manpage fixes
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
  4. 10 May, 2011 16 commits
  5. 09 May, 2011 8 commits
  6. 06 May, 2011 3 commits
  7. 05 May, 2011 4 commits
  8. 04 May, 2011 1 commit