Merge "resync: small differences"

This commit is contained in:
Jenkins
2016-07-12 10:47:34 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 1 deletions

View File

@@ -98,7 +98,8 @@ class HyperVDriver(driver.ComputeDriver):
capabilities = {
"has_imagecache": True,
"supports_recreate": False,
"supports_migrate_to_same_host": True
"supports_migrate_to_same_host": True,
"supports_attach_interface": True
}
def __init__(self, virtapi):

View File

@@ -92,6 +92,8 @@ class LiveMigrationOps(object):
disk_path_mapping = self._volumeops.get_disk_path_mapping(
block_device_info, block_dev_only=True)
if disk_path_mapping:
# We create a planned VM, ensuring that volumes will remain
# attached after the VM is migrated.
self._livemigrutils.create_planned_vm(instance.name,
instance.host,
disk_path_mapping)