]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/PGMonitor: stop generating health warnings with luminous
authorSage Weil <sage@redhat.com>
Thu, 23 Feb 2017 21:33:47 +0000 (16:33 -0500)
committerSage Weil <sage@redhat.com>
Mon, 6 Mar 2017 22:21:22 +0000 (17:21 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMonitor.cc

index 4fd2109b664b8abf08e84dc70c8c067550998c93..17804fafe86a0a21226673a611557239543bae8b 100644 (file)
@@ -1734,8 +1734,12 @@ void PGMonitor::get_health(list<pair<health_status_t,string> >& summary,
   }
 
   // full/nearfull
-  check_full_osd_health(summary, detail, pg_map.full_osds, "full", HEALTH_ERR);
-  check_full_osd_health(summary, detail, pg_map.nearfull_osds, "near full", HEALTH_WARN);
+  if (!mon->osdmon()->osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+    check_full_osd_health(summary, detail, pg_map.full_osds, "full",
+                         HEALTH_ERR);
+    check_full_osd_health(summary, detail, pg_map.nearfull_osds, "near full",
+                         HEALTH_WARN);
+  }
 
   // near-target max pools
   const map<int64_t,pg_pool_t>& pools = mon->osdmon()->osdmap.get_pools();