From: Mouratidis Theofilos Date: Fri, 10 May 2024 10:17:12 +0000 (+0200) Subject: Fix CephExporter protocol bind logic X-Git-Tag: v18.2.5~422^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F59461%2Fhead;p=ceph.git 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 --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 0f6257331c20..6bb789675020 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)