]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add ceph-create-keys to explicitly create admin/bootstrap keys
authorVasu Kulkarni <vasu@redhat.com>
Tue, 10 Jan 2017 00:45:01 +0000 (16:45 -0800)
committerVasu Kulkarni <vasu@redhat.com>
Tue, 17 Jan 2017 21:54:42 +0000 (13:54 -0800)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
qa/tasks/ceph_deploy.py

index c0ea784234617eb28e7d7cbcff261fb1e10acddb..5cde20404be3d3714e1014cddf80efdafe86c3e9 100644 (file)
@@ -295,17 +295,14 @@ def build_ceph_cluster(ctx, config):
         # try the next block which will wait up to 15 minutes to gatherkeys.
         execute_ceph_deploy(mon_create_nodes)
 
-        estatus_gather = execute_ceph_deploy(gather_keys)
-        max_gather_tries = 90
-        gather_tries = 0
-        while (estatus_gather != 0):
-            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(gather_keys)
-            time.sleep(10)
+        # create-keys is explicit now
+        # http://tracker.ceph.com/issues/16036
+        mons = ctx.cluster.only(teuthology.is_type('mon'))
+        for remote in mons.remotes.iterkeys():
+            remote.run(args=['sudo', 'ceph-create-keys', '--cluster', 'ceph',
+                             '--id', remote.shortname])
 
+        estatus_gather = execute_ceph_deploy(gather_keys)
         if mds_nodes:
             estatus_mds = execute_ceph_deploy(deploy_mds)
             if estatus_mds != 0: