]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: add `ip_nonlocal_bind` to haproxy deployment
authorMichael Fritch <mfritch@suse.com>
Thu, 15 Sep 2022 04:22:04 +0000 (22:22 -0600)
committerMichael Fritch <mfritch@suse.com>
Wed, 21 Sep 2022 13:16:07 +0000 (07:16 -0600)
standalone haproxy deployments require the
`net.ipv4.ip_nonlocal_bind` sysctl setting

Fixes: https://tracker.ceph.com/issues/57563
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm.py

index 25c18553ab1768ac707f06c217cf583e224d97ff..d806b9d3765a2855ae70f960b1705bc3b57aaea6 100755 (executable)
@@ -1016,8 +1016,9 @@ class HAproxy(object):
     @staticmethod
     def get_sysctl_settings() -> List[str]:
         return [
-            '# IP forwarding',
+            '# IP forwarding and non-local bind',
             'net.ipv4.ip_forward = 1',
+            'net.ipv4.ip_nonlocal_bind = 1',
         ]
 
 ##################################