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:
parent
15815057db
commit
9265eb009f
@ -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)
|
||||
|
@ -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"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user