Reflect the fact that devstack takes 10-15 minutes now

With all the assorted devstack configurations and plugins, it rarely
takes 5 minutes and commonly takes over 15 minutes.

* Update logs to reflect how long we expect this to take
* Bump the devstack is slow warning to 20 minutes.

Change-Id: I89971ac07c978cc1a40b0178931f8cc2663f323b
This commit is contained in:
Joe Gordon
2015-04-07 13:54:38 -07:00
parent 10cf42246b
commit 0a52198316

View File

@@ -483,13 +483,13 @@ EOF
sudo chown -R stack:stack $BASE
echo "Running devstack"
echo "... this takes 5 - 8 minutes (logs in logs/devstacklog.txt.gz)"
echo "... this takes 10 - 15 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=$((($end - $start) / 60))
if [[ "$took" -gt 15 ]]; then
echo "WARNING: devstack run took > 15 minutes, this is a very slow node."
if [[ "$took" -gt 20 ]]; then
echo "WARNING: devstack run took > 20 minutes, this is a very slow node."
fi
# provide a check that the right db was running