]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/pick_address: Allow binding on loopback iface
authorKefu Chai <kchai@redhat.com>
Fri, 26 Mar 2021 12:03:09 +0000 (20:03 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 13 May 2021 01:25:32 +0000 (09:25 +0800)
commit56385b8767557b50f97dc82c3b4f1d89a32701bc
tree801668df87f3d51a6ab2bfd88af4997e7a1e6fdb
parent4e0211b3d79a3a7db4f085ff6a3887b0746ff581
common/pick_address: Allow binding on loopback iface

in 6147c0917157efd2d35610e759685656a4989abb, "lo" is also skipped when
daemon is trying to find an address to bind. but that change reverts the
fix of 201b59204374ebdab91bb554b986577a97b19c36, to address the problem.

an option named "ms_bind_exclude_lo_iface" is added, it defaults to
"true". but it can be changed to false to allow daemon to bind on "lo".

Fixes: https://tracker.ceph.com/issues/50012
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 7f01d36a2ca0576f1ff103ae3fa7c3662e93b722)
src/common/options.cc
src/common/pick_address.cc
src/common/pick_address.h
src/test/test_ipaddr.cc