]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: ignore health checks about require_luminous if debug flag is set
authorSage Weil <sage@redhat.com>
Mon, 10 Apr 2017 22:31:22 +0000 (18:31 -0400)
committerSage Weil <sage@redhat.com>
Thu, 13 Apr 2017 14:10:26 +0000 (10:10 -0400)
This makes it tedious for teuthology health checks to proceed when we
deliberately run luminous osds without this flag.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index a4eab94fca12803faf5067d5c1f2e301b0304177..9731e73e692bba5b835cd71e53b25df11930ab49 100644 (file)
@@ -3676,7 +3676,9 @@ void OSDMonitor::get_health(list<pair<health_status_t,string> >& summary,
     }
 
     // warn about upgrade flags that can be set but are not.
-    if (HAVE_FEATURE(osdmap.get_up_osd_features(), SERVER_LUMINOUS) &&
+    if (g_conf->mon_debug_no_require_luminous) {
+      // ignore these checks
+    } else if (HAVE_FEATURE(osdmap.get_up_osd_features(), SERVER_LUMINOUS) &&
        !osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
       string msg = "all OSDs are running luminous or later but the"
        " 'require_luminous_osds' osdmap flag is not set";