]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: added more info on pool delete error 14235/head
authorVedant Nanda <vedant15114@iiitd.ac.in>
Wed, 29 Mar 2017 19:39:39 +0000 (01:09 +0530)
committerVedant Nanda <vedant15114@iiitd.ac.in>
Wed, 29 Mar 2017 19:39:39 +0000 (01:09 +0530)
Fixes: http://tracker.ceph.com/issues/19400
Signed-off-by: Vedant Nanda <vedant15114@iiitd.ac.in>
src/tools/rados/rados.cc

index 66d344faaa1cc2dac55eefbf451b89ade81e2ad1..cd89f6638184e37f68600fc5364d91e4225c5ca9 100644 (file)
@@ -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) {