fix(nic-health-monitor): read default route from host network namespace #2396
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 327 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.347
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2396"
general
weight: 0.35
KaivalyaMDabhadkar
Summary
Fixes #2395.
The NIC monitor reads
/nvsentinel/proc/net/routethrough the host/procmount. Becausenetresolves throughself/net, this returns the monitor pod's routing table. On the reported HGX H200 node, the pod's default interface (eth0) has no corresponding host InfiniBand device, so default-route exclusion is skipped and the host's default-route NIC (mlx5_5) is classified as compute.Read
/nvsentinel/proc/1/net/routeinstead. Host PID 1 selects the host network namespace through the existing mount, allowing the classifier to resolve and exclude the host's default-route NIC as management. Update the comment and design documentation to explain the path.Type of Change
Component(s) Affected
Testing
make lint-testinhealth-monitors/nic-health-monitorcompleted on macOS and Linux: vet, lint, and 368 race-enabled tests.enp157s0np0tomlx5_5, classifiedmlx5_5as management, and keptibp0–ibp7as compute.mlx5_5was classified as management and excluded from emitted NIC health events.Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Bug Fixes
Default-route detection now uses routing information from the host network namespace, helping identify the interface associated with the host’s default route more accurately. The documented behavior has been updated to match, reducing ambiguity when interpreting which network interface is used for outbound traffic.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->