]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: require_luminous_osds for pg-remap[-items]
authorSage Weil <sage@redhat.com>
Fri, 14 Apr 2017 13:21:17 +0000 (09:21 -0400)
committerSage Weil <sage@redhat.com>
Fri, 14 Apr 2017 13:21:17 +0000 (09:21 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index 93b4414ea602cd2b18cb96fc309e9a9536f5fdef..58ae2fca10fe9c440c255ef30a326971cf0c0b82 100644 (file)
@@ -7429,6 +7429,11 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
       err = -EPERM;
       goto reply;
     }
+    if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+      ss << "you must set the require_luminous_osds flag to use this feature";
+      err = -EPERM;
+      goto reply;
+    }
     err = check_cluster_features(CEPH_FEATUREMASK_OSDMAP_REMAP, ss);
     if (err == -EAGAIN)
       goto wait;
@@ -7484,6 +7489,11 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
       err = -EPERM;
       goto reply;
     }
+    if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+      ss << "you must set the require_luminous_osds flag to use this feature";
+      err = -EPERM;
+      goto reply;
+    }
     err = check_cluster_features(CEPH_FEATUREMASK_OSDMAP_REMAP, ss);
     if (err == -EAGAIN)
       goto wait;
@@ -7523,6 +7533,11 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
       err = -EPERM;
       goto reply;
     }
+    if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+      ss << "you must set the require_luminous_osds flag to use this feature";
+      err = -EPERM;
+      goto reply;
+    }
     err = check_cluster_features(CEPH_FEATUREMASK_OSDMAP_REMAP, ss);
     if (err == -EAGAIN)
       goto wait;
@@ -7590,6 +7605,11 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
       err = -EPERM;
       goto reply;
     }
+    if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+      ss << "you must set the require_luminous_osds flag to use this feature";
+      err = -EPERM;
+      goto reply;
+    }
     err = check_cluster_features(CEPH_FEATUREMASK_OSDMAP_REMAP, ss);
     if (err == -EAGAIN)
       goto wait;