Removing a pool
Understand how to use the RESTful plug-in to remove a pool.
Removing a pool is not allowed by default. To allow the removal of a pool, in the Ceph
configuration file, add the following
parameter:
mon_allow_pool_delete = trueRemoving a pool using the curl command
On the command line, run the following command:
curl --request DELETE --silent --user USER 'https://CEPH_MANAGER:8080/api/pool/ID'Replace:- USER with the username.
- CEPH_MANAGER with the IP address or short hostname of the node with the
active
ceph-mgrinstance. - ID with the ID of the pool listed in the
poolfield.
Enter the user’s password when prompted.
Note: If using a self-signed certificate, use the
--insecure
option.
curl --request DELETE --silent --insecure --user USER 'https://CEPH_MANAGER:8080/api/pool/ID'Removing a pool using Python
In the Python interpreter, enter the following:
$ python
>> import requests
>> result = requests.delete('https://CEPH_MANAGER:8080/api/pool/ID', auth=("USER", "PASSWORD"))
>> print result.json()Replace:- CEPH_MANAGER with the IP address or short hostname of the node with the
active
ceph-mgrinstance. - ID with the ID of the pool listed in the
poolfield. - USER with the username.
- PASSWORD with the user’s password.
Note: If using a self-signed certificate, use
verify=False.$ python
>> import requests
>> result = requests.delete('https://CEPH_MANAGER:8080/api/pool/ID', auth=("USER", "PASSWORD"), verify=False)
>> print result.json()