]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: Indicate when an osd with slow ping time is down
authorDavid Zafman <dzafman@redhat.com>
Fri, 19 Jul 2019 04:29:49 +0000 (21:29 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 4 Nov 2019 22:21:21 +0000 (14:21 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 5ab145d6402a2525d69296de95b36214bc4c7431)

src/mon/PGMap.cc

index 343977ae6c76f690945487a8906f723f3454356a..177b5ec8f2e7ac0bc714ddc9c551d9ae2899d6ef 100644 (file)
@@ -2783,7 +2783,10 @@ void PGMap::get_health_checks(
       }
       max_detail--;
       ss << "Slow heartbeat ping on back interface from osd." << sback.from
-         << " to osd." << sback.to << " " << sback.pingtime << " usec"
+         << (osdmap.is_down(sback.from) ? " (down)" : "")
+        << " to osd." << sback.to
+         << (osdmap.is_down(sback.to) ? " (down)" : "")
+        << " " << sback.pingtime << " usec"
         << (sback.improving ? " possibly improving" : "");
       detail_back.push_back(ss.str());
     }
@@ -2797,7 +2800,10 @@ void PGMap::get_health_checks(
       }
       max_detail--;
       ss << "Slow heartbeat ping on front interface from osd." << sfront.from
-         << " to osd." << sfront.to << " " << sfront.pingtime << " usec"
+         << (osdmap.is_down(sfront.from) ? " (down)" : "")
+         << " to osd." << sfront.to
+         << (osdmap.is_down(sfront.to) ? " (down)" : "")
+        << " " << sfront.pingtime << " usec"
         << (sfront.improving ? " possibly improving" : "");
       detail_front.push_back(ss.str());
     }