Routed: get vm network statistics on Routed network#13105
Routed: get vm network statistics on Routed network#13105weizhouapache wants to merge 1 commit intoapache:4.22from
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.22 #13105 +/- ##
=========================================
Coverage 17.67% 17.68%
- Complexity 15791 15794 +3
=========================================
Files 5922 5922
Lines 533085 533087 +2
Branches 65205 65206 +1
=========================================
+ Hits 94243 94275 +32
+ Misses 428204 428172 -32
- Partials 10638 10640 +2
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:
|
There was a problem hiding this comment.
Pull request overview
This PR updates the management server’s periodic VM network statistics collection logic (StatsCollector) to include routed guest networks (in addition to shared/direct-attached networks), addressing issue #11299.
Changes:
- Extend VM network stats interval config descriptions to mention both Shared and Routed networks.
- Update the VM network stats collection filter to accept routed networks (via
RoutedIpv4Manager.isRoutedNetwork(...)) in addition to direct-attached VLAN networks. - Inject
NetworkDaoandRoutedIpv4ManagerintoStatsCollectorto support routed-network detection during stats collection.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| if (CollectionUtils.isEmpty(vlan) || (vlan.get(0).getVlanType() != VlanType.DirectAttached | ||
| && (networkVO == null || !routedIpv4Manager.isRoutedNetwork(networkVO)))) { |
| if (CollectionUtils.isEmpty(vlan) || (vlan.get(0).getVlanType() != VlanType.DirectAttached | ||
| && (networkVO == null || !routedIpv4Manager.isRoutedNetwork(networkVO)))) { |
|
@blueorangutan package |
|
@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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17717 |
Description
This PR fixes #11299
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?