Ask Your Question

Recover image in pending delete status?

asked 2015-03-09 03:30:45 -0500

jdiaz9 gravatar image

updated 2015-03-09 04:12:18 -0500

Is there a way to recover an image that is in pending_delete status? I have a few snapshots that no longer work because the base image was scheduled for deletion. I've tried recovering the image by using glance image-update <image-id> --property status=ACTIVE but that doesn't seem to update the image. I've also tried downloading the image using glance image-download but that command comes back with "

404 Not Found .The resource could not be found. Image is not active.

Any other suggestions. I've learned that there is a new sub command coming out, but either it is not available in my environment or it is still in development. glance image-recover. More on that here: Glance Image Recover. Is there a workaround that could provide the same results?

Any suggestions would be appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ┬╗ oldest newest most voted

answered 2015-03-09 05:26:36 -0500

Hi, the glance service stores images in the local hard disk. Try to check the correct status by looking at the glance/images database and also you can check whether image exists in /var/lib/glance/image directory. Well, if the image exists, you can save that image and upload to glance repository. If suppose, that image does not exist, then you can try taking snapshort of an instance(instance launched with the same image you deleted) to recover that image.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-03-09 03:30:45 -0500

Seen: 776 times

Last updated: Mar 09 '15