slavkap opened a new pull request, #14788: URL: https://github.com/apache/cloudstack/pull/14788
### Description This PR fixes the VM snapshots on StorPool when memory is selected. DefaultVMSnapshotStrategy accepts the allocation because StorPool volumes are recorded as QCOW2, but StorPoolVMSnapshotStrategy then takes over the creation and makes a disk-only group snapshot that is saved as DiskAndMemory. Such a snapshot can only be reverted while the VM is running, and StorPool then reverts the volumes under the running VM, which corrupts its data. Reject memory snapshots for VMs with volumes on StorPool during allocation, do not handle allocated DiskAndMemory snapshots in the StorPool strategy, and block reverting existing DiskAndMemory snapshots on StorPool. ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [X] Bug fix (non-breaking change which fixes an issue) - [ ] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) - [ ] Build/CI - [ ] Test (unit or integration test code) #### Bug Severity - [ ] BLOCKER - [X] Critical - [ ] Major - [ ] Minor - [ ] Trivial ### Screenshots (if appropriate): ### How Has This Been Tested? Unit tests, smoke tests and manual testing -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
