← Back to Pull requests

OCPBUGS-54682: Fix - NetworkManager restart or crash renders br-ex unusable #5304

Closed
unknown closed this pull request without merging on Oct 15, 2025 17:24 UTC
View on GitHub
unknown unknown commented on Sep 24, 2025 13:19 UTC
Author

<!--
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-ex interface is being managed by nmstate. This is happening because the ofport dispatcher script does not take into account that the br-ex bridge ID is br-ex-br instead of br-ex. This PR is adding a check to fall back to check for nmstate managed br-ex if 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-ex interface managed by nmstate would cause the node to lose network connectivity.

Root Cause:
The ofport dispatcher script did not account for nmstate-managed br-ex bridges, which use the bridge ID br-ex-br instead of br-ex This 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-ex interfaces by checking for the br-ex-br bridge ID when the standard br-ex bridge ID is not found.

Diff: 194 lines (+145 / -49) across 2 files Reviewer: emy Review duration: 30485m
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
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 36% (MEDIUM) · Higher = larger blast radius
36%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.2% · Safe to merge
14.2%