From: Vedant Nanda Date: Wed, 29 Mar 2017 19:39:39 +0000 (+0530) Subject: rados: added more info on pool delete error X-Git-Tag: v12.0.2~121^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6b9aa0569dbddc0267ecc4271189255f7b8de9f2;p=ceph.git rados: added more info on pool delete error Fixes: http://tracker.ceph.com/issues/19400 Signed-off-by: Vedant Nanda --- diff --git a/src/tools/rados/rados.cc b/src/tools/rados/rados.cc index 66d344faaa1c..cd89f6638184 100644 --- a/src/tools/rados/rados.cc +++ b/src/tools/rados/rados.cc @@ -2832,6 +2832,8 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts, cout << "successfully deleted pool " << nargs[1] << std::endl; } else { //error cerr << "pool " << nargs[1] << " could not be removed" << std::endl; + cerr << "Check your monitor configuration - `mon allow pool delete` is set to false by default," + << " change it to true to allow deletion of pools" << std::endl; } } else if (strcmp(nargs[0], "purge") == 0) { @@ -2859,6 +2861,8 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts, cout << "successfully purged pool " << nargs[1] << std::endl; } else { //error cerr << "pool " << nargs[1] << " could not be purged" << std::endl; + cerr << "Check your monitor configuration - `mon allow pool delete` is set to false by default," + << " change it to true to allow deletion of pools" << std::endl; } } else if (strcmp(nargs[0], "lssnap") == 0) {