From ec9ea51bac83fcdb01d726924cfc178c997031eb Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Wed, 14 Sep 2022 22:22:04 -0600 Subject: [PATCH] cephadm: add `ip_nonlocal_bind` to haproxy deployment standalone haproxy deployments require the `net.ipv4.ip_nonlocal_bind` sysctl setting Fixes: https://tracker.ceph.com/issues/57563 Signed-off-by: Michael Fritch (cherry picked from commit 60471b2cd265036b7d7d0f4c8a283a9d16e6fe2a) --- src/cephadm/cephadm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 4b3966ecb88..d6965594669 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -912,8 +912,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', ] ################################## -- 2.47.3