]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson: use pick_addr() for picking peer addr 36323/head
authorKefu Chai <kchai@redhat.com>
Tue, 28 Jul 2020 12:32:59 +0000 (20:32 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 28 Jul 2020 12:48:01 +0000 (20:48 +0800)
commit11701dcbf7ea6c283dd14b77444d08271c0f5854
tree520c9abafbd3c1b92518fd635a4e6ced568b2d31
parentb1e77cd11f803b5f21a781d69c74cc74c170e05f
crimson: use pick_addr() for picking peer addr

in teuthology tests, there is good chance that we have ceph.conf
containing:

mon host = 172.21.15.122

which is translated to two monitors

- a: 172.21.15.122:3300
- a-legacy: 172.21.15.122:6789

both has protocol type of "any". so, to enable crimson to use settings
like this, we should let crimson to accept them, and drop the connection
if the peer claim to be using an incompatible protocol, when they are
exchanging banners.

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