From 3a3848678bc93e78bd29b0b7e34f701e4720d944 Mon Sep 17 00:00:00 2001 From: Adam King Date: Fri, 7 Feb 2025 16:08:30 -0500 Subject: [PATCH] qa/cephadm: stop cephadm mgr module during cleanup We recommend this generally when tearing down a cluster and do so in cephadm-ansible. Doing this avoids any potential timings where the cephadm mgr module attempts to undo any daemon removals as we're cleaning up Signed-off-by: Adam King --- qa/tasks/cephadm.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 0cde60507180f..52b5c75ddedaf 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -882,6 +882,15 @@ def ceph_bootstrap(ctx, config): yield finally: + log.info('Disabling cephadm mgr module') + _shell( + ctx, + cluster_name, + bootstrap_remote, + ['ceph', 'mgr', 'module', 'disable', 'cephadm'], + check_status=False # can fail if bootstrap failed and mask errors + ) + log.info('Cleaning up testdir ceph.* files...') ctx.cluster.run(args=[ 'rm', '-f', -- 2.39.5