]> 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>
Thu, 13 May 2021 01:25:32 +0000 (09:25 +0800)
commit9af3402763240e929ace101686693696281cfe45
tree6b45424595239017e78c9ed13fa7ee28d787396e
parenta266937cbce1f590a175ea20254c28d4f23b7af1
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