]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/OSDMonitor: use legacy_equals to compare osd addrs
authorSage Weil <sage@redhat.com>
Wed, 6 Mar 2019 17:22:18 +0000 (11:22 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Mar 2019 22:35:34 +0000 (16:35 -0600)
commit301c2e79e37d75e894aea4028b7764bf828310e1
tree701777be4711707f8489bef5a55913556d007bb4
parent9b379de572fa031952fc3367938edb2fc41d9fd6
mon/OSDMonitor: use legacy_equals to compare osd addrs

The OSDs may bind to v2+v1 due to ms_bind_msgr2, but we may only use the
v1 address in the OSDMap due to

 - the osd->mon connection being v1 (mon isn't using v2 yet)
 - the osd require_osd_release < nautilus
 - ???

Conversely, the OSD may end up with a v2+v1 address in the osdmap, but
may connect to the current monitor via v1 only, due to the mon only being
bound to a v1 address.

If/when this happens, make sure we are doing a loose comparison of the
osdmap addrs vs the osd's addr they are connecting from.

Fixes: http://tracker.ceph.com/issues/38598
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc