From: Sage Weil Date: Tue, 16 May 2017 17:27:00 +0000 (-0400) Subject: mgr/ClusterState: report health about pgs X-Git-Tag: ses5-milestone6~8^2~19^2~86 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=27bd39cd0550a25be39d93737c0dc91c25d34a33;p=ceph.git mgr/ClusterState: report health about pgs Signed-off-by: Sage Weil --- diff --git a/src/mgr/ClusterState.cc b/src/mgr/ClusterState.cc index 9a498e958475..3ec59c170787 100644 --- a/src/mgr/ClusterState.cc +++ b/src/mgr/ClusterState.cc @@ -116,9 +116,16 @@ void ClusterState::notify_osdmap(const OSDMap &osd_map) void ClusterState::tick(MMonMgrReport *m) { - dout(0) << __func__ << dendl; + dout(10) << __func__ << dendl; // FIXME: no easy way to get mon features here. this will do for // now, though, as long as we don't make a backward-incompat change. pg_map.encode_digest(m->get_data(), CEPH_FEATURES_ALL); + + // FIXME: reporting health detail here might be a bad idea? + with_osdmap([&](const OSDMap& osdmap) { + pg_map.get_health(g_ceph_context, osdmap, + m->health_summary, + &m->health_detail); + }); m->needs_send = true; }