]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test commit wip-shraddhaag-enable-cephadm-tests
authorShraddha Agrawal <shraddha.agrawal000@gmail.com>
Mon, 23 Feb 2026 17:25:42 +0000 (22:55 +0530)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Mon, 23 Feb 2026 17:25:42 +0000 (22:55 +0530)
src/cephadm/cephadm.py

index 4e255e551656bf9e793c3bfa7916937c0730adf9..e8ad5cb99d08613a204d47fd59fd71f4d0f785f1 100755 (executable)
@@ -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}'])