andrijapanicsb commented on issue #3649: Garbage snapshots are left on Primary and Secondary URL: https://github.com/apache/cloudstack/pull/3649#issuecomment-557715680 Alright - so far tested only KVM (centos 7) with NFS: **While backup to secondary = true**, results as follows: - snap created on Prim Stor, copied to Sec Store, snap deleted from Prim Store (exists only on Sec Store) - revert from snap is possible (image moved back and overwritten on Prim Store, as FULL clone) - When deleting snap, it's instantly removed from Sec Stor NFS, DB records stay until cleanup thread. - CleanUp thread finds snaps fine, and removes them from the snapshots_store_ref table - but it only removes the ones that are pointing to the Sec Store, not the ones that are pointing to PrimStore (though they are marked as deleted, but rows physically present in the table) In general, looking good, except that those records for snap reference on Prim Store are not deleted from the snapshots_store_ref table **While backup to secondary = false**, results as follows: - snap created and stays only on Prim Store, all good. - **can't delete the snap** - getting error _"Failed to delete snapshot:java.util.MissingFormatArgumentException: Format specifier '%d'"_ - cant revert volume from snap (seems to require to be on secondary storage, API confirms this if you try to revert it via API) - what is the use of this setup then? I'm certainly missing something or perhaps idea is that we have identical behaviour as many years ago, just this time we don't copy it over to Sec Store @GabrielBrascher (you can only create a template or a volume out of it - can't restore it) Here is more detailed error when deleting a snap that exists only on Prim Store:
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
