Volume still has 1 dependent snapshots
Hi,
We are getting the error listed below while deleting the Volume from Openstack. I have tried it from the CLI too but no luck. Please suggest the solution.
============================================================================================
root@*****:/home/stack# cinder list
+--------------------------------------+--------+--------------+------+-------------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+--------+--------------+------+-------------------+----------+-------------+
| c51c1aa5-bc49-4c0c-8ea0-30ccf406f851 | error | FED | 20 | First Volume | true | |
+--------------------------------------+--------+--------------+------+-------------------+----------+-------------+
==============================================================================================
ERROR
BadRequest: Invalid volume: Volume still has 1 dependent snapshots (HTTP 400) (Request-ID: req-e14dc10c-9ba5-4f84-ae38-c15a4404f5ce)
Have you tried deleting the (dependent) snapshot first and then the volume?
Hi,
Actually there is no snapshot available at the moment. How can we delete it from DB ?
SELECT * from cinder.snapshots WHERE volume_id = '<your volume="" id="">'; Will show you snapshots connected to the volume, if any.
UPDATE cinder.snapshots SET deleted = 1, deleted_at = NOW() WHERE id = '<your snapshot="" id="">'; Will mark a specific snapshot as deleted in openstack.
UPDATE cinder.volumes SET deleted = 1, deleted_at = NOW() WHERE id = '<your volume="" id="">'; Will mark a specific volume as deleted in openstack.
Please note that you might want to check why the snapshot/volume didn't show before doing it this way.