From ce59d643f5d7771be25e285da1efc6372847b9d1 Mon Sep 17 00:00:00 2001 From: Renuka Apte Date: Thu, 2 Feb 2012 16:09:23 -0800 Subject: [PATCH] Add logging for prepare_guest Change-Id: I2dc31acb56ee64c0c69e614a2fc96ae6b31b2ffa --- tools/xen/build_xva.sh | 2 +- tools/xen/prepare_guest.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/xen/build_xva.sh b/tools/xen/build_xva.sh index c8721aa9d1..4eb4b9114e 100755 --- a/tools/xen/build_xva.sh +++ b/tools/xen/build_xva.sh @@ -104,7 +104,7 @@ sed -e "s,@BUILD_NUMBER@,$BUILD_NUMBER,g" -i $OVA cat <$STAGING_DIR/etc/rc.local # network restart required for getting the right gateway /etc/init.d/networking restart -GUEST_PASSWORD=$GUEST_PASSWORD STAGING_DIR=/ DO_TGZ=0 bash /opt/stack/devstack/tools/xen/prepare_guest.sh +GUEST_PASSWORD=$GUEST_PASSWORD STAGING_DIR=/ DO_TGZ=0 bash /opt/stack/devstack/tools/xen/prepare_guest.sh > /opt/stack/prepare_guest.log 2>&1 su -c "/opt/stack/run.sh > /opt/stack/run.sh.log" stack exit 0 EOF diff --git a/tools/xen/prepare_guest.sh b/tools/xen/prepare_guest.sh index 2f19b9d00c..77ce54a8d0 100644 --- a/tools/xen/prepare_guest.sh +++ b/tools/xen/prepare_guest.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -x + # Configurable nuggets GUEST_PASSWORD=${GUEST_PASSWORD:-secrete} STAGING_DIR=${STAGING_DIR:-stage}