Uh oh!
There was an error while loading. Please reload this page.
Fix snapshot chain being deleted on XenServer - #9447
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## 4.19 #9447 +/- ##
===========================================
Coverage 15.07% 15.08% + Complexity 11170 11168 -2
===========================================
Files 5406 5406 Lines 472699 472699 Branches 61521 58998 -2523 ===========================================
+ Hits 71281 71287 +6 + Misses 393489 393484 -5 + Partials 7929 7928 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
shwstppr
commented
Jul 26, 2024
@blueorangutan package |
blueorangutan
commented
Jul 26, 2024
@shwstppr 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
commented
Jul 26, 2024
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10476 |
yadvr
commented
Jul 26, 2024
@blueorangutan test alma8 xcpng82 |
blueorangutan
commented
Jul 26, 2024
@rohityadavcloud a [SL] Trillian-Jenkins test job (alma8 mgmt + xcpng82) has been kicked to run smoke tests |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
shwstppr
left a comment
There was a problem hiding this comment.
Code LGTM. Will test with a multi-zone env
shwstppr
left a comment
There was a problem hiding this comment.
Tested with a 2 zone (z1, z2) env with one XCP-ng82 host in each.
- Deployed VM
- Created ROOT volume snapshot(snap1) in both zones
- Made changes inside VM
- Again created ROOT volume snapshot(snap2) in both zones
- Deleted snap2 from z2. Successful. snap2 was intact in zone z1. snap1 was intact in both z1 and z2
- Deleted snap2 without passing zoneid. Successful. snap1 was intact in both z1 and z2
blueorangutan
commented
Jul 27, 2024
[SF] Trillian test result (tid-10968)
|
shwstppr
commented
Jul 29, 2024
@blueorangutan test matrix |
blueorangutan
commented
Jul 29, 2024
@shwstppr a [SL] Trillian-Jenkins matrix job (EL8 mgmt + EL8 KVM, Ubuntu22 mgmt + Ubuntu22 KVM, EL8 mgmt + VMware 7.0u3, EL9 mgmt + XCP-ng 8.2 ) has been kicked to run smoke tests |
blueorangutan
commented
Jul 29, 2024
[SF] Trillian Build Failed (tid-10988) |
blueorangutan
commented
Jul 29, 2024
[SF] Trillian Build Failed (tid-10989) |
blueorangutan
commented
Jul 30, 2024
[SF] Trillian test result (tid-10987)
|
blueorangutan
commented
Jul 30, 2024
[SF] Trillian test result (tid-10990)
|
borisstoyanov
commented
Jul 31, 2024
@blueorangutan help |
blueorangutan
commented
Jul 31, 2024
@borisstoyanov [SL] I understand these words: "help", "hello", "thanks", "package", "test" Blessed contributors for kicking Trillian test jobs: ['rohityadavcloud', 'shwstppr', 'vishesh92', 'Pearl1594', 'harikrishna-patnala', 'nvazquez', 'DaanHoogland', 'weizhouapache', 'borisstoyanov', 'vladimirpetrov', 'kiranchavala', 'andrijapanicsb', 'NuxRo', 'rajujith', 'alexandremattioli', 'sureshanaparti', 'abh1sar'] |
borisstoyanov
commented
Jul 31, 2024
@blueorangutan test ol8 vmware-80u1 |
blueorangutan
commented
Jul 31, 2024
@borisstoyanov a [SL] Trillian-Jenkins test job (ol8 mgmt + vmware-80u1) has been kicked to run smoke tests |
blueorangutan
commented
Jul 31, 2024
[SF] Trillian Build Failed (tid-11003) |
borisstoyanov
left a comment
There was a problem hiding this comment.
LGTM, manually check the PR following the steps
JoaoJandre
commented
Aug 1, 2024
Are your concerns met @harikrishna-patnala ? if so, can we move on with this PR @shwstppr ? |
harikrishna-patnala
commented
Aug 1, 2024
Yes, thanks @JoaoJandre |
shwstppr
commented
Aug 1, 2024
Merging based on review and tests |
blueorangutan
commented
Aug 2, 2024
[SF] Trillian test result (tid-11002)
|
* server, api, ui: access improvements and assorted fixes Fixes domain-admin access check to prevent unauthorized access. Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com> Co-authored-by: nvazquez <nicovazquez90@gmail.com> Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * Revert "server: refactor listNetworks api database retrievals (#9184)" This reverts commit c7f1ba5. * Fix snapshot chain being deleted on XenServer (#9447) Using XenServer as the hypervisor, when deleting a snapshot that has a parent, that parent will also get erased on storage, causing data loss. This behavior was introduced with #7873, where the list of snapshot states that can be deleted was changed to add BackedUp snapshots. This PR changes the states list back to the original list, and swaps the while loop for a do while loop to account for the changes in #7873. Fixes#9446 * UI: Display Firewall, LB and Port Forwading rules tab for CKS clusters deployed on isolated networks (#9458) --------- Co-authored-by: nvazquez <nicovazquez90@gmail.com> Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com> Co-authored-by: João Jandre <48719461+JoaoJandre@users.noreply.github.com> Co-authored-by: Pearl Dsilva <pearl1594@gmail.com>
* server, api, ui: access improvements and assorted fixes Fixes domain-admin access check to prevent unauthorized access. Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com> Co-authored-by: nvazquez <nicovazquez90@gmail.com> Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * Revert "server: refactor listNetworks api database retrievals (#9184)" This reverts commit c7f1ba5. * Fix snapshot chain being deleted on XenServer (#9447) Using XenServer as the hypervisor, when deleting a snapshot that has a parent, that parent will also get erased on storage, causing data loss. This behavior was introduced with #7873, where the list of snapshot states that can be deleted was changed to add BackedUp snapshots. This PR changes the states list back to the original list, and swaps the while loop for a do while loop to account for the changes in #7873. Fixes#9446 * UI: Display Firewall, LB and Port Forwading rules tab for CKS clusters deployed on isolated networks (#9458) --------- Co-authored-by: nvazquez <nicovazquez90@gmail.com> Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com> Co-authored-by: João Jandre <48719461+JoaoJandre@users.noreply.github.com> Co-authored-by: Pearl Dsilva <pearl1594@gmail.com>
Using XenServer as the hypervisor, when deleting a snapshot that has a parent, that parent will also get erased on storage, causing data loss. This behavior was introduced with apache#7873, where the list of snapshot states that can be deleted was changed to add BackedUp snapshots. This PR changes the states list back to the original list, and swaps the while loop for a do while loop to account for the changes in apache#7873. Fixesapache#9446
* server, api, ui: access improvements and assorted fixes Fixes domain-admin access check to prevent unauthorized access. Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com> Co-authored-by: nvazquez <nicovazquez90@gmail.com> Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * Revert "server: refactor listNetworks api database retrievals (apache#9184)" This reverts commit c7f1ba5. * Fix snapshot chain being deleted on XenServer (apache#9447) Using XenServer as the hypervisor, when deleting a snapshot that has a parent, that parent will also get erased on storage, causing data loss. This behavior was introduced with apache#7873, where the list of snapshot states that can be deleted was changed to add BackedUp snapshots. This PR changes the states list back to the original list, and swaps the while loop for a do while loop to account for the changes in apache#7873. Fixesapache#9446 * UI: Display Firewall, LB and Port Forwading rules tab for CKS clusters deployed on isolated networks (apache#9458) --------- Co-authored-by: nvazquez <nicovazquez90@gmail.com> Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com> Co-authored-by: João Jandre <48719461+JoaoJandre@users.noreply.github.com> Co-authored-by: Pearl Dsilva <pearl1594@gmail.com>
Description
Using XenServer as the hypervisor, when deleting a snapshot that has a parent, that parent will also get erased on storage, causing data loss. This behavior was introduced with #7873, where the list of snapshot states that can be deleted was changed to add
BackedUpsnapshots.This PR changes the states list back to the original list, and swaps the while loop for a do while loop to account for the changes in #7873.
Fixes#9446
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
How Has This Been Tested?
dd if=/dev/zero of=test bs=1M count=1000syncto make sure data is written to diskBefore the change, S1 would be mistakenly deleted from storage as well, and an inconsistent snapshot record would remain.
After the change, S1 is untouched and works as intended.