cloudstack
cloudstack copied to clipboard
server,test: fix resourceid for VOLUME.DESTROY in restore VM
Description
Destroys old ROOT volume for the VM to be restored in its own context to allow event to be published with resourceid. Fixes exception in test_event_resources.py Fixes failures seen in: https://github.com/apache/cloudstack/pull/8601#issuecomment-2078654228 https://github.com/apache/cloudstack/pull/8601#issuecomment-2079018980 https://github.com/apache/cloudstack/pull/8601#issuecomment-2079141241
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
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
- [ ] Major
- [ ] Minor
Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [ ] Minor
- [ ] Trivial
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?
@blueorangutan package
@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.
Codecov Report
Attention: Patch coverage is 0%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 14.96%. Comparing base (
ea9a0f4
) to head (07acb7c
). Report is 1 commits behind head on 4.19.
Files | Patch % | Lines |
---|---|---|
.../src/main/java/com/cloud/vm/UserVmManagerImpl.java | 0.00% | 1 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## 4.19 #9032 +/- ##
============================================
- Coverage 14.96% 14.96% -0.01%
+ Complexity 10995 10989 -6
============================================
Files 5373 5373
Lines 469024 469024
Branches 58818 61101 +2283
============================================
- Hits 70197 70177 -20
- Misses 391056 391078 +22
+ Partials 7771 7769 -2
Flag | Coverage Δ | |
---|---|---|
uitests | 4.31% <ø> (ø) |
|
unittests | 15.66% <0.00%> (-0.01%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9520
@blueorangutan test rocky8 kvm-rocky8
@weizhouapache a [SL] Trillian-Jenkins test job (rocky8 mgmt + kvm-rocky8) has been kicked to run smoke tests
[SF] Trillian Build Failed (tid-10150)
@blueorangutan test rocky8 kvm-rocky8
@weizhouapache a [SL] Trillian-Jenkins test job (rocky8 mgmt + kvm-rocky8) has been kicked to run smoke tests
[SF] Trillian test result (tid-10151) Environment: kvm-rocky8 (x2), Advanced Networking with Mgmt server r8 Total time taken: 46971 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9032-t10151-kvm-rocky8.zip Smoke tests completed. 129 look OK, 2 have errors, 0 did not run Only failed and skipped tests results shown below:
Test | Result | Time (s) | Test File |
---|---|---|---|
test_01_restore_vm | Error |
0.21 | test_restore_vm.py |
test_02_restore_vm_allocated_root | Error |
0.17 | test_restore_vm.py |
ContextSuite context=TestRestoreVM>:teardown | Error |
1.27 | test_restore_vm.py |
test_02_trigger_shutdown | Failure |
341.57 | test_safe_shutdown.py |
Failed tests are unrelated, https://github.com/apache/cloudstack/pull/8601#issuecomment-2091938578
@blueorangutan package
@sureshanaparti 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9577
@blueorangutan test
@vishesh92 a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests
[SF] Trillian test result (tid-10191) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 43205 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9032-t10191-kvm-centos7.zip Smoke tests completed. 124 look OK, 7 have errors, 0 did not run Only failed and skipped tests results shown below:
Test | Result | Time (s) | Test File |
---|---|---|---|
test_DeployVmAntiAffinityGroup_in_project | Error |
85.31 | test_affinity_groups_projects.py |
test_DeployVmAntiAffinityGroup | Error |
37.76 | test_affinity_groups.py |
test_03_deploy_and_scale_kubernetes_cluster | Failure |
33.13 | test_kubernetes_clusters.py |
test_08_upgrade_kubernetes_ha_cluster | Failure |
0.08 | test_kubernetes_clusters.py |
test_01_non_strict_host_anti_affinity | Failure |
119.79 | test_nonstrict_affinity_group.py |
test_02_non_strict_host_affinity | Error |
81.66 | test_nonstrict_affinity_group.py |
test_02_trigger_shutdown | Failure |
346.79 | test_safe_shutdown.py |
test_02_list_cpvm_vm | Failure |
0.04 | test_ssvm.py |
test_04_cpvm_internals | Failure |
0.04 | test_ssvm.py |
test_hostha_enable_ha_when_host_in_maintenance | Error |
304.95 | test_hostha_kvm.py |
@blueorangutan package
@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.
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9581
@blueorangutan test
@vishesh92 a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests
[SF] Trillian test result (tid-10198) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 56385 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9032-t10198-kvm-centos7.zip Smoke tests completed. 130 look OK, 1 have errors, 0 did not run Only failed and skipped tests results shown below:
Test | Result | Time (s) | Test File |
---|---|---|---|
test_02_trigger_shutdown | Failure |
341.65 | test_safe_shutdown.py |