]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/cephadm: stop cephadm mgr module during cleanup
authorAdam King <adking@redhat.com>
Fri, 7 Feb 2025 21:08:30 +0000 (16:08 -0500)
committerAdam King <adking@redhat.com>
Sat, 15 Feb 2025 18:46:00 +0000 (13:46 -0500)
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 <adking@redhat.com>
qa/tasks/cephadm.py

index 0cde60507180f0ed81043cbc4f02ed62c41a898c..52b5c75ddedaf84de7025c374df43d3c04b59f29 100644 (file)
@@ -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',