From 0e7384b0b5cde60ed23cc249f441a21c05a650f2 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 28 Jun 2017 14:46:37 -0400 Subject: [PATCH] mon/MgrStatMonitor: avoid dup health warnings during luminous upgrade PGMonitor is still providing warnings; do not expose the ones we are getting from ceph-mgr (which also come from PGMap::get_health()) too or else we'll get dups! Fixes: http://tracker.ceph.com/issues/20435 Signed-off-by: Sage Weil --- src/mon/MgrStatMonitor.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mon/MgrStatMonitor.cc b/src/mon/MgrStatMonitor.cc index df92265d30797..658b7001d6e2c 100644 --- a/src/mon/MgrStatMonitor.cc +++ b/src/mon/MgrStatMonitor.cc @@ -131,6 +131,10 @@ void MgrStatMonitor::get_health(list >& summary, list > *detail, CephContext *cct) const { + if (mon->osdmon()->osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) { + return; + } + summary.insert(summary.end(), health_summary.begin(), health_summary.end()); if (detail) { detail->insert(detail->end(), health_detail.begin(), health_detail.end()); -- 2.47.3