- Notifications
You must be signed in to change notification settings - Fork1.3k
Comments
Block use of internal and external snapshots on KVM#11039
Block use of internal and external snapshots on KVM#11039DaanHoogland merged 4 commits intoapache:mainfrom
Conversation
JoaoJandre commentedJun 16, 2025
codecovbot commentedJun 16, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@## main #11039 +/- ##========================================= Coverage 17.55% 17.56%- Complexity 15535 15537 +2========================================= Files 5911 5912 +1 Lines 529359 529383 +24 Branches 64655 64660 +5 =========================================+ Hits 92949 92980 +31+ Misses 425952 425942 -10- Partials 10458 10461 +3
Flags with carried forward coverage won't be shown.Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
JoaoJandre commentedJun 16, 2025
@blueorangutan package |
blueorangutan commentedJun 16, 2025
@JoaoJandre a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan commentedJun 16, 2025
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 13798 |
blueorangutan commentedJun 17, 2025
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 13809 |
DaanHoogland commentedJun 17, 2025
|
JoaoJandre commentedJun 17, 2025
@blueorangutan package |
blueorangutan commentedJun 17, 2025
@JoaoJandre a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan commentedJun 17, 2025
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 13818 |
DaanHoogland commentedJun 18, 2025
@blueorangutan package |
blueorangutan commentedJun 18, 2025
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan commentedJun 18, 2025
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13826 |
rp- commentedJul 3, 2025
Linstor does currently not support memory snapshots (we check and throw an error if selected). |
...apshot/src/main/java/org/apache/cloudstack/storage/vmsnapshot/DefaultVMSnapshotStrategy.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...apshot/src/main/java/org/apache/cloudstack/storage/vmsnapshot/DefaultVMSnapshotStrategy.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
slavkap left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
code LGTM
I haven't tested it with NFS, but the StorPool smoke tests are executed successfully
DaanHoogland commentedJul 8, 2025
@blueorangutan test |
blueorangutan commentedJul 8, 2025
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
blueorangutan commentedJul 9, 2025
[SF] Trillian test result (tid-13723)
|
weizhouapache commentedAug 28, 2025
@JoaoJandre |
JoaoJandre commentedAug 28, 2025
@weizhouapache PR#10632 blocks the usage of the feature introduced in#10632 and other incompatible features. This PR purposefully ignores#10632 and adds restrictions to avoid other interactions between internal and external snapshots; such as volume snapshot and disk-and-memory VM snapshot. They are complementary. When merging this PR forward, care should be taken so that the validations of both PRs do not erase one another (I can make the merge forward if needed). |
weizhouapache commentedAug 28, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
ok@JoaoJandre |
JoaoJandre commentedSep 15, 2025
@DaanHoogland I'm pretty sure I built this PR and it worked (the github build also worked); could we try again later? |
blueorangutan commentedSep 16, 2025
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15030 |
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
JoaoJandre commentedNov 17, 2025
@blueorangutan package |
blueorangutan commentedNov 17, 2025
@JoaoJandre a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan commentedNov 17, 2025
Packaging result [SF]: ✔️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 15784 |
JoaoJandre commentedNov 18, 2025
@blueorangutan package |
blueorangutan commentedNov 18, 2025
@JoaoJandre a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan commentedNov 18, 2025
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 15789 |
JoaoJandre commentedNov 19, 2025
@blueorangutan package |
blueorangutan commentedNov 19, 2025
@JoaoJandre a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan commentedNov 19, 2025
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15793 |
weizhouapache commentedNov 19, 2025
@blueorangutan test |
blueorangutan commentedNov 19, 2025
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
blueorangutan commentedNov 20, 2025
[SF] Trillian test result (tid-14847)
|
DaanHoogland commentedNov 21, 2025
@JoaoJandre , are we good to go with this? cc@weizhouapache |
JoaoJandre commentedNov 21, 2025
I believe we have all the prerequisites to merge,@DaanHoogland. Shall we? |
8171d95 intoapache:mainUh oh!
There was an error while loading.Please reload this page.
Description
On KVM, there are two types of snapshots: internal and external. Most snapshot/backup solutions use external snapshots on ACS; save for disk-and-memory VM snapshots, which use internal snapshots (this is a limitation with KVM, as far as I know).
However, since internal snapshots are stored inside the VM's volume (hence the name), if an internal snapshot is taken after an external snapshot and the external snapshot is restored, the internal snapshot is lost.
Thus, this PR blocks the use of disk-and-memory VM snapshots alongside volume snapshots, NAS backups, and disk-only VM snapshots (at least the ones created using the default volume snapshot implementation).
I encourage maintainers of 3rd party storage providers to test if their implementation is compatible with disk-and-memory VM snapshots, if it is not it their simultaneous usage should be blocked.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
I created a VM and created a few disk-and-memory VM snapshots on it; then I tried to create NAS backups, volume snapshots and disk-only VM snapshots, all of them gave me an error, which is expected.
I validated that the opposite was also true for the aforementioned cases, e.g., create volume snapshot and try to create disk-and-memory VM snapshot.
I also validated that it was possible to create multiple NAS backups, disk-only VM snapshots and volume snapshots with no issues.