andrijapanicsb opened a new issue #4018: Snapshots GC from DB - needs refractoring and fixing snapshot_store_ref garbage URL: https://github.com/apache/cloudstack/issues/4018 For details please see my comment: https://github.com/apache/cloudstack/pull/3969#issuecomment-609950065 The idea is that when the GC kicks in (setting storage.cleanup.interval) - it will remove SOME rows from the snapshot_store_ref table (IMAGE rows, where role_type=image) but not the PRIMARY (role_type=primary) and thus the garbage is left in the snapshot_stor_ref table. In the comment ^^^ I have explained in details what fields in DB tables are changed when deleting a snap, vs when GC kicks in, etc. Reproduce the issue: - set storage.cleanup.interval=60 (seconds), - set snapshot.backup.to.secondary=true, - spin a VM (1 or more volumes), any hypervisor - create snapshots - delete snapshots - wait for GC to kicks in: tail -f /var/log/cloudstack/management/management-server.log | grep "StorageManager-Scavenger" - check the snapshot_store_ref table - rows are left where role_type=primary
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services