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
This commit is contained in:
Sean Dague
2014-04-21 12:41:48 -04:00
parent 17852b1254
commit 53ee408430

View File

@@ -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.