Downloaded images are remained if instance will be deleted

Bug #1797842 reported by Rikimaru Honjo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-lxd
Confirmed
Wishlist
Unassigned

Bug Description

[Details]
Downloaded images are remained on compute nodes even if instance will be deleted.
For exmple, Libvirt driver deletes downloaded images if instances are'nt using it.

If the number of unused images will continue to increase, the available disk size of compute nodes decrease.

[Reproduce Steps]
1. Create a instance by nova-lxd.
2. Delete the instance.
3. Run "sudo lxc image list" on the compute node where the deleted instance existed.

Changed in nova-lxd:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Yes, nova-lxd doesn't delete the images that were fetched to the compute-node when no instances are using those images. It would be necessary to hook into the clean-up function when an instance is deleted to find out of the image is being used by any other instance and then remove it; we'd probably need to take a lock early in the deletion process to prevent a race with another instance being created with the same instance.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.