Ask Your Question

Can I force-delete an image?

asked 2016-11-01 21:36:32 -0500

updated 2016-11-01 21:36:49 -0500

This is on Mitaka.

I have a glance image that I can't delete. It is not protected, and I am admin.

$ glance image-delete 9d451c89-c9c2-472d-82e3-fcef98b39196
'500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)': Unable to delete image '9d451c89-c9c2-472d-82e3-fcef98b39196'

The reason is clear: This image was created with Swift as Glance store. I later configured Ceph as the unique Glance store but forgot to delete the image first.

Is there a way to remove the image from Glance?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-11-02 06:41:49 -0500

you can update on the glance db the status to deleted -> update images set status = 'deleted' where id = 'sdasdaasd-asdasdasd-adasdasd'

HTH Amedeo

edit flag offensive delete link more


Thanks Amadeo, it will help. Of course I had hoped to find an API-based solution.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-05 02:16:14 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-11-01 21:36:32 -0500

Seen: 2,697 times

Last updated: Nov 02 '16