]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: Set ms bind ipv6 when mon-ip is ipv6 35633/head
authorMatthew Oliver <moliver@suse.com>
Thu, 18 Jun 2020 01:39:39 +0000 (01:39 +0000)
committerMatthew Oliver <moliver@suse.com>
Fri, 19 Jun 2020 11:49:50 +0000 (11:49 +0000)
commit08ba08f7bb5b577ad3c3895e2c7f9f4d4555f185
treef33b429914d4e758b5a38e41ff6c8e16999abba2
parent23e5359f026f38fd84b6acf57cd252eb294fb763
cephadm: Set ms bind ipv6 when mon-ip is ipv6

If you use cephadm bootstrap with an ipv6 mon ip then currently you'll
get into a address family split-brain state, where the mon's messenger
connects and binds to ipv6 but the mgr's binds to ipv4 (usually
0.0.0.0). In this state the bootstrap process hangs as it attempts to
talk and get the mgr state.

A work around is to have `ms bind ipv6 = true` in a ceph conf
you can then pass to bootstrap which gets pulled in and set in mon's
config store.

This patch sets `ms bind ipv6 = true` to the global section in the
mon config store when the mon-ip argument is an ipv6 address.

Fixes: https://tracker.ceph.com/issues/45016
Signed-off-by: Matthew Oliver <moliver@suse.com>
src/cephadm/cephadm
src/cephadm/requirements.txt [new file with mode: 0644]
src/cephadm/tests/test_cephadm.py
src/cephadm/tox.ini