how to remove image with still used volumes

Erik McCormick emccormick at cirrusseven.com
Tue Nov 8 03:01:22 UTC 2022


On Mon, Nov 7, 2022 at 9:13 PM Christoph Anton Mitterer <
calestyo at scientia.org> wrote:

> Hey.
>
> I have instances with a volume that were once created from some image.
>
> Now the volume's OS was upgraded over time to the respective current
> releases, while the image is long obsolete and just uses up space.
>
> Is there a way to remove those images? It seems normal commands don't
> allow me, as long as there are volumes which were created from them.
>
>
Instance disks are changes over time from a baseline. What this means is,
you can't delete the origin without destroying all of its descendants. What
you can do is set it to "hidden" so it won't show up in the default image
list. You'll still be able to explicitly look for it though, and instances
that depend on it can find it as well.

Check the --hidden option here.

https://docs.openstack.org/glance/train/admin/manage-images.html

If you have older Openstack, you can make "visibility" private which
should hide it from most people. I'm not sure how long --hidden has existed.



> Thanks,
> Chris.
>
>
-Erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20221107/e614fb89/attachment.htm>


More information about the openstack-discuss mailing list