update to match latest nova method signatures
Nova made backwards-incompatible changes in how it calls these methods in the driver. Altered the method signatures to match the new expectation. Change-Id: I02182dae9159bcac671899df846e50b301f16003
This commit is contained in:
parent
a1b6d08d18
commit
79ec3afa8c
|
@ -1971,7 +1971,7 @@ class OpenVzDriver(driver.ComputeDriver):
|
|||
LOG.error(_('Failed to stop and destroy the instance'))
|
||||
LOG.debug(_('Finished confirm migration for %s') % instance['id'])
|
||||
|
||||
def finish_revert_migration(self, instance, network_info,
|
||||
def finish_revert_migration(self, context, instance, network_info,
|
||||
block_device_info=None, power_on=True):
|
||||
"""Finish reverting a resize, powering back on the instance."""
|
||||
# Get the instance metadata to see what we need to do
|
||||
|
@ -2195,7 +2195,7 @@ class OpenVzDriver(driver.ComputeDriver):
|
|||
"""Power off the specified instance."""
|
||||
return
|
||||
|
||||
def power_on(self, instance):
|
||||
def power_on(self, context, instance, network_info, block_device_info):
|
||||
"""Power on the specified instance."""
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue