Commit ff73280e authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

On OS creation errors, write logfile path to ganeti-noded's logfile.

Reviewed-by: schreiberal
parent f675d4aa
......@@ -399,11 +399,10 @@ def AddOSToInstance(instance, os_disk, swap_disk):
result = utils.RunCmd(command)
if result.failed:
logger.Error("os create command '%s' returned error: %s"
logger.Error("os create command '%s' returned error: %s, logfile: %s,"
" output: %s" %
(command, result.fail_reason, result.output))
(command, result.fail_reason, logfile, result.output))
return False
return True
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