]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson, monmap: add more debugs around building initial monmap.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 11 Oct 2021 19:54:05 +0000 (19:54 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 25 Oct 2021 13:09:22 +0000 (13:09 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/mon/MonMap.cc

index 171df87290da046e7b05da59f2ec296e3d7291e9..43236a63641763f0df08d436037b11916b309df2 100644 (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?