Skip to content

Conversation

@weizhouapache
Copy link
Member

@weizhouapache weizhouapache commented Sep 18, 2024

Description

This PR

  • adds a global setting to enable/disable the Static/Dynamic routing feature
  • add some unit tests
  • fixes the issue that frr.conf has no settings when VR is restarted.

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?

@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache 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
Copy link

codecov bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 63.10680% with 38 lines in your changes missing coverage. Please review.

Project coverage is 15.95%. Comparing base (f7b7339) to head (53b61cd).
Report is 21 commits behind head on 4.20.

Files with missing lines Patch % Lines
...ain/java/com/cloud/network/vpc/VpcManagerImpl.java 14.28% 9 Missing and 3 partials ⚠️
.../cloud/configuration/ConfigurationManagerImpl.java 0.00% 8 Missing ⚠️
...g/apache/cloudstack/api/response/ZoneResponse.java 0.00% 7 Missing ⚠️
...ache/cloudstack/network/RoutedIpv4ManagerImpl.java 86.11% 4 Missing and 1 partial ⚠️
...er/src/main/java/com/cloud/bgp/BGPServiceImpl.java 88.88% 2 Missing and 1 partial ⚠️
...ain/java/com/cloud/network/NetworkServiceImpl.java 71.42% 1 Missing and 1 partial ⚠️
...com/cloud/api/query/dao/DataCenterJoinDaoImpl.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20    #9697      +/-   ##
============================================
+ Coverage     15.80%   15.95%   +0.15%     
- Complexity    12586    12735     +149     
============================================
  Files          5627     5627              
  Lines        492294   492503     +209     
  Branches      62198    59738    -2460     
============================================
+ Hits          77824    78596     +772     
+ Misses       405946   405234     -712     
- Partials       8524     8673     +149     
Flag Coverage Δ
uitests 4.03% <ø> (-0.02%) ⬇️
unittests 16.79% <63.10%> (+0.16%) ⬆️

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.

@weizhouapache weizhouapache force-pushed the 4.20-routed-mode-improvement branch from 51c97e4 to decc016 Compare September 18, 2024 08:10
@blueorangutan
Copy link

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

@weizhouapache weizhouapache force-pushed the 4.20-routed-mode-improvement branch from decc016 to 889eca5 Compare September 18, 2024 09:40
@weizhouapache weizhouapache force-pushed the 4.20-routed-mode-improvement branch from 889eca5 to 3b56f10 Compare September 18, 2024 11:23
@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-11515)

@weizhouapache weizhouapache marked this pull request as ready for review September 19, 2024 06:34
@blueorangutan
Copy link

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

Test Result Time (s) Test File

Copy link
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

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

clgtm

@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member Author

@blueorangutan package

@weizhouapache weizhouapache reopened this Nov 27, 2024
@weizhouapache weizhouapache changed the base branch from main to 4.20 November 27, 2024 19:54
@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache 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
Copy link

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

@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache 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
Copy link

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 11624

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 11631

@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member Author

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-11810)

@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache 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
Copy link

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 11652

@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache 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
Copy link

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

@weizhouapache
Copy link
Member Author

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

Test Result Time (s) Test File

@weizhouapache weizhouapache merged commit 22a6604 into apache:4.20 Nov 30, 2024
31 of 49 checks passed
@DaanHoogland DaanHoogland deleted the 4.20-routed-mode-improvement branch November 30, 2024 21:12
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 12, 2024
* Routed: add global setting to enable/disable routed mode

* Routed: add unit tests

* Routed: add unit tests RoutedIpv4ManagerImplTest

* PR9697: fix end of files lint error

* PR9697: fix unit tests error with JDK17

* Routed: do not show ROUTED mode when create network/vpc offering if routed is disabled

* Routed: check if routed network is enabled when create ipv4 subnet/bgp peer/ASN range/network/vpc

* Routed: UI bug fix and improvements

* Routed: apply available BGP peers when VR is restarted
@Pearl1594 Pearl1594 moved this to Done in ACS 4.20.1 Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants