]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: Set ms bind ipv6 when mon-ip is ipv6
authorMatthew Oliver <moliver@suse.com>
Thu, 18 Jun 2020 01:39:39 +0000 (01:39 +0000)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 14 Jul 2020 09:39:06 +0000 (11:39 +0200)
commitb7c0ce181ff8649ebdcc302af73b2bb4f8111a54
tree1f8616c9dbcce82ed89083deb4156735d02a5fae
parent74899c7705fe46a752f3b8bb0490b32261af9f60
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>
(cherry picked from commit 08ba08f7bb5b577ad3c3895e2c7f9f4d4555f185)
src/cephadm/cephadm
src/cephadm/requirements.txt [new file with mode: 0644]
src/cephadm/tests/test_cephadm.py
src/cephadm/tox.ini