]> git-server-git.apps.pok.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>
Wed, 19 Feb 2025 16:07:29 +0000 (11:07 -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>
(cherry picked from commit 3a3848678bc93e78bd29b0b7e34f701e4720d944)

qa/tasks/cephadm.py

index 27e0f66d3337d97e0069ed89f1ba822bcd2928ff..09638e7ea5648011b9d05775b3711a2045644ac9 100644 (file)
@@ -845,6 +845,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',