TLMigrateInstance: do not migrate to self
authorApollon Oikonomopoulos <apollon@noc.grnet.gr>
Fri, 13 May 2011 13:16:11 +0000 (16:16 +0300)
committerIustin Pop <iustin@google.com>
Fri, 13 May 2011 14:23:02 +0000 (16:23 +0200)
commitdcfb969a58090cb6373f420e6f2554bb387da87f
tree272774d75123f1092708fd8595e75c73b8783aa7
parent3dbe3ddf257082ec3e5b9e3506aabe599ae6a8e3
TLMigrateInstance: do not migrate to self

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: Apollon Oikonomopoulos <apollon@noc.grnet.gr>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py