Repository navigation
test: fix smoke test failures on xen/vmware - #13628
Conversation
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
There was a problem hiding this comment.
Pull request overview
This PR targets integration smoke test stability across hypervisors (notably XenServer/XCP-ng and VMware) by skipping KVM-specific checks/tests when not running on KVM, and by adjusting a few timing/host prerequisite assumptions that can cause intermittent failures.
Changes:
- Skip KVM-only paths in smoke tests when the detected hypervisor is not KVM.
- Add additional host-tool prerequisite checks for a VPC source NAT IP update test.
- Add delays around affinity-group migration steps and make the events-resource test more tolerant around volume attach/detach operations.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| test/integration/smoke/test_nonstrict_affinity_group.py | Adds waits before migration steps in non-strict affinity group tests. |
| test/integration/smoke/test_network_extension_namespace.py | Skips KVM prerequisite checks on non-KVM hypervisors; expands required host tools for one test. |
| test/integration/smoke/test_kms_lifecycle.py | Skips a VM root-disk encryption test on non-KVM hypervisors. |
| test/integration/smoke/test_events_resource.py | Wraps volume attach/detach operations to avoid hard failures in some environments. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13628 +/- ##
=========================================
Coverage 19.90% 19.90%
- Complexity 20171 20177 +6
=========================================
Files 6372 6372
Lines 577180 577180
Branches 70693 70693
=========================================
+ Hits 114869 114910 +41
+ Misses 449755 449702 -53
- Partials 12556 12568 +12
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:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18593 |
|
@blueorangutan test ubuntu26 xcpng82 keepEnv |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu26 mgmt + xcpng82) has been kicked to run smoke tests |
|
@blueorangutan test ubuntu26 vmware-80u3e keepEnv |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu26 mgmt + vmware-80u3e) has been kicked to run smoke tests |
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18602 |
|
@blueorangutan test ubuntu26 xcpng82 |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu26 mgmt + xcpng82) has been kicked to run smoke tests |
|
@blueorangutan test ubuntu26 vmware-80u3e |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu26 mgmt + vmware-80u3e) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-7) |
|
@blueorangutan test ubuntu26 vmware-80u3 |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu26 mgmt + vmware-80u3) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-9) |
|
[SF] Trillian Build Failed (tid-55) |
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19357 |
|
@blueorangutan test ubuntu26 vmware-70u3 |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu26 mgmt + vmware-70u3) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-56)
|
|
[SF] Trillian test result (tid-57)
|
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19673 |
|
@blueorangutan test ol8 vmware-70u3 |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + vmware-70u3) has been kicked to run smoke tests |
|
@blueorangutan test ol8 xcpng82 |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + xcpng82) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-17210)
|
|
Thanks @weizhouapache, looks good to me |
|
thanks @nvazquez @DaanHoogland |
|
[SF] Trillian test result (tid-17212)
|
* test: fix smoke test failures on xen/vmware * test: sleep 10 seconds before attaching volume in test_events_resource.py * test: add more time.sleep(10) * test: add more time.sleep(10) in test_vm_strict_host_tags.py * test: fix test_usage.py * test: move time.sleep(10) in test_host_maintenance.py * VMware: fix import DC * test: retry domain deletion in tearDown of test_deploy_vms_in_parallel.py * test: fix tests failures caused by others in drs and host maintenance
Backport of the applicable changes of apache#13628: - add sleeps and retries in tests that are sensitive to timing on xen and vmware - retry the domain deletion in tearDown of test_deploy_vms_in_parallel - avoid failures caused by other tests in test_cluster_drs and test_host_maintenance - fix test_usage - VMware: fix import DC (cherry picked from commit 1b4f19e)
Backport of the applicable test changes of #13628: - add sleeps and retries in tests that are sensitive to timing on xen and vmware - retry the domain deletion in tearDown of test_deploy_vms_in_parallel - avoid failures caused by other tests in test_cluster_drs and test_host_maintenance - fix test_usage (cherry picked from commit 1b4f19e)
Description
This PR fixes smoke test failures on VMware and XenServer/XCP-ng. Changes:
Test fixes
test_cluster_drs.py: only migrate system VMs and routers that areRunning, and skip a migration that fails because the VM left Running state, instead of failing class setup.test_deploy_vms_in_parallel.py: delete the account first, then retry the domain deletion while the account cleanup task finishes. Give up after 15 retries and leave the domain for later cleanup.test_host_maintenance.py: skip the test when a host enters ErrorInPrepareForMaintenance or ErrorInMaintenance, which usually means CPUs are incompatible. Recover hosts in maintenance-related error states with cancel-maintenance before re-enabling them.test_kms_lifecycle.pyandtest_network_extension_namespace.py: skip on non-KVM hypervisors, and check forip,arping,dnsmasqandhaproxyon KVM hosts.test_usage.py: fix the public IP creation arguments.test_events_resource.py,test_nonstrict_affinity_group.py,test_usage.py,test_vm_life_cycle.py,test_vm_strict_host_tags.py: add short sleeps (10 seconds) before volume attach, migration and similar steps, so the VM is ready.VMware
VmwareClient.java: callsc.init(...)before reading the server session context intrustAllHttpsCertificates.Types of changes