From: Sebastian Wagner Date: Wed, 3 Nov 2021 11:12:15 +0000 (+0100) Subject: cephadm: Avoid "Could not locate podman: podman not found" X-Git-Tag: v16.2.7~33^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=48fcba21dcd7810764bf76bf9d8e9f0e5e81e33e;p=ceph.git cephadm: Avoid "Could not locate podman: podman not found" Right now, we're spamming the cephadm.log on docker deployments Fixes: https://tracker.ceph.com/issues/52869 Signed-off-by: Sebastian Wagner (cherry picked from commit 2767766ed970bf541400e62e6216f4ac29798d43) --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 9ea76322db5e5..9fe5fb3763b38 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -1999,8 +1999,8 @@ def find_container_engine(ctx: CephadmContext) -> Optional[ContainerEngine]: for i in CONTAINER_PREFERENCE: try: return i() - except Exception as e: - logger.debug('Could not locate %s: %s' % (i.EXE, e)) + except Exception: + pass return None