]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: allow require-osd-release mimic
authorSage Weil <sage@redhat.com>
Tue, 29 Aug 2017 13:38:15 +0000 (09:38 -0400)
committerSage Weil <sage@redhat.com>
Tue, 29 Aug 2017 13:38:15 +0000 (09:38 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index fd6bfdab9a3eb511690f0e6212cb5cb805ecd278..62a6f3a7e565c750f4542134a9bc61268a2a0eae 100644 (file)
@@ -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;