Repository navigation
Resync VM snapshot merge process after failure - #14502
JoaoJandre wants to merge 3 commits into
Conversation
|
@abh1sar Can you review? |
|
@vladimirpetrov #14030 and #14019 are fixed by this and multiple users have reported this issue. I feel like this is an important fix to get into 4.22.2. If the community reviews and approves it, could we try to get it into 4.22.2? |
|
@blueorangutan package |
|
This PR will likely have merge conflicts with main. When it gets merged into 4.22.2, I can merge it forward to main. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 4.22 #14502 +/- ##
============================================
+ Coverage 18.26% 18.31% +0.04%
- Complexity 16608 16636 +28
============================================
Files 5939 5939
Lines 537697 537828 +131
Branches 65922 65937 +15
============================================
+ Hits 98210 98489 +279
+ Misses 428299 428131 -168
- Partials 11188 11208 +20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@blueorangutan package |
|
@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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19775 |
|
@Damans227 I pushed a new commit addressing your reviews. Could you review again? |
|
@JoaoJandre this looks good on the code side. can you get it tested on kvm? |
@Damans227 I already tested the PR. The tests are in the description :D |
|
thanks @JoaoJandre, CLGTM |
Description
This PR fixes #14030 and #14019
If the process for a disk-only VM snapshot merge fails for any reason and the process was already partially done, e.g. one of the VM's volumes was already merged, this may cause a de-synchronization between what the Management Server and the VM's actual metadata.
This PR enhances the merge process so that if a previous merge attempt failed or stopped in the middle of the process, we can try again.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
I repeated the tests using
libvirt.events.enabledas true. I also repeated the tests with a stopped VM.