]> git-server-git.apps.pok.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>
Tue, 20 Oct 2020 06:09:49 +0000 (14:09 +0800)
commitd752acafa0d99c3d7cacfaaaf3ae51770e251aff
tree249284ca3385c9d3365b1318fb21e55e40ad6762
parentb6c30b076bacd8fbd8b8dfa5dad79ec19cf8ad5b
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>
src/common/pick_address.cc
src/common/pick_address.h
src/test/test_ipaddr.cc