cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

use cleanup mechs on TestNetworkMigration

Open DaanHoogland opened this issue 2 months ago • 9 comments

Description

This PR… Fixes: #9026 , but shows that there is a genuine issue in the vlan allocation management in the system.

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)
  • [x] 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
  • [x] Minor

Bug Severity

  • [ ] BLOCKER
  • [ ] Critical
  • [ ] Major
  • [ ] Minor
  • [x] Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

DaanHoogland avatar Oct 30 '25 15:10 DaanHoogland

Codecov Report

:x: Patch coverage is 10.00000% with 9 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 16.17%. Comparing base (e4414d1) to head (f7fdaf8).

Files with missing lines Patch % Lines
...n/java/com/cloud/dc/dao/DataCenterVnetDaoImpl.java 0.00% 9 Missing :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #11945      +/-   ##
============================================
- Coverage     16.18%   16.17%   -0.01%     
+ Complexity    13300    13298       -2     
============================================
  Files          5657     5657              
  Lines        498478   498488      +10     
  Branches      60501    60501              
============================================
- Hits          80668    80649      -19     
- Misses       408827   408862      +35     
+ Partials       8983     8977       -6     
Flag Coverage Δ
uitests 4.00% <ø> (ø)
unittests 17.03% <10.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.

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

codecov[bot] avatar Oct 30 '25 15:10 codecov[bot]

unfortunately test-a-TestNetworkMigration-test_01_native_to_native_network_migration-###### is still created and destroyed but a vlan is still allocated to it.

DaanHoogland avatar Nov 02 '25 17:11 DaanHoogland

unfortunately test-a-TestNetworkMigration-test_01_native_to_native_network_migration-###### is still created and destroyed but a vlan is still allocated to it.

The problem seems to be not in the test but in vlan allocation leakage in the system. This can be merged but the left over from the test will remain, the scenario is valid.

DaanHoogland avatar Nov 03 '25 08:11 DaanHoogland

As this is purely (test)cleanup, I don’t think this needs further testing , agree @vishesh92 @sudo87 @Pearl1594 ?

DaanHoogland avatar Nov 03 '25 14:11 DaanHoogland

As this is purely (test)cleanup, I don’t think this needs further testing , agree @vishesh92 @sudo87 @Pearl1594 ?

Yes. Just need to wait for test results to ensure that teardown gets executed successfully.

vishesh92 avatar Nov 03 '25 14:11 vishesh92

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

I don’t think there is much relevance in this, rerunning.

DaanHoogland avatar Nov 05 '25 08:11 DaanHoogland

@blueorangutan package

DaanHoogland avatar Nov 13 '25 15:11 DaanHoogland

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

blueorangutan avatar Nov 13 '25 15:11 blueorangutan

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

blueorangutan avatar Nov 13 '25 17:11 blueorangutan