From 6b9aa0569dbddc0267ecc4271189255f7b8de9f2 Mon Sep 17 00:00:00 2001 From: Vedant Nanda Date: Thu, 30 Mar 2017 01:09:39 +0530 Subject: [PATCH] rados: added more info on pool delete error Fixes: http://tracker.ceph.com/issues/19400 Signed-off-by: Vedant Nanda --- src/tools/rados/rados.cc | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.47.3