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

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