diff --git a/src/ceph_mgr.cc b/src/ceph_mgr.cc index 6b72cf2f9bd..91043f6e816 100644 --- a/src/ceph_mgr.cc +++ b/src/ceph_mgr.cc @@ -20,6 +20,7 @@ #include "common/config.h" #include "common/ceph_argparse.h" #include "common/errno.h" +#include "common/pick_address.h" #include "global/global_init.h" #include "mgr/MgrStandby.h" @@ -52,6 +53,8 @@ int main(int argc, const char **argv) usage(); } + pick_addresses(g_ceph_context, CEPH_PICK_ADDRESS_PUBLIC); + global_init_daemonize(g_ceph_context); global_init_chdir(g_ceph_context); common_init_finish(g_ceph_context);