]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonMap: encode (more) valid compat monmap when we have v2-only addrs 31472/head
authorSage Weil <sage@redhat.com>
Thu, 7 Nov 2019 18:54:00 +0000 (12:54 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Nov 2019 18:55:34 +0000 (12:55 -0600)
commitc457db1205cd36352115137be232d07e0493af8d
tree29e075626cccedf1f65d4a310c703eed7eb77b01
parent5e8870da8fba8ee01ac78756f88651841c680a55
mon/MonMap: encode (more) valid compat monmap when we have v2-only addrs

If we have 1 or more mons with v2-only addrs, pre-nautilus clients can't
talk to them.  If there are more than 1 such mons in the map, they also
fail when loading the map because they expect the addrs to be unique. In
such situations, lie by giving them v1 addrs that are actually v2 ip:port
(so not actually valid).  Hopefully there are enough other mons that do
have v1 addrs that the clients can still connect.

Fixes: https://tracker.ceph.com/issues/42600
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonMap.cc