Commit 920aae98 authored by Guido Trotter's avatar Guido Trotter
Browse files

ShutdownInstance: report hypervisor error

When StopInstance raises an HypervisorError, report it in the logged
message to ease with debugging.

Reviewed-by: iustinp
parent 55224070
......@@ -897,7 +897,7 @@ def ShutdownInstance(instance):
except errors.HypervisorError, err:
logging.error("Failed to stop instance")
logging.error("Failed to stop instance: %s" % err)
return False
# test every 10secs for 2min
......@@ -914,7 +914,7 @@ def ShutdownInstance(instance):
hyper.StopInstance(instance, force=True)
except errors.HypervisorError, err:
logging.exception("Failed to stop instance")
logging.exception("Failed to stop instance: %s" % err)
return False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment