]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: bootstrap fails if no container engine installed 56175/head
authorTeoman ONAY <tonay@ibm.com>
Wed, 13 Mar 2024 16:23:00 +0000 (17:23 +0100)
committerTeoman ONAY <tonay@ibm.com>
Wed, 13 Mar 2024 16:28:56 +0000 (17:28 +0100)
When boostrapping a new cluster, if no container engine is present,
the process stops asking to install one. One of the bootstrap steps,
is to run command_prepare_host which takes care of installing the
missing dependencies but it didn't reach this step.

Fixes: https://tracker.ceph.com/issues/64899
Signed-off-by: Teoman ONAY <tonay@ibm.com>
src/cephadm/cephadm.py

index 21523cd09ea0fb867cb0849f472bd9c30af2cf68..95a6d18ee3bc4e1dee463c0344293f8319cc1ece 100755 (executable)
@@ -4472,6 +4472,7 @@ def command_prepare_host(ctx: CephadmContext) -> None:
         if not pkg:
             pkg = create_packager(ctx)
         pkg.install_podman()
+        ctx.container_engine = find_container_engine(ctx)
 
     logger.info('Verifying lvm2 is present...')
     if not find_executable('lvcreate'):
@@ -5508,7 +5509,8 @@ def main() -> None:
                     command_prepare_host,
                     command_add_repo,
                     command_rm_repo,
-                    command_install
+                    command_install,
+                    command_bootstrap
                 ]:
             check_container_engine(ctx)
         # command handler