Commit 523687d7 authored by Iustin Pop's avatar Iustin Pop
Browse files

Log instance startup errors correctly

Currently, the Hypervisor error raised on ‘xm create’ failure doesn't
contain the actual output from the command, thus what we log to the node
daemon log is not helpful enough. This patch fixes that.

Reviewed-by: schreiberal
parent f49a5e02
......@@ -265,8 +265,8 @@ class XenHypervisor(BaseHypervisor):
result = utils.RunCmd(["xm", "create",])
if result.failed:
raise HypervisorError("Failed to start instance %s: %s" %
(, result.fail_reason))
raise HypervisorError("Failed to start instance %s: %s (%s)" %
(, result.fail_reason, result.output))
def StopInstance(self, instance, force=False):
"""Stop an instance."""
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