]> 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>
Fri, 18 Oct 2019 17:49:41 +0000 (10:49 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 5ab145d6402a2525d69296de95b36214bc4c7431)

src/mon/PGMap.cc

index de522a0bb81405d548a93ceae520b9b99277fd7a..7b06d46a3940da7da39ed24bf9caf35835e1f860 100644 (file)
@@ -2652,7 +2652,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());
     }
@@ -2666,7 +2669,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());
     }