]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix CephExporter protocol bind logic 59461/head
authorMouratidis Theofilos <mtheofilos@gmail.com>
Fri, 10 May 2024 10:17:12 +0000 (12:17 +0200)
committerAdam King <adking@redhat.com>
Tue, 27 Aug 2024 14:22:56 +0000 (10:22 -0400)
In a dual stack configuration ceph-exporter binds to ipv4 only and the metrics fail in ipv6

Signed-off-by: Mouratidis Theofilos <mtheofilos@gmail.com>
(cherry picked from commit 110bc665078fe19c31e3680c4197587e69e4e751)

Conflicts:
src/cephadm/cephadmlib/daemons/ceph.py

src/cephadm/cephadm.py

index 0f6257331c20ccc12c0f1aded858f9cd254bc2ae..6bb789675020fcee8353b84f333d97e89cf5bc7b 100755 (executable)
@@ -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)