cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Remove duplicate network state checks before shutdown network

Open sureshanaparti opened this issue 1 year ago • 17 comments

Description

This PR removes duplicate network state checks before shutdown network (seems these checks again are not required, maybe added while resolving conflicts),and adds unit tests for the network state checks in shutdown network.

Keeping this checks after acquiring lock, removed others. https://github.com/apache/cloudstack/blob/3f9dd4dc07ff40a4e0216014715e4fe37fc46d28/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java#L3042-L3049

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

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?

sureshanaparti avatar Jan 08 '24 12:01 sureshanaparti

@blueorangutan package

sureshanaparti avatar Jan 08 '24 12:01 sureshanaparti

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

blueorangutan avatar Jan 08 '24 12:01 blueorangutan

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 14.97%. Comparing base (b2ef53b) to head (055f2bc).

Additional details and impacted files
@@            Coverage Diff             @@
##               4.19    #8462    +/-   ##
==========================================
  Coverage     14.96%   14.97%            
- Complexity    11013    11017     +4     
==========================================
  Files          5377     5377            
  Lines        469567   469561     -6     
  Branches      60162    59785   -377     
==========================================
+ Hits          70285    70300    +15     
+ Misses       391498   391473    -25     
- Partials       7784     7788     +4     
Flag Coverage Δ
uitests 4.29% <ø> (ø)
unittests 15.68% <100.00%> (+<0.01%) :arrow_up:

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.

codecov[bot] avatar Jan 08 '24 12:01 codecov[bot]

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

blueorangutan avatar Jan 08 '24 13:01 blueorangutan

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

github-actions[bot] avatar Jan 10 '24 08:01 github-actions[bot]

@blueorangutan package

DaanHoogland avatar Jan 11 '24 09:01 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 Jan 11 '24 09:01 blueorangutan

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

blueorangutan avatar Jan 11 '24 10:01 blueorangutan

@blueorangutan test

sureshanaparti avatar Jan 11 '24 10:01 sureshanaparti

@sureshanaparti a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

blueorangutan avatar Jan 11 '24 10:01 blueorangutan

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

github-actions[bot] avatar Jan 12 '24 08:01 github-actions[bot]

@blueorangutan package

sureshanaparti avatar Jan 12 '24 13:01 sureshanaparti

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

blueorangutan avatar Jan 12 '24 13:01 blueorangutan

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

blueorangutan avatar Jan 12 '24 14:01 blueorangutan

@blueorangutan test

sureshanaparti avatar Jan 16 '24 14:01 sureshanaparti

@sureshanaparti a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

blueorangutan avatar Jan 16 '24 14:01 blueorangutan

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

Test Result Time (s) Test File
test_create_pvlan_network Error 0.05 test_pvlan.py

blueorangutan avatar Jan 17 '24 04:01 blueorangutan

@sureshanaparti , you want to revive this?

DaanHoogland avatar May 18 '24 19:05 DaanHoogland

@blueorangutan package

sureshanaparti avatar Jun 12 '24 15:06 sureshanaparti

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

blueorangutan avatar Jun 12 '24 15:06 blueorangutan

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

blueorangutan avatar Jun 12 '24 16:06 blueorangutan

@blueorangutan test

rohityadavcloud avatar Jun 21 '24 10:06 rohityadavcloud

@rohityadavcloud a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

blueorangutan avatar Jun 21 '24 10:06 blueorangutan

sorry, was maybe a bit rash here, as smoke tests are still running. GHA were ok though, and prior run passed.

DaanHoogland avatar Jun 21 '24 12:06 DaanHoogland

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

Test Result Time (s) Test File

blueorangutan avatar Jun 21 '24 22:06 blueorangutan