From: Sage Weil Date: Fri, 8 Sep 2017 19:04:57 +0000 (-0400) Subject: mon/OSDMonitor: drop old upgrade guards; make upgrades stop at O X-Git-Tag: v13.0.1~861^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8ade1afa5846b74650978a2decd799ad871d09d7;p=ceph.git mon/OSDMonitor: drop old upgrade guards; make upgrades stop at O 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 --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 259672f8943a..51a3e08b5e37 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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() &&