From 56a6c7ea753e28e095859db46b9017d63dc4266a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 29 Aug 2017 09:38:15 -0400 Subject: [PATCH] mon/OSDMonitor: allow require-osd-release mimic Signed-off-by: Sage Weil --- src/mon/OSDMonitor.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index fd6bfdab9a3eb..62a6f3a7e565c 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -8928,6 +8928,12 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op, err = -EPERM; goto reply; } + } else if (rel == CEPH_RELEASE_MIMIC) { + if (!HAVE_FEATURE(osdmap.get_up_osd_features(), SERVER_MIMIC)) { + ss << "not all up OSDs have CEPH_FEATURE_SERVER_MIMIC feature"; + err = -EPERM; + goto reply; + } } else { ss << "not supported for this release yet"; err = -EPERM; -- 2.39.5