OCPBUGS-54682: Fix - NetworkManager restart or crash renders br-ex unusable #5304
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 194 lines diff across 2 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.315
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5304"
general
weight: 0.35
emy
<!--
If this is a bug fix, make sure your description includes "Fixes: #xxxx", or
"Closes: #xxxx"
Please provide the following information:
-->
- What I did
Restarting Network Manager on a node will lead to the node losing connection if the nodes
br-exinterface is being managed by nmstate. This is happening because the ofport dispatcher script does not take into account that thebr-exbridge ID isbr-ex-brinstead ofbr-ex. This PR is adding a check to fall back to check for nmstate managedbr-exif no bridge ID can be found.- How to verify it
Deploy a nmstate managed br-ex cluster.
Restart NetworkManager using
systemctl restart NetworkManager.Node will lose connection if fix was unsuccessful.
Node will retain connection if fix was successful.
- Description for the changelog
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->
Fixed an issue where restarting or crashing NetworkManager on nodes with a
br-exinterface managed by nmstate would cause the node to lose network connectivity.Root Cause:
The ofport dispatcher script did not account for nmstate-managed
br-exbridges, which use the bridge IDbr-ex-brinstead ofbr-exThis caused the script to fail when NetworkManager was restarted.Solution:
Added a fallback check in the ofport dispatcher script to properly detect nmstate-managed
br-exinterfaces by checking for thebr-ex-brbridge ID when the standardbr-exbridge ID is not found.