Downloaded images are remained if instance will be deleted
Bug #1797842 reported by
Rikimaru Honjo
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 |
To post a comment you must log in.
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.