]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd: pick only v2 addresses.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 6 Oct 2021 11:16:31 +0000 (11:16 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 6 Oct 2021 14:44:02 +0000 (14:44 +0000)
commitc7f2056f7415c5d26b0503e7c13a89e6b4856341
treeb010d6961ebb73020f73c74184e4e39668c59de4
parent6b04b96991ab146a7b4007f5a650d71e5b0dc010
crimson/osd: pick only v2 addresses.

Otherwise we'll run into an assertion failure when binding:

```
INFO  2021-10-05 15:14:51,075 [shard 0] osd - picked address v2:0.0.0.0:0/0
INFO  2021-10-05 15:14:51,075 [shard 0] osd - picked address v1:0.0.0.0:0/0
ceph-osd: /home/jenkins-build/build/workspace/ceph-dev-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-8025-geb9c0f59/rpm/el8/BUILD/ceph-17.0.0-8025-geb9c0f59/src/crimson/net/SocketMessenger.cc:89: crimson::errorator<crimson::unthrowable_wrapper<const std::error_code&, ((const std::error_code&)(& crimson::ec<std::errc::address_in_use>))>, crimson::unthrowable_wrapper<const std::error_code&, ((const std::error_code&)(& crimson::ec<std::errc::address_not_available>))> >::future<> crimson::net::SocketMessenger::try_bind(const entity_addrvec_t&, uint32_t, uint32_t): Assertion `addrs.size() == 1' failed.
Aborting on shard 0.
```

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/osd.cc