From: Rishabh Dave Date: Tue, 15 Sep 2020 19:40:31 +0000 (+0530) Subject: mon/MDSMonitor: return zero when mds is absent for "mds fail" X-Git-Tag: v16.1.0~1078^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F37159%2Fhead;p=ceph.git mon/MDSMonitor: return zero when mds is absent for "mds fail" ... instead of EINVAL. Signed-off-by: Rishabh Dave --- diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index 391c5c7c47b..f00460e684a 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -1456,7 +1456,9 @@ int MDSMonitor::filesystem_command( MDSMap::mds_info_t failed_info; mds_gid_t gid = gid_from_arg(fsmap, who, ss); if (gid == MDS_GID_NONE) { - return -EINVAL; + ss << "MDS named '" << who << "' does not exist, is not up or you " + << "lack the permission to see."; + return 0; } if(!fsmap.gid_exists(gid, op->get_session()->get_allowed_fs_names())) { ss << "MDS named '" << who << "' does not exist, is not up or you "