]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: fixed tests for haproxy peer communication port 68152/head
authorShweta Bhosale <Shweta.Bhosale1@ibm.com>
Wed, 22 Apr 2026 05:38:20 +0000 (11:08 +0530)
committerShweta Bhosale <Shweta.Bhosale1@ibm.com>
Wed, 22 Apr 2026 05:39:07 +0000 (11:09 +0530)
Fixes: https://tracker.ceph.com/issues/75704
Signed-off-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
src/pybind/mgr/cephadm/tests/services/test_ingress.py
src/pybind/mgr/cephadm/tests/test_scheduling.py

index 08df613a102325f39d8bbc3613258f35f30633a9..03ce00578f9e96669c815dd1041c34660db1e9ea 100644 (file)
@@ -273,7 +273,7 @@ class TestIngressService:
             '    stick-table type ip size 200k expire 30m peers haproxy_peers\n'
             '    stick on src\n'
             '    hash-type   consistent\n'
-            '    server nfs.foo.0 192.168.122.111:12049 check\n'
+            '    server nfs.foo.0 192.168.122.111:12049 check inter 30s\n'
         )
         haproxy_expected_conf = {
             'files': {'haproxy.cfg': haproxy_txt}
index 7712dbb0a590c98ea6ceff347bbb201258d88b96..5c8301b05fc94565d0f33d42be5a8868c55ade63 100644 (file)
@@ -1881,7 +1881,7 @@ def test_blocking_daemon_host(
                 DaemonDescription('nfs', 'nfs3', 'host3'),
             ],
             None,
-            ['haproxy:host1(*:443,8888)', 'haproxy:host3(*:443,8888)', 'keepalived:host1', 'keepalived:host3'],
+            ['haproxy:host1(*:443,8888,1024)', 'haproxy:host3(*:443,8888,1024)', 'keepalived:host1', 'keepalived:host3'],
             [],
             ['haproxy.ingress2', 'haproxy.ingress4', 'keepalived.ingress2', 'keepalived.ingress4']  # to_remove
         ),
@@ -1902,7 +1902,7 @@ def test_blocking_daemon_host(
                 DaemonDescription('nfs', 'nfs2', 'host2'),
             ],
             None,
-            ['haproxy:host1(*:443,8888)', 'keepalived:host1'],
+            ['haproxy:host1(*:443,8888,1024)', 'keepalived:host1'],
             [],
             ['haproxy.ingress2', 'haproxy.ingress3', 'keepalived.ingress2', 'keepalived.ingress3']  # to_remove
         ),
@@ -1939,7 +1939,7 @@ def test_blocking_daemon_host(
                 DaemonDescription('nfs', 'nfs6', 'host6'),
             ],
             None,
-            ['haproxy:host1(*:443,8888)', 'haproxy:host2(*:443,8888)', 'keepalived:host1', 'keepalived:host2'],
+            ['haproxy:host1(*:443,8888,1024)', 'haproxy:host2(*:443,8888,1024)', 'keepalived:host1', 'keepalived:host2'],
             [],
             ['haproxy.ingress3', 'haproxy.ingress4', 'keepalived.ingress3', 'keepalived.ingress4']  # to_remove
         ),