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:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Cory Stone
					Cory Stone