]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/task/cephadm: run cephadm only on bootstrap_remote
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Wed, 11 Nov 2020 15:18:56 +0000 (16:18 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Wed, 18 Nov 2020 10:58:00 +0000 (11:58 +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>
(cherry picked from commit f75b00984e17a08087f41e7110fe64d4872d3200)

qa/tasks/cephadm.py

index 125d4f3cdb934ec59908de37f0702d7f78d15465..a9bc2cbfc8faf6d12853f0963fbb3c8c1f4fe992 100644 (file)
@@ -550,11 +550,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',
             ],