net, evpn: fix EVPN test infrastructure for OVN-K VTEP BGP advertisement #6208
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.66) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 368 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.354
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #6208"
general
weight: 0.35
qinqon
##### What this PR does / why we need it:
Fix the external FRR pod nexthop advertisement to be compatible with
the VTEP host IP BGP advertisement introduced in recent OVN-K versions,
and strengthen the overall EVPN test setup.
Main fix — frr-external nexthop advertisement:
Recent OVN-K versions introduced per-node VTEP host IP advertisement
via BGP through the ovnk-generated FRRConfiguration. With eBGP
next-hop-self, the external FRR pod was re-advertising these /32 host
routes to peer nodes with itself as the next-hop, installing host routes
in the main routing table that redirected all inter-node traffic
(including etcd raft) through the FRR pod, which dropped it.
Fixed by using
attribute-unchanged next-hopso the original node IPis preserved, making the host routes harmless.
FRR reference:
https://docs.frrouting.org/en/latest/bgp.html#clicmd-neighbor-PEER-attribute-unchanged-as-path-next-hop-med
EVPN setup improvements:
Replace parsing of k8s.ovn.org/host-cidrs with k8s.ovn.org/node-primary-ifaddr.
OVN-K sets this annotation to the node's primary interface address per address
family, giving exactly one unambiguous entry per family.
Patching
routingViaHost: Truetriggers an OVN-K DaemonSet rollout.Following the same pattern used in similar network operator patches
across the repo (e.g.
cluster_network_resource_ra_enabled,multi_network_policy_enabled), addwait_for_consistent_resource_conditionson the network ClusterOperator before yielding and after teardown.
This is a safety measure to ensure the cluster is fully stable before and after
applying the
routingViaHost: Truepatch, consistent with how other fixtureshandle network operator changes.
OVN-K now generates
allowas-in originon nodes for both IPv4 unicastand L2VPN EVPN address families, so cluster nodes accept routes where
their own ASN is the origin AS without needing the external FRR pod to
strip it first.
References:
https://github.com/ovn-kubernetes/ovn-kubernetes/pull/6307
https://github.com/ovn-kubernetes/ovn-kubernetes/pull/6481
##### Which issue(s) this PR fixes:
##### Special notes for reviewer:
##### jira-ticket:
NONE
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Bug Fixes
Tests
<!-- end of auto-generated comment: release notes by coderabbit.ai -->