From d9c55d0f608ff124778e202e26fdfc46b17c7dfe Mon Sep 17 00:00:00 2001 From: Roger Luethi Date: Sun, 26 Apr 2015 12:26:29 +0200 Subject: [PATCH] labs: print stack-list in error case setup_heat_network.sh aborts if the status is not CREATE_COMPLETE after 60 seconds. With this patch, the script prints the current stack list before aborting so the user can see the current status of the stack (which might be CREATE_IN_PROGRESS or CREATE_FAILED). Change-Id: I23484ef5dfcc6e5681931b58fba0edef1003ff77 --- labs/scripts/ubuntu/setup_heat_network.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/labs/scripts/ubuntu/setup_heat_network.sh b/labs/scripts/ubuntu/setup_heat_network.sh index fb56bb28..70647ad5 100755 --- a/labs/scripts/ubuntu/setup_heat_network.sh +++ b/labs/scripts/ubuntu/setup_heat_network.sh @@ -64,6 +64,9 @@ echo "heat stack-list" until node_ssh controller-mgmt "$AUTH; heat stack-list" 2>/dev/null | grep "CREATE_COMPLETE"; do cnt=$((cnt + 1)) if [ $cnt -eq 60 ]; then + # Print current stack list to help with debugging + echo + node_ssh controller-mgmt "$AUTH; heat stack-list" echo "Heat stack creation failed. Exiting." exit 1 else