Project

General

Profile

Bug #19400

Updated by Josh Durgin about 7 years ago

In luminous the mon_allow_pool_delete is default to false and it may be confusing for any admin who 
 tries to delete a pool with below error message,  

 <pre> 
 It would be nice to throw the below error when its due to config safety flag. 

 $ sudo rados rmpool test4 test4 --yes-i-really-really-mean-it 
 pool test4 could not be removed 
 error 1: (1) Operation not permitted 
 </pre> 

 Instead, when the rados user has 'allow *' permissions for the monitor, and pool deletion from the 'ceph osd pool delete' or 'rados rmpool' commands fails with EPERM, we can warn about the possibility of this config option being set, e.g.: 

 <pre> 
 $ sudo rados rmpool test4 test4 --yes-i-really-really-mean-it 
 pool test4 could not be removed 
 Check your monitor configuration - 'mon allow pool delete' is false by default 
 </pre>

Back