Fix DTS_EXT_MIRROR migration
authorApollon Oikonomopoulos <apollon@noc.grnet.gr>
Tue, 22 Mar 2011 16:17:53 +0000 (18:17 +0200)
committerIustin Pop <iustin@google.com>
Thu, 5 May 2011 11:25:08 +0000 (13:25 +0200)
commit1c6e5787d623121134afd93814d1af53b6a03ddb
tree8cce37d727565ebc200780950485ed1ef376b451
parent8b0273a5902233655a75881fa2ab7264eb0d82ad
Fix DTS_EXT_MIRROR migration

Commit faaabe3c fixed failover behaviour for DTS_INT_MIRROR instances, however
it broke migration for DTS_EXT_MIRROR instances, by moving iallocator and node
checks from LUInstanceMigrate to TLMigrateInstance. This has the side-effect
that the LU called the TL with None for both, node and iallocator when the
default iallocator was being used.

This patch maintains the iallocator checks in TLMigrateInstance and fixes the
LU-TL integration.

Signed-off-by: Iustin Pop <iustin@google.com>
[iustin@google.com: rebased patch on current HEAD]
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py