Remove 2.56 version compatibility check
With change Id34938c7bb8a5ca934d997e52cac3b365414c006 we require nova API version 2.56 or greater so we can remove the compatibliity check in the watcher_non_live_migrate_instance method. The _check_nova_api_version method is left in place for future compability checks. Change-Id: I69040fbc13b03d90b9687c0d11104d4a5bae51d3
This commit is contained in:
@@ -167,13 +167,6 @@ class NovaHelper(object):
|
|||||||
{'instance': instance_id, 'host': host_name})
|
{'instance': instance_id, 'host': host_name})
|
||||||
|
|
||||||
previous_status = getattr(instance, 'status')
|
previous_status = getattr(instance, 'status')
|
||||||
|
|
||||||
if (dest_hostname and
|
|
||||||
not self._check_nova_api_version(self.nova, "2.56")):
|
|
||||||
LOG.error("For migrating a given dest_hostname,"
|
|
||||||
"Nova API version must be 2.56 or higher")
|
|
||||||
return False
|
|
||||||
|
|
||||||
instance.migrate(host=dest_hostname)
|
instance.migrate(host=dest_hostname)
|
||||||
instance = self.nova.servers.get(instance_id)
|
instance = self.nova.servers.get(instance_id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user