From: Shraddha Agrawal Date: Mon, 23 Feb 2026 17:25:42 +0000 (+0530) Subject: test commit X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Fwip-shraddhaag-enable-cephadm-tests;p=ceph-ci.git test commit --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 4e255e55165..e8ad5cb99d0 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -2460,6 +2460,18 @@ def finish_bootstrap_config( 'restart', get_unit_name(fsid, 'mon', mon_id) ]) + # wait for the mon to be available after restart + logger.info('Waiting for mon to start after restart...') + + def is_mon_available(): + # type: () -> bool + try: + cli(['status']) + return True + except Exception: + return False + + is_available(ctx, 'mon', is_mon_available) elif 'image' in ctx and ctx.image: # we still want to assimilate the given container image if provided cli(['config', 'set', 'global', 'container_image', f'{ctx.image}'])