osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ops][glance] How to remove images stuck in 'deleted'


Hi

I have a few old images that for some reasons are stuck in the deleted
state, and I would like to remove them


Since a simple "openstack image delete <id>" can't be used [*], is it safe
to set images.deleted to '1' in the glance db and then remove the relevant
file in the backend ?
Or are there better/safer options ?

I am now running OpenStack Rocky

Thanks, Massimo

[*]
Failed to delete image with name or ID
'70a784ec-b109-4d4a-8a63-7c58d8db866c': 400 Bad Request: Image status
transition from deleted to deleted is not allowed (HTTP 400)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20190830/a5d0ab2c/attachment.html>