]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/pick_address: fail if cannot bind with specified network family
authorKefu Chai <kchai@redhat.com>
Mon, 19 Oct 2020 13:50:45 +0000 (21:50 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 25 Jul 2021 11:22:44 +0000 (19:22 +0800)
commit0961369ba8ae5b2e1ff2c14c7771bffdb53adb2b
treee895702d4175678b9867a5bc54792c0f053c3133
parent2d1f85776cd49a1fe9b816a122f1100d099e5eb6
common/pick_address: fail if cannot bind with specified network family

this change partially reverts 9f75dfbf364f5140b3f291e0a2c6769bc3d8cbac

we should not proceed against user's will if dual stack is specified but
only one network for a network family can be found. the right fix is
have better error message and documentation, not to tolerate the
failure.

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