]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add `ip_nonlocal_bind` to haproxy deployment 48211/head
authorMichael Fritch <mfritch@suse.com>
Thu, 15 Sep 2022 04:22:04 +0000 (22:22 -0600)
committerMichael Fritch <mfritch@suse.com>
Tue, 25 Oct 2022 22:12:20 +0000 (16:12 -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>
(cherry picked from commit 60471b2cd265036b7d7d0f4c8a283a9d16e6fe2a)

src/cephadm/cephadm

index 4e48b261e2d4bcff0829f062ff396aef730d7812..cca86017605db8f240a8ecaeb39c97f63ec9b942 100755 (executable)
@@ -1012,8 +1012,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',
         ]
 
 ##################################