OSD always relies on its server to tell its address, without this
feature, it will advertise a blank ip address to monitor in MOSDBoot.
Signed-off-by: Kefu Chai <kchai@redhat.com>
dispatch_reset();
abort_in_close();
}
+ if (messenger.get_myaddrs().empty() ||
+ messenger.get_myaddrs().front().is_blank_ip()) {
+ logger().debug("peer {} says I am {}", conn.target_addr, _peer_addr);
+ return messenger.learned_addr(_peer_addr);
+ } else {
+ return seastar::now();
+ }
}).then([this] {
return client_auth();
}).then([this] {