mon/OSDMonitor: require mimic mons for require_osd_release=mimic

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2018-12-13 09:14:03 -06:00
parent 576b6a77f1
commit deb92c9d89

View File

@ -10194,6 +10194,12 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
goto reply;
}
if (rel == CEPH_RELEASE_MIMIC) {
if (!mon->monmap->get_required_features().contains_all(
ceph::features::mon::FEATURE_MIMIC)) {
ss << "not all mons are mimic";
err = -EPERM;
goto reply;
}
if ((!HAVE_FEATURE(osdmap.get_up_osd_features(), SERVER_MIMIC))
&& !sure) {
ss << "not all up OSDs have CEPH_FEATURE_SERVER_MIMIC feature";