From: Sage Weil Date: Thu, 11 Jul 2019 16:15:55 +0000 (-0500) Subject: qa/tasks/ceph_deploy: do not rely on ceph-create-keys X-Git-Tag: v14.2.3~67^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=67e8a68fb1baca116c2df586f51bd7b59db6891d;p=ceph.git qa/tasks/ceph_deploy: do not rely on ceph-create-keys Signed-off-by: Sage Weil (cherry picked from commit daeaabf1871a2d3482f97f0def5f9c48da7811e9) --- diff --git a/qa/tasks/ceph_deploy.py b/qa/tasks/ceph_deploy.py index 56868f16fa0a9..fc868b95ecfa8 100644 --- a/qa/tasks/ceph_deploy.py +++ b/qa/tasks/ceph_deploy.py @@ -381,16 +381,15 @@ 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) - # 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 estatus_gather != 0: raise RuntimeError("ceph-deploy: Failed during gather keys") + + # install admin key on mons (ceph-create-keys doesn't do this any more) + mons = ctx.cluster.only(teuthology.is_type('mon')) + for remote in mons.remotes.iterkeys(): + execute_ceph_deploy('./ceph-deploy admin ' + remote.shortname) + # create osd's if config.get('use-ceph-volume', False): no_of_osds = ceph_volume_osd_create(ctx, config)