From: Zack Cerza Date: Wed, 19 Feb 2014 21:54:15 +0000 (-0600) Subject: Wait 30s for Keystone to start X-Git-Tag: 1.1.0~1646^2~9 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f7b1d92267aa82ecbd270eec9af9aadaee98a7f5;p=teuthology.git Wait 30s for Keystone to start Signed-off-by: Zack Cerza --- diff --git a/teuthology/task/devstack.py b/teuthology/task/devstack.py index e989c7bd68..acd05b11e9 100644 --- a/teuthology/task/devstack.py +++ b/teuthology/task/devstack.py @@ -4,6 +4,7 @@ import logging from cStringIO import StringIO import textwrap from configparser import ConfigParser +import time from ..orchestra import run from .. import misc @@ -284,6 +285,13 @@ def start_devstack(devstack_node): cmd = "cd devstack && ./rejoin-stack.sh" devstack_node.run(args=cmd) + # This was added because I was getting timeouts on Cinder requests - which + # were trying to access Keystone on port 5000. A more robust way to handle + # this would be to introduce a wait-loop on devstack_node that checks to + # see if a service is listening on port 5000. + log.info("Waiting 30s for devstack to start...") + time.sleep(30) + def restart_apache(node): node.run(args=['sudo', '/etc/init.d/apache2', 'restart'], wait=True)