]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/mgr: only pick the addr of the same type
authorKefu Chai <kchai@redhat.com>
Sat, 25 Jul 2020 05:04:58 +0000 (13:04 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 27 Jul 2020 03:29:10 +0000 (11:29 +0800)
commitec4da142d8d1e4d14a0419a3d607eb64e8e68e2b
tree157b49c1233aa8e6bf3b6e7b1b9cc181cf48112a
parent41e26f611ddb3bf59a5d81d99078dda016e60b09
crimson/mgr: only pick the addr of the same type

to avoid the attempts to connect an OSD which is bound to a v2
address to a v1 address of a mgr.

in general, osd is bound to both v1 and v2 addresses, but crimson
msgr does not support multiple bound address at the time of writing, so
to avoid the failures when trying to connect to incompatible addresses,
let's filter out them when connecting to monitor. this change
silence warnings like:

peer_addr_for_me v1:172.21.15.106:60008/0 type doesn't match myaddr
v2:0.0.0.0:6802/26710

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/mgr/client.cc