From ff73280e9c5c3d8d7930949fadca997cbccddd22 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Tue, 4 Dec 2007 11:21:58 +0000
Subject: [PATCH] On OS creation errors, write logfile path to ganeti-noded's
 logfile.

Reviewed-by: schreiberal
---
 lib/backend.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/backend.py b/lib/backend.py
index 65e8cced8..f54c04191 100644
--- a/lib/backend.py
+++ b/lib/backend.py
@@ -399,11 +399,10 @@ def AddOSToInstance(instance, os_disk, swap_disk):
                                 logfile)
 
   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
-- 
GitLab