]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Monitor: use legacy health checks in 'status' output before upgrade completion 17176/head
authorSage Weil <sage@redhat.com>
Thu, 10 Aug 2017 13:41:05 +0000 (09:41 -0400)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Aug 2017 02:51:40 +0000 (10:51 +0800)
This matches what the 'health' command does.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit ced39aeeef441fc588c5f2570710ab107b55828c)

src/mon/Monitor.cc

index 34cecc03febbe38ddf349c8c0af1057eb567f681..2de26718268a7cd21de063b64650d885204c177e 100644 (file)
@@ -2707,7 +2707,12 @@ void Monitor::get_cluster_status(stringstream &ss, Formatter *f)
 
   if (f) {
     f->dump_stream("fsid") << monmap->get_fsid();
-    get_health_status(false, f, nullptr);
+    if (osdmon()->osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) {
+      get_health_status(false, f, nullptr);
+    } else {
+      list<string> health_str;
+      get_health(health_str, nullptr, f);
+    }
     f->dump_unsigned("election_epoch", get_epoch());
     {
       f->open_array_section("quorum");