Blame SOURCES/bz1600602-1-fence_evacuate-fix-evacuable-tag-mix-issue.patch

67bff5
diff -uNr a/fence/agents/compute/fence_evacuate.py b/fence/agents/compute/fence_evacuate.py
67bff5
--- a/fence/agents/compute/fence_evacuate.py	2018-06-28 14:24:54.000000000 +0200
67bff5
+++ b/fence/agents/compute/fence_evacuate.py	2018-07-11 09:08:56.975072003 +0200
67bff5
@@ -74,12 +74,15 @@
67bff5
 		}
67bff5
 
67bff5
 def _is_server_evacuable(server, evac_flavors, evac_images):
67bff5
+	reason = "flavor "+server.flavor.get('id')
67bff5
 	if server.flavor.get('id') in evac_flavors:
67bff5
 		return True
67bff5
 	if hasattr(server.image, 'get'):
67bff5
 		if server.image.get('id') in evac_images:
67bff5
 			return True
67bff5
-	logging.debug("Instance %s is not evacuable" % server.image.get('id'))
67bff5
+		reason = reason +" and image "+server.image.get('id')
67bff5
+
67bff5
+	logging.debug("Instance is not evacuable: no match for %s" % reason)
67bff5
 	return False
67bff5
 
67bff5
 def _get_evacuable_flavors(connection):