1. 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>
      7ea7bcf6
  2. 08 Feb, 2010 1 commit
  3. 03 Feb, 2010 3 commits
  4. 28 Jan, 2010 1 commit
  5. 25 Jan, 2010 2 commits
  6. 11 Jan, 2010 1 commit
  7. 05 Jan, 2010 1 commit
  8. 04 Jan, 2010 6 commits
  9. 28 Dec, 2009 4 commits
  10. 16 Dec, 2009 2 commits
  11. 14 Dec, 2009 1 commit
  12. 30 Nov, 2009 1 commit
  13. 26 Nov, 2009 1 commit
  14. 25 Nov, 2009 2 commits
  15. 20 Nov, 2009 1 commit
  16. 16 Nov, 2009 2 commits
  17. 13 Nov, 2009 1 commit
  18. 12 Nov, 2009 1 commit
  19. 06 Nov, 2009 5 commits
  20. 04 Nov, 2009 2 commits
    • Iustin Pop's avatar
      TLMigrateInstance: add error messagess during Exec · 78212a5d
      Iustin Pop authored
      
      
      Currently the migration of an instance doesn't show any error until the
      end. We add two messages that show better the progress:
      
      node1# gnt-instance migrate -f instance5
      Wed Nov  4 04:04:34 2009 Migrating instance instance5
      Wed Nov  4 04:04:34 2009 * checking disk consistency between source and target
      Wed Nov  4 04:04:35 2009 * switching node node3 to secondary mode
      Wed Nov  4 04:04:35 2009 * changing into standalone mode
      Wed Nov  4 04:04:35 2009 * changing disks into dual-master mode
      Wed Nov  4 04:04:40 2009 * wait until resync is done
      Wed Nov  4 04:04:41 2009 * preparing node3 to accept the instance
      Wed Nov  4 04:04:41 2009 * migrating instance to node3
      Wed Nov  4 04:04:51 2009 Migration failed, aborting
      Wed Nov  4 04:04:51 2009 * switching node node3 to secondary mode
      Wed Nov  4 04:04:51 2009 * changing into standalone mode
      Wed Nov  4 04:04:51 2009 * changing disks into single-master mode
      Wed Nov  4 04:04:57 2009 * wait until resync is done
      Failure: command execution error:
      Could not migrate instance instance5: Failed to migrate instance: Failed
      to migrate instance instance5: …
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      78212a5d
    • Iustin Pop's avatar
      Introduce a wrapper for hostname resolving · 104f4ca1
      Iustin Pop authored
      
      
      Currently a few of the LU's CheckPrereq use utils.HostInfo which raises
      a resolver error in case of failure. This is an exception from the
      standard that CheckPrereq should raise an OpPrereqError if the error is
      in the 'pre' phase (so that it can be retried).
      
      This patch adds a new error code (resolver_error) and a wrapper over
      utils.HostInfo that just converts the ResolverError into
      OpPrereqError(…, errors.ECODE_RESOLVER). It then uses this wrapper in
      cmdlib, bootstrap and some scripts.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      104f4ca1
  21. 03 Nov, 2009 1 commit