Instead of specifying an IP address in ceph.conf like
[global]
cluster_addr = 10.1.2.3
you can now avoid the node-specific configuration and just say
[global]
cluster_network = 10.1.2.0/24
The *_network variables can also take a whitespace-separated list of
networks, to be checked in that order:
[global]
cluster_network = 10.1.2.0/24 192.168.42.192/26
#include "common/Timer.h"
#include "global/global_init.h"
#include "common/ceph_argparse.h"
+#include "common/pick_address.h"
#include "mon/MonClient.h"
}
}
+ pick_addresses(g_ceph_context);
+
// Check for special actions
if (!action.empty()) {
return do_cmds_special_action(action, dump_file, rank);
#include "include/color.h"
#include "common/errno.h"
+#include "common/pick_address.h"
#include "perfglue/heap_profiler.h"
exit(1);
}
+ pick_addresses(g_ceph_context);
+
if (g_conf->public_addr.is_blank_ip() && !g_conf->cluster_addr.is_blank_ip()) {
derr << TEXT_YELLOW
<< " ** WARNING: specified cluster addr but not public addr; we recommend **\n"
#include "common/Timer.h"
#include "global/global_init.h"
#include "common/ceph_argparse.h"
+#include "common/pick_address.h"
#if !defined(DARWIN) && !defined(__FreeBSD__)
#include <envz.h>
parse_syn_options(args); // for SyntheticClient
+ pick_addresses(g_ceph_context);
+
vec_to_argv(args, argc, argv);
// get monmap