From a6ad2502f02f72eb4ff8e45c56b193bb9590f6b2 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 (cherry picked from commit f75b00984e17a08087f41e7110fe64d4872d3200) --- 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 125d4f3cdb93..a9bc2cbfc8fa 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -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', ], -- 2.47.3