You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When delete a template, ACS will remove the image from secondary storages.
however, the template images are not immediately removed on primary storages even if it is not used by any VMs.
versions
4.20 + NFS
I think the issue exists in other ACS versions and storage agonistic
The steps to reproduce the bug
register a template
deploy some vms
expunge the vms
delete the template
now check template_spool_ref table to get the path of template image on primary storages
check the files on storage, they are still there
What to do about it?
More findings:
there are some global settings for template cleanup
the unused templates will be marked as GC in the first round and removed in the next round.
so the templates might be removed in two rounds (2 days with default settings)
since the template has been removed in ACS and it is not used by any VM, we could remove it immediately from primary storages, which will free the storage space as soon as possible.
The text was updated successfully, but these errors were encountered:
@weizhouapache I see this change does not effect any other resource in CS, but this looks to me like a behavioral change. Is it okay to go this kind of change in 4.19.3 ?
@weizhouapache I see this change does not effect any other resource in CS, but this looks to me like a behavioral change. Is it okay to go this kind of change in 4.19.3 ?
@harikrishna-patnala
good to have it in 4.19.3. but 4.20.1 or 4.21.0 also looks good to me.
since the template has been removed in ACS and it is not used by any VM, we could remove it immediately from primary storages, which will free the storage space as soon as possible.
what's your opinions on above ? @harikrishna-patnala@DaanHoogland@rohityadavcloud
we actually have the issue in our lab that space of primary storage is not released when a not-being-used template is removed.
problem
When delete a template, ACS will remove the image from secondary storages.
however, the template images are not immediately removed on primary storages even if it is not used by any VMs.
versions
4.20 + NFS
I think the issue exists in other ACS versions and storage agonistic
The steps to reproduce the bug
now check
template_spool_ref
table to get the path of template image on primary storagescheck the files on storage, they are still there
What to do about it?
More findings:
there are some global settings for template cleanup
the unused templates will be marked as GC in the first round and removed in the next round.
so the templates might be removed in two rounds (2 days with default settings)
since the template has been removed in ACS and it is not used by any VM, we could remove it immediately from primary storages, which will free the storage space as soon as possible.
The text was updated successfully, but these errors were encountered: