From 53ee408430f9f176b3d5cfda40b8a1a6935c0c27 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 21 Apr 2014 12:41:48 -0400 Subject: [PATCH] add warning if devstack run is slow there is a timeout condition in devstack-gate which seems to be hinted at by the nodes themselves being really slow. We should emit a warning when the time to run the devstack setup exceeds 2x the expected time. Change-Id: If05f949c5785d24572652196f52f56c6cb5b6d64 --- devstack-vm-gate.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devstack-vm-gate.sh b/devstack-vm-gate.sh index 8f661765..21177c46 100755 --- a/devstack-vm-gate.sh +++ b/devstack-vm-gate.sh @@ -213,7 +213,13 @@ else echo "Running devstack" echo "... this takes 5 - 8 minutes (logs in logs/devstacklog.txt.gz)" + start=$(date +%s) sudo -H -u stack stdbuf -oL -eL ./stack.sh > /dev/null + end=$(date +%s) + took=$(echo "(($end - $start) / 60)" | bc ) + if [[ "$took" -gt 15 ]]; then + echo "WARNING: devstack run took > 15 minutes, this is a very slow node." + fi # provide a check that the right db was running # the path are different for fedora and red hat.