From 8f98e5135e19b1370c091ad61fbfae458ccf9479 Mon Sep 17 00:00:00 2001 From: Mouratidis Theofilos Date: Fri, 10 May 2024 12:17:12 +0200 Subject: [PATCH] Fix CephExporter protocol bind logic In a dual stack configuration ceph-exporter binds to ipv4 only and the metrics fail in ipv6 Signed-off-by: Mouratidis Theofilos (cherry picked from commit 110bc665078fe19c31e3680c4197587e69e4e751) Conflicts: src/cephadm/cephadmlib/daemons/ceph.py --- src/cephadm/cephadm.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 0f6257331c20c..6bb789675020f 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -6196,6 +6196,12 @@ def finish_bootstrap_config( if ipv6 or ipv6_cluster_network: logger.info('Enabling IPv6 (ms_bind_ipv6) binding') cli(['config', 'set', 'global', 'ms_bind_ipv6', 'true']) + # note: Ceph does not fully support dual stack. + # kernel clients: https://tracker.ceph.com/issues/49581 + # if we do not disable ipv4 binding, daemons will bind + # to 0.0.0.0 and clients will misbehave. + logger.info('Disabling IPv4 (ms_bind_ipv4) binding') + cli(['config', 'set', 'global', 'ms_bind_ipv4', 'false']) with open(ctx.output_config, 'w') as f: f.write(config) -- 2.47.3