]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MonMap: encode (more) valid compat monmap when we have v2-only addrs 31658/head
authorSage Weil <sage@redhat.com>
Thu, 7 Nov 2019 18:54:00 +0000 (12:54 -0600)
committerNathan Cutler <ncutler@suse.com>
Thu, 14 Nov 2019 21:24:15 +0000 (22:24 +0100)
commit9bd65a88aea692072fbcc6140c1f772a670d901b
treeb20df1c40ddc395b0e25b53dfc0136f71204da77
parent8541e60f59d3804475aa7b9268d10d446a933363
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>
(cherry picked from commit c457db1205cd36352115137be232d07e0493af8d)
src/mon/MonMap.cc