Ask Your Question

How to delete a volume snapshot force?

asked 2020-01-15 01:04:23 -0500

tony.pearce gravatar image

PReviously, I've had a situation where a volume was not created on the backend iscsi but the entry was created in the db on openstack. So when we tried to delete the volume from openstack it would go into "error deleting" status because it could not find the volume on the backend to delete - I am assuming. To workaround this, I deleted the entry from the cinder db like: "mysql>update volumes set deleted=1,status='deleted',deleted_at=now(),updated_at=now() where deleted=0 and id='8022e762-7d9f-435b-ab36-412e903c2756';

Now I have a situation where there are some snapshots that really do exist in the backend but it looks like a recent OS upgrade of the backend iscsi has changed the backend api and now the snapshot deleterequests from openstack are not understood by the backend. I have manually deleted one snapshot on the backend. Openstack still has this listed under volume snapshots.

Where can I manually delete the snapshot from openstack to make it go away?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-01-15 20:12:13 -0500

tony.pearce gravatar image
  1. make the snapshot available cinder snapshot-reset-state 13d713b4-0fda-40fa-8d13-5a44c58a7514
  2. edit the mysqldb mysql
  3. use cinder;
  4. update snapshots set deleted=1,status='deleted',deleted_at=now(),updated_at=now() where deleted=0 and id='13d713b4-0fda-40fa-8d13-5a44c58a7514';
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2020-01-15 01:04:23 -0500

Seen: 1,302 times

Last updated: Jan 15 '20