Skip to content

Commit 0537c19

Browse files
authored
Merge pull request ceph#59681 from adk3798/cephadm-enable-module-bootstrap-retry
cephadm: bootstrap: verify orch module is running before setting cephadm backend Reviewed-by: John Mulligan <[email protected]>
2 parents 8b0f3a5 + fcdae78 commit 0537c19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cephadm/cephadm.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2410,6 +2410,12 @@ def enable_cephadm_mgr_module(
24102410
logger.info('Enabling cephadm module...')
24112411
cli(['mgr', 'module', 'enable', 'cephadm'])
24122412
wait_for_mgr_restart()
2413+
# https://tracker.ceph.com/issues/67969
2414+
# luckily `ceph mgr module enable <module>` returns
2415+
# a zero rc when the module is already enabled so
2416+
# this is no issue even if it is unnecessary
2417+
logger.info('Verifying orchestrator module is enabled...')
2418+
cli(['mgr', 'module', 'enable', 'orchestrator'])
24132419
logger.info('Setting orchestrator backend to cephadm...')
24142420
cli(['orch', 'set', 'backend', 'cephadm'])
24152421

0 commit comments

Comments
 (0)