]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Wait 30s for Keystone to start
authorZack Cerza <zack@cerza.org>
Wed, 19 Feb 2014 21:54:15 +0000 (15:54 -0600)
committerZack Cerza <zack@cerza.org>
Thu, 20 Feb 2014 23:46:09 +0000 (17:46 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/task/devstack.py

index e989c7bd68d73d3a663d9a998f90384e4901199e..acd05b11e97e5adafe060c310030c3e4ab975849 100644 (file)
@@ -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)