]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/mon: print out entity addr type when non peer address matches
authorKefu Chai <kchai@redhat.com>
Thu, 21 Jan 2021 07:27:24 +0000 (15:27 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Jan 2021 05:07:48 +0000 (13:07 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/mon/MonClient.cc

index 9dfbb103a38b4ea4f14302ba5cb90afab34d921e..7aa7b65f578614e434e30086921ffe5fbec259a8 100644 (file)
@@ -960,7 +960,8 @@ seastar::future<> Client::reopen_session(int rank)
     auto peer = monmap.get_addrs(rank).pick_addr(msgr.get_myaddr().get_type());
     if (peer == entity_addr_t{}) {
       // crimson msgr only uses the first bound addr
-      logger().warn("mon.{} does not have an addr compatible with me", rank);
+      logger().warn("mon.{} does not have an addr compatible with my type: {}",
+                   rank, msgr.get_myaddr().get_type());
       return seastar::now();
     }
     logger().info("connecting to mon.{}", rank);