LUInstanceCreate: Run rename script on instance import
authorMichael Hanselmann <hansmi@google.com>
Mon, 14 May 2012 13:46:22 +0000 (15:46 +0200)
committerMichael Hanselmann <hansmi@google.com>
Mon, 14 May 2012 15:34:56 +0000 (17:34 +0200)
commite78a6817fba9970276fdac0dc4e2fa31f4c96cd5
treeda8b564fef802f30c57e1f6188eadf34ce5d306a
parentd3b5115694d6ac9f371f251e1f2e83b17c1cc027
LUInstanceCreate: Run rename script on instance import

If an instance is imported with a different name, network settings may have to
be changed. Since import scripts may not already to the right thing, we decided
to run the rename script. The same technique is already used for inter-cluster
instance moves.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py