]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
error after 15 minutes of waiting for gatherkeys
authorAlfredo Deza <alfredo.deza@inktank.com>
Mon, 6 Jan 2014 18:50:35 +0000 (13:50 -0500)
committerAlfredo Deza <alfredo.deza@inktank.com>
Mon, 6 Jan 2014 20:25:33 +0000 (15:25 -0500)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
(cherry picked from commit ad18717505c407f2c8bb995af8fd516b61957661)

teuthology/task/ceph-deploy.py

index c07aa57ee94ecc9b6a1b0de71ede6aa882af7ea7..8f37e4dac0d7e3fd7cffe0824f0a1b91f320063c 100644 (file)
@@ -225,10 +225,15 @@ def build_ceph_cluster(ctx, config):
             raise RuntimeError("ceph-deploy: Failed to create monitors")
 
     estatus_gather = execute_ceph_deploy(ctx, config, gather_keys)
+    max_gather_tries = 90
+    gather_tries = 0
     while (estatus_gather != 0):
-        #mon_create_nodes = './ceph-deploy mon create'+" "+mon_node[0]
-        #execute_ceph_deploy(ctx, config, mon_create_nodes)
+        gather_tries += 1
+        if gather_tries >= max_gather_tries:
+            msg = 'ceph-deploy was not able to gatherkeys after 15 minutes'
+            raise RuntimeError(msg)
         estatus_gather = execute_ceph_deploy(ctx, config, gather_keys)
+        time.sleep(10)
 
     if mds_nodes:
         estatus_mds = execute_ceph_deploy(ctx, config, deploy_mds)