summaryrefslogtreecommitdiffstats
path: root/src/cephadm
diff options
context:
space:
mode:
authorAdam King <47704447+adk3798@users.noreply.github.com>2024-06-11 18:22:15 +0200
committerGitHub <noreply@github.com>2024-06-11 18:22:15 +0200
commitae1ba990a6dff7f6a3dcb800c9942c6dc846d78f (patch)
tree6d39a2aa1a657a938c1de93c99e97b627d110ea7 /src/cephadm
parentMerge pull request #57180 from phlogistonjohn/jjm-smb-linked-res (diff)
parentFix CephExporter protocol bind logic (diff)
downloadceph-ae1ba990a6dff7f6a3dcb800c9942c6dc846d78f.tar.xz
ceph-ae1ba990a6dff7f6a3dcb800c9942c6dc846d78f.zip
Merge pull request #57389 from thmour/patch-1
cephadm: CephExporter doesn't bind to IPv6 in dual stack Reviewed-by: Adam King <adking@redhat.com>
Diffstat (limited to 'src/cephadm')
-rw-r--r--src/cephadm/cephadmlib/daemons/ceph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cephadm/cephadmlib/daemons/ceph.py b/src/cephadm/cephadmlib/daemons/ceph.py
index e6392876cc6..55a92835129 100644
--- a/src/cephadm/cephadmlib/daemons/ceph.py
+++ b/src/cephadm/cephadmlib/daemons/ceph.py
@@ -292,8 +292,8 @@ class CephExporter(ContainerDaemonForm):
self.image = image
self.sock_dir = config_json.get('sock-dir', '/var/run/ceph/')
- ipv4_addrs, _ = get_ip_addresses(get_hostname())
- addrs = '0.0.0.0' if ipv4_addrs else '::'
+ _, ipv6_addrs = get_ip_addresses(get_hostname())
+ addrs = '::' if ipv6_addrs else '0.0.0.0'
self.addrs = config_json.get('addrs', addrs)
self.port = config_json.get('port', self.DEFAULT_PORT)
self.prio_limit = config_json.get('prio-limit', 5)