Blob Blame History Raw
diff -uNr a/fence/agents/compute/fence_compute.py b/fence/agents/compute/fence_compute.py
--- a/fence/agents/compute/fence_compute.py	2016-03-30 16:07:11.600203519 +0200
+++ b/fence/agents/compute/fence_compute.py	2016-03-30 16:09:17.184539645 +0200
@@ -80,6 +80,7 @@
 		return True
 	if server.image.get('id') in evac_images:
 		return True
+	logging.debug("Instance %s is not evacuable" % server.image.get('id'))
 	return False
 
 def _get_evacuable_flavors():
@@ -103,10 +104,12 @@
 
 def _host_evacuate(options):
 	result = True
-	servers = nova.servers.list(search_opts={'host': options["--plug"]})
+	servers = nova.servers.list(search_opts={'host': options["--plug"], 'all_tenants': 1 })
 	if options["--instance-filtering"] == "False":
+		logging.debug("Evacuating all images and flavors")
 		evacuables = servers
 	else:
+		logging.debug("Filtering images and flavors")
 		flavors = _get_evacuable_flavors()
 		images = _get_evacuable_images()
 		# Identify all evacuable servers
@@ -119,6 +122,7 @@
 		on_shared_storage = True
 
 	for server in evacuables:
+		logging.debug("Processing %s" % server)
 		if hasattr(server, 'id'):
 			response = _server_evacuate(server.id, on_shared_storage)
 			if response["accepted"]: