From a09cb3fa6c9b8e011361f49e57c4b8fa1fa93920 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Thu, 23 May 2019 16:01:44 -0400 Subject: [PATCH] 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 --- watcher/common/nova_helper.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/watcher/common/nova_helper.py b/watcher/common/nova_helper.py index eed5204af..663f12cfb 100644 --- a/watcher/common/nova_helper.py +++ b/watcher/common/nova_helper.py @@ -167,13 +167,6 @@ class NovaHelper(object): {'instance': instance_id, 'host': host_name}) 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 = self.nova.servers.get(instance_id)