From: Kefu Chai Date: Wed, 21 Apr 2021 11:50:48 +0000 (+0800) Subject: common/pick_address: prefer non-loopback addresses X-Git-Tag: v14.2.22~47^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f280ac04c8a8358fd8a161bf84058442eb1578c0;p=ceph.git common/pick_address: prefer non-loopback addresses instead of filtering out loopback ifaces, check for loopback addresses, and prefer non-loopback addresses over loopback addresses. before this change, iface named "lo" is filtered out by default, and "lo" is allowed if `ms_bind_exclude_lo_iface` is false. after this change, iface with address out of 127/8 is prefered. the iface marked down is not considered. the option of "ms_bind_exclude_lo_iface" is removed. the tests are updated accordingly. Fixes: https://tracker.ceph.com/issues/50456 Signed-off-by: Kefu Chai (cherry picked from commit a9b9bcd53215a07608a28ac2c8e4a8c8b8e80e66) Conflicts: src/common/options/global.yaml.in src/common/pick_address.cc: trivial resolution --- diff --git a/src/common/options.cc b/src/common/options.cc index c1c374a4d8c3..41cd87c57042 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1028,11 +1028,6 @@ std::vector