From: Sage Weil Date: Thu, 27 Aug 2015 18:08:06 +0000 (-0400) Subject: osd: refuse to boot if any pre-hammer or old hammer ( --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index f6a1fed1b0cfc..26a640972a62a 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4441,6 +4441,10 @@ void OSD::_maybe_boot(epoch_t oldest, epoch_t newest) } else if (!osdmap->test_flag(CEPH_OSDMAP_SORTBITWISE) && !store->can_sort_nibblewise()) { dout(1) << "osdmap SORTBITWISE flag is NOT set but our backend does not support nibblewise sort" << dendl; + } else if (osdmap->get_num_up_osds() && + (osdmap->get_up_osd_features() & CEPH_FEATURE_HAMMER_0_94_4) == 0) { + dout(1) << "osdmap indicates one or more pre-v0.94.4 hammer OSDs is running" + << dendl; } else if (is_waiting_for_healthy() || !_is_healthy()) { // if we are not healthy, do not mark ourselves up (yet) dout(1) << "not healthy; waiting to boot" << dendl;