]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/task/cephadm: run cephadm only on bootstrap_remote 38029/head
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Wed, 11 Nov 2020 15:18:56 +0000 (16:18 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Wed, 11 Nov 2020 22:17:59 +0000 (23:17 +0100)
Because not all the node in teuthology config might
have any cephadm related role we should not execute
cephadm on random node.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
qa/tasks/cephadm.py

index d08cdb314589a42c29fc54f5a734804948f83a28..34f09001c06d7618395142041987e6965e1fb4c2 100644 (file)
@@ -539,11 +539,12 @@ def ceph_mons(ctx, config):
                             break
 
         # refresh our (final) ceph.conf file
+        bootstrap_remote = ctx.ceph[cluster_name].bootstrap_remote
         log.info('Generating final ceph.conf file...')
         r = _shell(
             ctx=ctx,
             cluster_name=cluster_name,
-            remote=remote,
+            remote=bootstrap_remote,
             args=[
                 'ceph', 'config', 'generate-minimal-conf',
             ],