Add logging for prepare_guest

Change-Id: I2dc31acb56ee64c0c69e614a2fc96ae6b31b2ffa
This commit is contained in:
Renuka Apte 2012-02-02 16:09:23 -08:00
parent b115341253
commit ce59d643f5
2 changed files with 3 additions and 1 deletions

View File

@ -104,7 +104,7 @@ sed -e "s,@BUILD_NUMBER@,$BUILD_NUMBER,g" -i $OVA
cat <<EOF >$STAGING_DIR/etc/rc.local cat <<EOF >$STAGING_DIR/etc/rc.local
# network restart required for getting the right gateway # network restart required for getting the right gateway
/etc/init.d/networking restart /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 su -c "/opt/stack/run.sh > /opt/stack/run.sh.log" stack
exit 0 exit 0
EOF EOF

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -x
# Configurable nuggets # Configurable nuggets
GUEST_PASSWORD=${GUEST_PASSWORD:-secrete} GUEST_PASSWORD=${GUEST_PASSWORD:-secrete}
STAGING_DIR=${STAGING_DIR:-stage} STAGING_DIR=${STAGING_DIR:-stage}