Open nxsbi opened 1 month ago
Re- uploading screenshots as they did not show up as desired
I have Keep = 3, I expect that the Aug 6 and Aug 7 files will exist, I also expect that Aug 5 file will exist (keep = 3), but since Aug 5 file is part of a chain (by looking at file size), all Files from Jul 30 to Aug 5 need to be kept. However, Jul 3, 4 and 6 files should not exist. These files also show as "Ready" in the snapshot_store_ref .
So issue is - why are the snapshots for Jul5 and those between Jul 7 and Jul 29 destroyed, but not the Jul 3, 4 and 6.
PS - I did notice that the created date in the snapshot_store_ref shows as Jul 23 for many days. Not sure why...
File view:
snapshot_store_ref view
@nxsbi can you please check if this is not due to https://github.com/apache/cloudstack/issues/9446 and try 4.19.1.1 release?
I read through #9446 - This is a separate issue. In that one, the whole chain is getting deleted, while in my issue, files are not getting deleted.
@shwstppr @DaanHoogland - Is there a way to trigger the garbage collection (to clear up deleted snapshot files) manually? Can you provide info on how to trigger and monitor?
@nxsbi , I am not sure. Can you delete those snapshots from the UI?
@DaanHoogland - The old snapshots dont show up on the Web interface. In the UI it only shows the 3 snapshots (based on the snapshot policy setting). The Snapshot_store_ref table shows many old snapshots as "Ready".
To manually do the clean up I update the snapshots table for the ones I want to delete by setting the status = 'BackedUp' and then delete from UI. Even after doing this, the snapshot_store_ref still shows it as Ready. So I have to run a manual update on that table as well.
@nxsbi , I'm trying to reproduce this and see if there is a bug we can fix or a facility we can build to deal with the fallout. I'll let you know how I fare.
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
XCP-Ng backend
OS / ENVIRONMENT
NA
SUMMARY
In Xenserver/XCP_NG backend, when a chain of snapshots exists, the cleanup of old snapshot files is not taking place correctly. Old snapshots contnue to exist, while some in the middle are destroyed and files are deleted as well, but older ones continue to exist.
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS