]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Add ceph-create-keys to explicitly create admin/bootstrap keys 12983/head
authorVasu Kulkarni <vasu@redhat.com>
Tue, 10 Jan 2017 00:45:01 +0000 (16:45 -0800)
committerYuri Weinstein <yweinste@redhat.com>
Wed, 18 Jan 2017 17:32:39 +0000 (17:32 +0000)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
(cherry picked from commit 68f9b7eb3c0548c88650f67fb72c6ff9bc0f3ead)

qa/tasks/ceph_deploy.py

index 6eb7517d9d104cc905774642238620677530ab16..404f8d61b783db74647d9db02319e8c8374b9f22 100644 (file)
@@ -262,17 +262,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: