]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: fix haproxy version with certain containers
authorAdam King <adking@redhat.com>
Thu, 28 Sep 2023 15:07:21 +0000 (11:07 -0400)
committerAdam King <adking@redhat.com>
Thu, 28 Sep 2023 15:07:21 +0000 (11:07 -0400)
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 <adking@redhat.com>
src/cephadm/cephadm.py

index 30a824f2983a55a87bb115abdf65242a42aaa158..35758a0a3bb631a286fee913c1bd1fe7ef53a8ea 100755 (executable)
@@ -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':