VPC: check only ssh services if VPC VR does not have any guest network#11190
VPC: check only ssh services if VPC VR does not have any guest network#11190weizhouapache wants to merge 2 commits into
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 4.20 #11190 +/- ##
=========================================
Coverage 15.18% 15.18%
- Complexity 11370 11375 +5
=========================================
Files 5415 5415
Lines 476073 476079 +6
Branches 58125 58126 +1
=========================================
+ Hits 72290 72307 +17
+ Misses 395695 395681 -14
- Partials 8088 8091 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@blueorangutan package |
|
@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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14167 |
There was a problem hiding this comment.
Pull Request Overview
This PR fixes issue #10088 by modifying the VPC router monitoring behavior to only check SSH services when the VPC Virtual Router has no guest networks configured.
- Adds an
included_servicesparameter to control which services are monitored in the monitoring script - Implements logic to set SSH as the only included service for VPC routers without guest networks
- Optimizes health check data retrieval by moving it earlier in the execution flow
Reviewed Changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| systemvm/debian/root/monitorServices.py | Updates the monitoring script to support filtering services and optimizes health check data retrieval |
| server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java | Adds logic to set SSH as the only included service for VPC routers without guest networks |
| core/src/main/java/com/cloud/agent/resource/virtualnetwork/model/MonitorService.java | Adds includedServices field to the MonitorService model |
| core/src/main/java/com/cloud/agent/resource/virtualnetwork/facade/SetMonitorServiceConfigItem.java | Updates configuration to handle the new included services parameter |
| core/src/main/java/com/cloud/agent/api/routing/SetMonitorServiceCommand.java | Adds constant for the included services configuration key |
|
[SF] Trillian test result (tid-14105)
|
|
moved to draft |
|
since #10710 is targeted to main/4.22, open this PR for 4.19/4.20 |
|
@blueorangutan package |
|
@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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 14833 |
|
moving to 4.20.3 due to inactivity |
|
@blueorangutan test keepEnv |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-14355)
|
|
verified in a lab env : no errors on a new VPC |
|
Thanks @DaanHoogland Can we merge ? does it have conflicts with your PR #10710 ?
|
Yes it will have and we’ll have to deal after merging (either) |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
closing it in favor of #10710 |
Description
This PR fixes #10088
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?