]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: go active even if mon only accepted our v1 addr
authorSage Weil <sage@redhat.com>
Mon, 29 Oct 2018 17:15:54 +0000 (12:15 -0500)
committerSage Weil <sage@redhat.com>
Fri, 21 Dec 2018 21:30:18 +0000 (15:30 -0600)
commit5709fb9122ad66840aab3db7f9b40ce044df7955
tree92ab4ff5468f9b70d9cc14bfdfadc4648919fcff
parentdd055840216dbb99b10bc86560534963593e84d9
osd: go active even if mon only accepted our v1 addr

We may bind to v1 and v2 addrs, but we need to behave if the mon only
recognized our v1 addr and still go active.  That's because whether they
see our v2 addr depends on whether we connected to the mon via the v1 or
v2 port, and the mon may not be binding to v2 (yet, or ever).

Add a legacy_equals to entity_addrvec_t, and use that instead of
probably_equals for the OSD boot checks.  The probably_equals returns true
if the IP address portion of the address is empty.. which should never
happen in the OSD boot case since we have learned our real IP long before
we try to send osd_boot.

Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/msg_types.h
src/osd/OSD.cc