crimson, monmap: add more debugs around building initial monmap.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
This commit is contained in:
Radoslaw Zarzynski 2021-10-11 19:54:05 +00:00
parent cc5d532c04
commit 3bed1087b7

View File

@ -757,6 +757,7 @@ seastar::future<> MonMap::read_monmap(const std::string& monmap)
seastar::future<> MonMap::init_with_dns_srv(bool for_mkfs, const std::string& name)
{
logger().debug("{}: for_mkfs={}, name={}", __func__, for_mkfs, name);
string domain;
string service = name;
// check if domain is also provided and extract it from srv_name
@ -823,6 +824,7 @@ bool MonMap::maybe_init_with_mon_host(const std::string& mon_host,
seastar::future<> MonMap::build_monmap(const crimson::common::ConfigProxy& conf,
bool for_mkfs)
{
logger().debug("{}: for_mkfs={}", __func__, for_mkfs);
// -m foo?
if (maybe_init_with_mon_host(conf.get_val<std::string>("mon_host"), for_mkfs)) {
return seastar::make_ready_future<>();
@ -893,6 +895,8 @@ int MonMap::init_with_dns_srv(CephContext* cct,
bool for_mkfs,
std::ostream& errout)
{
lgeneric_dout(cct, 1) << __func__ << " srv_name: " << srv_name << dendl;
string domain;
// check if domain is also provided and extract it from srv_name
size_t idx = srv_name.find("_");
@ -923,6 +927,7 @@ int MonMap::init_with_dns_srv(CephContext* cct,
int MonMap::build_initial(CephContext *cct, bool for_mkfs, ostream& errout)
{
lgeneric_dout(cct, 1) << __func__ << " for_mkfs: " << for_mkfs << dendl;
const auto& conf = cct->_conf;
// mon_host_override?