]> git-server-git.apps.pok.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, 26 Aug 2019 15:25:34 +0000 (15:25 +0000)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/mon/PGMap.cc

index 7b0befc064c82e7f77744b5db32fca342f273c38..8bebe8f1c4b9b193f8cd387f3b4115e422e83363 100644 (file)
@@ -2833,7 +2833,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());
     }
@@ -2847,7 +2850,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());
     }