From f75b00984e17a08087f41e7110fe64d4872d3200 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Wed, 11 Nov 2020 16:18:56 +0100 Subject: [PATCH] qa/task/cephadm: run cephadm only on bootstrap_remote 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 --- qa/tasks/cephadm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index d08cdb314589a..34f09001c06d7 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -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', ], -- 2.39.5