]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: drop old upgrade guards; make upgrades stop at O 17607/head
authorSage Weil <sage@redhat.com>
Fri, 8 Sep 2017 19:04:57 +0000 (15:04 -0400)
committerSage Weil <sage@redhat.com>
Fri, 15 Sep 2017 18:49:42 +0000 (14:49 -0400)
We may not end up doing this but it keeps a template for how the
guard worked before in the code for future reference.

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

index 259672f8943a5a98d4bb1f5382d01f2e50a15eb7..51a3e08b5e37ce9876e0252dab98ce48bbbd5d41 100644 (file)
@@ -2182,44 +2182,15 @@ bool OSDMonitor::preprocess_boot(MonOpRequestRef op)
     }
   }
 
-  // make sure upgrades stop at luminous
-  if (HAVE_FEATURE(m->osd_features, SERVER_MIMIC) &&
-      osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
-    mon->clog->info() << "disallowing boot of post-luminous OSD "
+  // make sure upgrades stop at nautilus
+  if (HAVE_FEATURE(m->osd_features, SERVER_O) &&
+      osdmap.require_osd_release < CEPH_RELEASE_NAUTILUS) {
+    mon->clog->info() << "disallowing boot of post-nautilus OSD "
                      << m->get_orig_source_inst()
-                     << " because require_osd_release < luminous";
+                     << " because require_osd_release < nautilus";
     goto ignore;
   }
 
-  // make sure upgrades stop at jewel
-  if (HAVE_FEATURE(m->osd_features, SERVER_KRAKEN) &&
-      osdmap.require_osd_release < CEPH_RELEASE_JEWEL) {
-    mon->clog->info() << "disallowing boot of post-jewel OSD "
-                     << m->get_orig_source_inst()
-                     << " because require_osd_release < jewel";
-    goto ignore;
-  }
-
-  // make sure upgrades stop at hammer
-  //  * HAMMER_0_94_4 is the required hammer feature
-  //  * MON_METADATA is the first post-hammer feature
-  if (osdmap.get_num_up_osds() > 0) {
-    if ((m->osd_features & CEPH_FEATURE_MON_METADATA) &&
-       !(osdmap.get_up_osd_features() & CEPH_FEATURE_HAMMER_0_94_4)) {
-      mon->clog->info() << "disallowing boot of post-hammer OSD "
-                       << m->get_orig_source_inst()
-                       << " because one or more up OSDs is pre-hammer v0.94.4";
-      goto ignore;
-    }
-    if (!(m->osd_features & CEPH_FEATURE_HAMMER_0_94_4) &&
-       (osdmap.get_up_osd_features() & CEPH_FEATURE_MON_METADATA)) {
-      mon->clog->info() << "disallowing boot of pre-hammer v0.94.4 OSD "
-                       << m->get_orig_source_inst()
-                       << " because all up OSDs are post-hammer";
-      goto ignore;
-    }
-  }
-
   // already booted?
   if (osdmap.is_up(from) &&
       osdmap.get_inst(from) == m->get_orig_source_inst() &&