← Back to Pull requests

fix(fault-quarantine): clear stale GPU_UUID entries when a GPU is replaced #2016

Closed
unknown closed this pull request without merging on Oct 13, 2026 08:32 UTC
View on GitHub
unknown unknown commented on Oct 12, 2026 15:32 UTC
Author

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 the GPU and PCI keys, but not the GPU_UUID keys of the old GPU. Uncordon only runs once the map is empty, so the node logs Node remains quarantined with failing checks indefinitely. On a node with 4 replaced GPUs, 8 keys (NVLINK_DOWN and FIELD_VIOLATION for the 4 old UUIDs) remained after GpuNvlinkWatch reported 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_UUID keys of a stored fault when it covers every GPU and PCI entity 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_UUID keys are tied to a GPU slot). Happy to rework or close this PR.

Type of Change


  • 🐛 Bug fix

  • ✨ New feature

  • 💥 Breaking change

  • 📚 Documentation

  • 🔧 Refactoring

  • 🔨 Build/CI
  • Component(s) Affected


  • Core Services

  • Documentation/CI

  • Fault Management

  • Health Monitors

  • Janitor

  • Other: ____________
  • Testing


  • Tests pass locally

  • Manual testing completed

  • No breaking changes (or documented)
  • 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_ReplacedGPUsUncordonNode runs 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 vet and the full fault-quarantine test suite with -race pass.

    Known limit: recovery while fault-quarantine is running. The cold-start replay path filters by exact entity value and is unchanged.

    Checklist


  • Self-review completed

  • Documentation updated (if needed)

  • Ready for review
  • <!-- 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 -->

    Diff: 424 lines (+318 / -106) across 5 files Reviewer: KaivalyaMDabhadkar Review duration: 1019m
    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
    0.45
    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.362
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2016"
    general weight: 0.35
    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: 45.1% (MEDIUM) · Higher = larger blast radius
    45.1%
    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: 17.8% · Safe to merge
    17.8%