From: Adam King Date: Thu, 28 Sep 2023 15:07:21 +0000 (-0400) Subject: cephadm: fix haproxy version with certain containers X-Git-Tag: v19.0.0~375^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5540cd1882faaf67013771bf18291053dcf2164d;p=ceph-ci.git cephadm: fix haproxy version with certain containers Some builds of haproxy containers' output from "haproxy -v" start with HAProxy version rather than HA-Proxy version no reason on our end not to accept both Signed-off-by: Adam King --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 30a824f2983..35758a0a3bb 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -6102,7 +6102,8 @@ def list_daemons(ctx, detail=True, legacy_dir=None): 'haproxy', '-v'], verbosity=CallVerbosity.QUIET) if not code and \ - out.startswith('HA-Proxy version '): + out.startswith('HA-Proxy version ') or \ + out.startswith('HAProxy version '): version = out.split(' ')[2] seen_versions[image_id] = version elif daemon_type == 'keepalived':