From 60471b2cd265036b7d7d0f4c8a283a9d16e6fe2a 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 --- src/cephadm/cephadm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 25c18553ab1..d806b9d3765 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -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', ] ################################## -- 2.39.5