Skip to content

Commit 7057ae9

Browse files
committed
Reduce timeouts to 60 seconds.
1 parent 92e8199 commit 7057ae9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stack.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ fi
644644
if [[ "$ENABLED_SERVICES" =~ "g-api" ]]; then
645645
screen_it g-api "cd $GLANCE_DIR; bin/glance-api --config-file=etc/glance-api.conf"
646646
echo "Waiting for g-api ($GLANCE_HOSTPORT) to start..."
647-
if ! timeout 600 sh -c "while ! wget -q -O- http://$GLANCE_HOSTPORT; do sleep 1; done"; then
647+
if ! timeout 60 sh -c "while ! wget -q -O- http://$GLANCE_HOSTPORT; do sleep 1; done"; then
648648
echo "g-api did not start"
649649
exit 1
650650
fi
@@ -654,7 +654,7 @@ fi
654654
if [[ "$ENABLED_SERVICES" =~ "key" ]]; then
655655
screen_it key "cd $KEYSTONE_DIR && $KEYSTONE_DIR/bin/keystone --config-file $KEYSTONE_CONF -d"
656656
echo "Waiting for keystone to start..."
657-
if ! timeout 600 sh -c "while ! wget -q -O- http://127.0.0.1:5000; do sleep 1; done"; then
657+
if ! timeout 60 sh -c "while ! wget -q -O- http://127.0.0.1:5000; do sleep 1; done"; then
658658
echo "keystone did not start"
659659
exit 1
660660
fi
@@ -664,7 +664,7 @@ fi
664664
if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then
665665
screen_it n-api "cd $NOVA_DIR && $NOVA_DIR/bin/nova-api"
666666
echo "Waiting for nova-api to start..."
667-
if ! timeout 600 sh -c "while ! wget -q -O- http://127.0.0.1:8774; do sleep 1; done"; then
667+
if ! timeout 60 sh -c "while ! wget -q -O- http://127.0.0.1:8774; do sleep 1; done"; then
668668
echo "nova-api did not start"
669669
exit 1
670670
fi

tools/build_bm_multi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ run_bm STACKMASTER $HEAD_HOST "ENABLED_SERVICES=g-api,g-reg,key,n-api,n-sch,n-vn
1818
# Wait till the head node is up
1919
if [ ! "$TERMINATE" = "1" ]; then
2020
echo "Waiting for head node ($HEAD_HOST) to start..."
21-
if ! timeout 600 sh -c "while ! wget -q -O- http://$HEAD_HOST | grep -q username; do sleep 1; done"; then
21+
if ! timeout 60 sh -c "while ! wget -q -O- http://$HEAD_HOST | grep -q username; do sleep 1; done"; then
2222
echo "Head node did not start"
2323
exit 1
2424
fi

0 commit comments

Comments
 (0)