« Previous | Next » 

Revision 78212a5d

ID78212a5db5de43f8c71d74da278c1073d96927ac

Added by Iustin Pop over 14 years ago

TLMigrateInstance: add error messagess during Exec

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: Iustin Pop <>
Reviewed-by: Guido Trotter <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences