From b90d259aa9134423f095e520d92004f905ce4a3b Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Sat, 8 Jul 2017 16:07:45 +0800 Subject: [PATCH] mon/OSDMonitor: improve "osd upmap" error message by adding a explicit guide. Signed-off-by: xie xingguo --- src/mon/OSDMonitor.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 4fc7c09fafe9e..467c84cfcf1d3 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -8913,7 +8913,9 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op, if (osdmap.require_min_compat_client < CEPH_RELEASE_LUMINOUS) { ss << "min_compat_client " << ceph_release_name(osdmap.require_min_compat_client) - << " < luminous, which is required for pg-upmap"; + << " < luminous, which is required for pg-upmap. " + << "Try 'ceph osd set-require-min-compat-client luminous' " + << "before using the new interface"; err = -EPERM; goto reply; } -- 2.39.5