Skip to content

Smoke tests: Xenserver - Fix consistent failure noticed on scale VM test - #10741

Merged
weizhouapache merged 2 commits into
4.20from
fix-scalevm-test
Apr 25, 2025
Merged

Smoke tests: Xenserver - Fix consistent failure noticed on scale VM test#10741
weizhouapache merged 2 commits into
4.20from
fix-scalevm-test

Conversation

@Pearl1594

Copy link
Copy Markdown
Contributor

Description

This PR fixes consistent failure noticed on the test_scale_vm.py test suite:
#10668 (comment)

Using the centos template as the Macchinina template registered with "Other Linux (64-bit)" does not have guest_os_details for min and max dynamic memory to be used during scaling by xenserver. Which results in failure of the test as it fails to meet the constraints of

0 <= memory-static-min(512MB) <= memory-dynamic-min(1024MB) <= memory-dynamic-max(1024MV) <= memory-static-max(512MB)

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • 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
  • test (unit or integration test code)

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?

@boring-cyborgboring-cyborgBot added component:integration-test Python Warning... Python code Ahead! labels Apr 16, 2025
@Pearl1594Pearl1594 added this to the 4.20.1 milestone Apr 16, 2025
@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@codecov

codecovBot commented Apr 16, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.09%. Comparing base (207a2c1) to head (ba10f80).
Report is 23 commits behind head on 4.20.

Additional details and impacted files
@@ Coverage Diff @@## 4.20 #10741 +/- ##
============================================
+ Coverage 16.02% 16.09% +0.07% - Complexity 13124 13229 +105 
============================================
Files 5652 5652 Lines 495921 498496 +2575 Branches 60053 61109 +1056 ============================================
+ Hits 79463 80239 +776 - Misses 407593 409307 +1714 - Partials 8865 8950 +85 
FlagCoverage Δ
uitests3.98% <ø> (-0.02%)⬇️
unittests16.94% <ø> (+0.07%)⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan package

@weizhouapache

Copy link
Copy Markdown
Member

good finding @Pearl1594

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@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.

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

I still think there is an underlying issue / behavioural change. Because this seems to have been working until 4.19 - this specific test fails from 4.20

@weizhouapache

Copy link
Copy Markdown
Member

I still think there is an underlying issue / behavioural change. Because this seems to have been working until 4.19 - this specific test fails from 4.20

ah ok, so some changes in 4.20 causes it ?

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13092

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland [SL] unsupported parameters provided. Supported mgmt server os are: ol8, ol9, debian12, rocky8, alma9, suse15, centos7, centos6, alma8, ubuntu18, ubuntu22, ubuntu20, ubuntu24. Supported hypervisors are: kvm-centos6, kvm-centos7, kvm-rocky8, kvm-ol8, kvm-ol9, kvm-alma8, kvm-alma9, kvm-ubuntu18, kvm-ubuntu20, kvm-ubuntu22, kvm-ubuntu24, kvm-debian12, kvm-suse15, vmware-55u3, vmware-60u2, vmware-65u2, vmware-67u3, vmware-70u1, vmware-70u2, vmware-70u3, vmware-80, vmware-80u1, vmware-80u2, vmware-80u3, xenserver-65sp1, xenserver-71, xenserver-74, xenserver-84, xcpng74, xcpng76, xcpng80, xcpng81, xcpng82, xcpng83

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test ol8 xenserver-74

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + xenserver-74) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-13039)

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test ol8 xenserver-84

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + xenserver-84) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-13044)

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test ol8 xcpng76

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a [SL] Trillian-Jenkins test job (ol8 mgmt + xcpng76) has been kicked to run smoke tests

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test ol8 xcpng82

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a [SL] Trillian-Jenkins test job (ol8 mgmt + xcpng82) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-13062)

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-13061)

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test ol8 xcpng82

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a [SL] Trillian-Jenkins test job (ol8 mgmt + xcpng82) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-13069)
Environment: xcpng82 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 76000 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10741-t13069-xcpng82.zip
Smoke tests completed. 136 look OK, 5 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_01_condensed_drs_algorithmFailure156.20test_cluster_drs.py
test_02_balanced_drs_algorithmFailure184.31test_cluster_drs.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setupError10.56test_network.py
test_01_non_strict_host_anti_affinityError230.49test_nonstrict_affinity_group.py
test_02_non_strict_host_affinityError115.52test_nonstrict_affinity_group.py
test_02_create_volumeError4.29test_resource_names.py
test_05_scale_vm_dont_allow_disk_offering_changeFailure273.20test_scale_vm.py

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

This test seems to work fine on Xen / xcp versions < 8 - Since we use centos template - which doesnt have guest tools installed, scale VM seems to fail.

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 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.

@sonarqubecloud

Copy link
Copy Markdown

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13129

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 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

Copy link
Copy Markdown

[SF] Trillian test result (tid-13079)
Environment: kvm-ubuntu22 (x2), Advanced Networking with Mgmt server u22
Total time taken: 60502 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10741-t13079-kvm-ubuntu22.zip
Smoke tests completed. 138 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_oobm_multiple_mgmt_server_ownershipFailure31.88test_outofbandmanagement.py
test_create_pvlan_networkError0.11test_pvlan.py
test_02_restore_vm_strict_tags_failureFailure55.74test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failureFailure59.07test_vm_strict_host_tags.py
test_06_deploy_vm_on_any_host_with_strict_tags_failureFailure3.93test_vm_strict_host_tags.py

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-13078)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 63958 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10741-t13078-kvm-ol8.zip
Smoke tests completed. 140 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_02_restore_vm_strict_tags_failureFailure61.81test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failureFailure61.19test_vm_strict_host_tags.py
test_06_deploy_vm_on_any_host_with_strict_tags_failureFailure4.00test_vm_strict_host_tags.py

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-13080)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 77974 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10741-t13080-vmware-70u3.zip
Smoke tests completed. 136 look OK, 5 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_01_events_resourceError342.72test_events_resource.py
test_01_events_resourceError342.73test_events_resource.py
test_04_deploy_vm_for_other_user_and_test_vm_operationsError123.57test_network_permissions.py
test_01_deployVMInSharedNetworkFailure3606.40test_network.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:teardownError3607.73test_network.py
test_02_restore_vm_with_disk_offeringError60.78test_restore_vm.py
test_03_restore_vm_with_disk_offering_custom_sizeError65.69test_restore_vm.py
test_02_restore_vm_strict_tags_failureFailure63.87test_vm_strict_host_tags.py
test_02_restore_vm_strict_tags_failureError63.87test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failureFailure66.06test_vm_strict_host_tags.py
test_06_deploy_vm_on_any_host_with_strict_tags_failureFailure5.85test_vm_strict_host_tags.py

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-13081)
Environment: xcpng82 (x2), Advanced Networking with Mgmt server ol9
Total time taken: 83440 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10741-t13081-xcpng82.zip
Smoke tests completed. 136 look OK, 5 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_01_condensed_drs_algorithmFailure170.47test_cluster_drs.py
test_02_balanced_drs_algorithmFailure161.90test_cluster_drs.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setupError10.62test_network.py
test_01_non_strict_host_anti_affinityError253.26test_nonstrict_affinity_group.py
test_02_non_strict_host_affinityError121.25test_nonstrict_affinity_group.py
test_02_create_volumeError3.25test_resource_names.py
test_02_restore_vm_strict_tags_failureFailure95.36test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failureFailure98.72test_vm_strict_host_tags.py
test_06_deploy_vm_on_any_host_with_strict_tags_failureFailure5.72test_vm_strict_host_tags.py

@Pearl1594Pearl1594 moved this to In Progress in ACS 4.20.1Apr 23, 2025

@harikrishna-patnalaharikrishna-patnala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM

@weizhouapacheweizhouapache left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm

smoke tests look good

@weizhouapache
weizhouapache merged commit 1adfaf9 into 4.20Apr 25, 2025
@github-project-automationgithub-project-automationBot moved this from In Progress to Done in ACS 4.20.1Apr 25, 2025
@Pearl1594
Pearl1594 deleted the fix-scalevm-test branch April 25, 2025 08:52
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
…est (apache#10741)
* Smoke tests: Xenserver - Fix consistent failure noticed on scale VM test
* update test
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:integration-testPythonWarning... Python code Ahead!

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants

@Pearl1594@weizhouapache@DaanHoogland@blueorangutan@harikrishna-patnala