]>
git.apps.os.sepia.ceph.com Git - ceph.git/commit
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 <kchai@redhat.com>