From: Teoman ONAY Date: Wed, 13 Mar 2024 16:23:00 +0000 (+0100) Subject: cephadm: bootstrap fails if no container engine installed X-Git-Tag: v20.0.0~2363^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F56175%2Fhead;p=ceph.git cephadm: bootstrap fails if no container engine installed 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 --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 21523cd09ea0..95a6d18ee3bc 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -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