]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: fix haproxy version with certain containers 53751/head
authorAdam King <adking@redhat.com>
Thu, 28 Sep 2023 15:07:21 +0000 (11:07 -0400)
committerAdam King <adking@redhat.com>
Mon, 2 Oct 2023 13:42:34 +0000 (09:42 -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>
(cherry picked from commit 5540cd1882faaf67013771bf18291053dcf2164d)

src/cephadm/cephadm.py

index 8133a8db81bd49a38c415688ca667c3b58403f7d..36f2e9adebcbb0e1c992b47390e26b3371990b56 100755 (executable)
@@ -7193,7 +7193,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':