]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: clean up error messages 16217/head
authorSage Weil <sage@redhat.com>
Fri, 7 Jul 2017 16:52:53 +0000 (12:52 -0400)
committerSage Weil <sage@redhat.com>
Fri, 7 Jul 2017 16:52:53 +0000 (12:52 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index 921b8f88199c1b7750f80ec3a8344b170c798b6e..76a7ee0c08042caa8c4c2816cfdfc9d852c929ae 100644 (file)
@@ -7061,8 +7061,8 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
 
   } else if (prefix == "osd crush set-device-class") {
     if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
-      ss << "you must complete the upgrade and set require_osd_release ="
-        << "luminous before using crush device classes";
+      ss << "you must complete the upgrade and 'ceph osd require-osd-release "
+        << "luminous' before using crush device classes";
       err = -EPERM;
       goto reply;
     }
@@ -7178,8 +7178,8 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
       goto reply;
     }
     if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
-      ss << "you must complete the upgrade and set require_osd_release ="
-        << "luminous before using crush device classes";
+      ss << "you must complete the upgrade and 'ceph osd require-osd-release "
+        << "luminous' before using crush device classes";
       err = -EPERM;
       goto reply;
     }
@@ -7212,8 +7212,8 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
       goto reply;
     }
     if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
-      ss << "you must complete the upgrade and set require_osd_release ="
-        << "luminous before using crush device classes";
+      ss << "you must complete the upgrade and 'ceph osd require-osd-release "
+        << "luminous' before using crush device classes";
       err = -EPERM;
       goto reply;
     }
@@ -7255,8 +7255,8 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
       goto reply;
     }
     if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
-      ss << "you must complete the upgrade and set require_osd_release ="
-        << "luminous before using crush device classes";
+      ss << "you must complete the upgrade and 'ceph osd require-osd-release "
+        << "luminous' before using crush device classes";
       err = -EPERM;
       goto reply;
     }
@@ -8088,8 +8088,8 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
             prefix == "osd set-backfillfull-ratio" ||
              prefix == "osd set-nearfull-ratio") {
     if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
-      ss << "you must complete the upgrade and set require_osd_release ="
-        << "luminous before using the new interface";
+      ss << "you must complete the upgrade and 'ceph osd require-osd-release "
+        << "luminous' before using the new interface";
       err = -EPERM;
       goto reply;
     }
@@ -8113,8 +8113,8 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
     return true;
   } else if (prefix == "osd set-require-min-compat-client") {
     if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
-      ss << "you must complete the upgrade and set require_osd_release ="
-        << "luminous before using the new interface";
+      ss << "you must complete the upgrade and 'ceph osd require-osd-release "
+        << "luminous' before using the new interface";
       err = -EPERM;
       goto reply;
     }
@@ -8845,8 +8845,8 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
              prefix == "osd pg-upmap-items" ||
              prefix == "osd rm-pg-upmap-items") {
     if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
-      ss << "you must complete the upgrade and set require_osd_release ="
-        << "luminous before using the new interface";
+      ss << "you must complete the upgrade and 'ceph osd require-osd-release "
+        << "luminous' before using the new interface";
       err = -EPERM;
       goto reply;
     }