Fixes live_migration missing migrate_data parameter in Hyper-V driver

Fixes Bug #1066513

Live migration on Hyper-V fails due to the parameter "migrate_data" that
has been added to the signature of live_migration(...) in
nova.virt.ComputeDriver.

This fix adds the new parameter.

Change-Id: I393f6706bc144838ae232dfb275460620bc203e2
(cherry picked from commit 448a578feb)
This commit is contained in:
Alessandro Pilotti 2012-10-14 17:55:35 +03:00 committed by Vishvananda Ishaya
parent 15815057db
commit 9265eb009f
2 changed files with 3 additions and 3 deletions

View File

@ -161,9 +161,9 @@ class HyperVDriver(driver.ComputeDriver):
self._vmops.power_on(instance)
def live_migration(self, context, instance_ref, dest, post_method,
recover_method, block_migration=False):
recover_method, block_migration=False, migrate_data=None):
self._livemigrationops.live_migration(context, instance_ref, dest,
post_method, recover_method, block_migration)
post_method, recover_method, block_migration, migrate_data)
def compare_cpu(self, cpu_info):
return self._livemigrationops.compare_cpu(cpu_info)

View File

@ -64,7 +64,7 @@ class LiveMigrationOps(baseops.BaseOps):
_('Live migration networks are not configured on this host'))
def live_migration(self, context, instance_ref, dest, post_method,
recover_method, block_migration=False):
recover_method, block_migration=False, migrate_data=None):
LOG.debug(_("live_migration called"), instance=instance_ref)
instance_name = instance_ref["name"]