From bb51d78efa68a3c5460d520e93b1da6e4c543253 Mon Sep 17 00:00:00 2001 From: Teoman ONAY Date: Wed, 13 Mar 2024 17:23:00 +0100 Subject: [PATCH] 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 --- src/cephadm/cephadm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 21523cd09ea0f..95a6d18ee3bc4 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 -- 2.39.5