xenapi: Avoid hotplugging volumes on resize.

In finish_migration, instead of starting up the vm and then
hotplugging in the volumes to it, just attach the volumes before
starting the vm.

This avoids the issue where the guest OS hasn't loaded the PV
drivers for the volume yet.

Fixes bug 1094351

Change-Id: I51d754f8f82f1d22bc123b39777449b58b03e389
This commit is contained in:
Cory Stone
2012-12-28 15:39:54 -06:00
parent 1844bf5e87
commit b3402e1a2a

View File

@@ -911,7 +911,7 @@ class XenAPIVMTestCase(stubs.XenAPITestBase):
def __init__(self):
self.finish_revert_migration_called = False
def finish_revert_migration(self, instance):
def finish_revert_migration(self, instance, block_info):
self.finish_revert_migration_called = True
conn = xenapi_conn.XenAPIDriver(fake.FakeVirtAPI(), False)