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>
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',