fix(fault-quarantine): clear stale GPU_UUID entries when a GPU is replaced #2016
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 424 lines diff across 5 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.362
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2016"
general
weight: 0.35
KaivalyaMDabhadkar
Summary
When a GPU is physically replaced, fault-quarantine never clears its stored faults, so the node stays quarantined and is never auto-uncordoned.
The replacement GPU keeps its index and PCI address but gets a new
GPU_UUID. fault-quarantine stores one key per impacted entity and error code and matches healthy events on the exact entity value. The healthy event for the new GPU therefore clears theGPUandPCIkeys, but not theGPU_UUIDkeys of the old GPU. Uncordon only runs once the map is empty, so the node logsNode remains quarantined with failing checksindefinitely. On a node with 4 replaced GPUs, 8 keys (NVLINK_DOWNandFIELD_VIOLATIONfor the 4 old UUIDs) remained afterGpuNvlinkWatchreported healthy.This is the fault-quarantine counterpart of #1585, which #1587 fixed for node conditions only. A healthy GPU event now also clears the old
GPU_UUIDkeys of a stored fault when it covers everyGPUandPCIentity of that fault (and the fault names at least one). Checking the stored fault's slot keeps the old UUID of a GPU that has not recovered yet. UUID-only healthy events, non-GPU events, unhealthy events and error-code scoping keep their existing behavior.This is a possible fix, not a settled one. It follows the approach of #1587, but a maintainer who knows fault-quarantine should judge if there is a better way (for example around how
GPU_UUIDkeys are tied to a GPU slot). Happy to rework or close this PR.Type of Change
Component(s) Affected
Testing
Added tests cover the incident shape (4 GPUs x 2 error codes reported as separate per-GPU events, healthy events with new UUIDs, map ends empty), replacement recovery, error-code and slot mismatches, UUID-only healthy events, unhealthy events on a replaced GPU, and a stored event naming several GPUs (the node stays quarantined until the last GPU recovers), and a healthy event missing the stored PCI address.
TestE2E_ReplacedGPUsUncordonNoderuns the replacement scenario through the reconciler on envtest. The incident-shape, replacement and E2E tests fail without the change.golangci-lint(v2.13.1, repo config),go vetand the fullfault-quarantinetest suite with-racepass.Known limit: recovery while fault-quarantine is running. The cold-start replay path filters by exact entity value and is unchanged.
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Bug Fixes
Healthy GPU events now clear matching fault records when a replacement GPU has the same slot and PCI address but a new UUID.
Recovery remains specific to the matching GPU and error code; incomplete identity information or unhealthy events do not clear the old fault.
Nodes can be unquarantined once all affected GPUs have recovered, including when recovery events cover multiple GPUs.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->