]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: increase timeout to wait for master to 20 seconds
authorOrit Wasserman <owasserm@redhat.com>
Tue, 12 Apr 2016 17:07:42 +0000 (19:07 +0200)
committerOrit Wasserman <owasserm@redhat.com>
Tue, 19 Apr 2016 10:39:06 +0000 (12:39 +0200)
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
tasks/rgw.py

index cc492d9606fec33c71043a4aa52e77dddafdb0e6..6576b7211e1c1ed3f916d5fc83ad9557f7517a3f 100644 (file)
@@ -987,7 +987,7 @@ def pull_configuration(ctx, config, regions, role_endpoints, realm, master_clien
         if client != master_client:
             host, port = role_endpoints[master_client]
             endpoint = 'http://{host}:{port}/'.format(host=host, port=port)
-            log.debug("endpoint: %s"), endpoint
+            log.debug("endpoint: %s", endpoint)
             rgwadmin(ctx, client,
                 cmd=['-n', client, 'realm', 'pull', '--rgw-realm', realm, '--default', '--url',
                      endpoint, '--access_key',
@@ -1015,7 +1015,8 @@ def pull_configuration(ctx, config, regions, role_endpoints, realm, master_clien
 
 @contextlib.contextmanager
 def wait_for_master():
-    time.sleep(10)
+    log.debug("wait_for_master")
+    time.sleep(20)
     yield
 
 @contextlib.contextmanager