← Back to Pull requests

fix(platform-connectors): clear GPU faults by UUID in case of an gpu index change after reboot. #2377

Closed
unknown closed this pull request without merging on Nov 13, 2026 10:42 UTC
View on GitHub
unknown unknown commented on Nov 12, 2026 10:23 UTC
Author

Summary

Refs #2362.

After a reboot, a GPU can come back with a new index or a new PCI address. Its UUID stays the same. When gpu-health-monitor then reports that GPU healthy, platform-connectors does not clear the old fault from the node condition. The condition stays True with a stale message until an event with no entities clears it.

With this PR, a healthy GPU event also clears a node-condition entry that names the complete UUID of the same GPU. The existing rule (GPU index and PCI address) stays.

This PR changes only the node condition in platform-connectors. It does not change fault-quarantine. The fault-quarantine part of the issue needs a separate change (see Limitations).

Description

Root cause

  • For a healthy GPU event that has a GPU index or a PCI address, recoveryEntities drops the GPU UUID. An entry then clears only when it names every remaining entity.

  • An entry with GPU:2 PCI:0000:0b:00.0 GPU_UUID:GPU-abc... does not match a healthy event with GPU:1 PCI:0000:0b:00.0 GPU_UUID:GPU-abc.... No other rule clears the entry, so it stays.
  • When it happens in production

  • NVML does not guarantee the GPU enumeration order across reboots. For example, when a GPU is missing after a reboot, each GPU with a higher PCI address moves down one index.

  • gpu-health-monitor sends a healthy event for each GPU on its first poll after a restart. Each GPU whose index changed keeps its old entry in the condition.
  • Fix

  • process_node_events.go: new function removeSameGPUUUIDMessages. For a healthy event of component class GPU, aggregateEventMessages calls it after removeLegacyGPUMessages. It removes an entry only when all of these are true:

  • - The entry has the exact token GPU_UUID:<uuid> of the event, and the UUID is not empty.
    - The identity tokens of the entry name every other entity of the event except the GPU index and the PCI address, for example NVLINK:8. The diagnostic text is not searched, because it can name another entity.
    - The identity tokens of the entry carry an error code of the event, when the event has error codes.
  • The UUID match is exact. Compaction can shorten a UUID to 8 characters plus ..., and two GPUs can share that prefix. A shortened entry clears only through its GPU index and PCI address, as before.

  • A replaced GPU (same index and PCI address, new UUID) still clears its old entry through the existing rule.

  • docs/configuration/platform-connectors.md: one paragraph that says which entries a healthy GPU event clears, and that a shortened UUID does not match.

  • Tests: TestAggregateEventMessages_SameGPUUUID and the envtest TestK8sConnector_WithEnvtest_GPUIndexChangeClearsCondition.

  • No change to protobufs, Helm values, node labels, metrics or the condition message format.
  • Backward compatibility

  • The condition message format does not change. This build clears the entries that v1.20.0 wrote (S1, S9). v1.20.0 can read the entries that this build writes.

  • The change only removes more entries when a healthy event arrives. It never adds an entry and never sets a condition to True.

  • fault-quarantine, node-drainer and fault-remediation do not use node conditions to make decisions. This change cannot cordon, drain or reboot a node.
  • Limitations

  • When the entries do not fit in maxNodeConditionMessageLength (default 1024), compaction shortens the UUIDs. A shortened entry does not clear after an index change. With the default values, this starts at 7 entries in one condition for most DCGM error codes. v1.20.0 has the same behaviour, so this PR does not make it worse. A larger maxNodeConditionMessageLength keeps the full UUIDs for more entries.

  • fault-quarantine keeps one key for each entity of a fault. After an index change, the key of the old GPU index clears only when a GPU reports healthy at that index. If the old index is now vacant, or if the PCI address changed at the same index, the node stays cordoned. This PR does not change that.
  • Testing

    Tested on a GKE dev cluster with H100 GPU nodes and NVSentinel v1.20.0. The platform-connectors DaemonSet ran the build of this branch. A test pod sent synthetic GPU health events through the platform-connectors socket on one GPU node. The events used the real GPU index, PCI address and UUID values of that node. They used a test check name, GpuIndexShiftTest, that no fault-quarantine rule matches, so they changed only a test node condition and no node was cordoned. Both connectors (store and Kubernetes) processed every event, with no warning or error in the logs. After the tests, the DaemonSet image was set back to v1.20.0 and the test objects were deleted. The rebase onto main after the tests changed no platform-connectors file.

    A review change then made entities such as NVLINK match only the identity tokens of an entry. S1, S7 and S10 ran again on that build. The other cases send only GPU index, PCI address and UUID entities, which that change does not affect. A later review change made error codes also match only the identity tokens of an entry. The unit tests cover it. It can only keep more entries, so it was not run again on the cluster.

    | # | Test case | Scenario | Expected | Result |
    |---|---|---|---|---|
    | S1 | Index change | Send a fault for GPU 2. Send a healthy event for the same GPU (same PCI address and UUID) as GPU index 1. | Condition clears | PASS. The condition became False. |
    | S2 | Two GPUs change index | Send faults for GPU 2 and GPU 5. Send a healthy event for GPU 2 as index 1, then for GPU 5 as index 4. | GPU 5 entry stays after the first event. Condition clears after the second. | PASS. Only the GPU 5 entry stayed, then the condition became False. |
    | S3 | PCI address change | Send a fault for GPU 2. Send a healthy event with the same index and UUID and a new PCI address. | Condition clears | PASS. The condition became False. |
    | S4 | Replaced GPU (existing behaviour) | Send a fault for GPU 2. Send a healthy event with the same index and PCI address and a new UUID. | Condition clears, as in v1.20.0 | PASS. The condition became False. |
    | S5 | A different GPU recovers | Send a fault for GPU 2. Send a healthy event for GPU 3 with its own index, PCI address and UUID. | Fault stays | PASS. The condition stayed True. |
    | S6 | Another GPU takes the old index | Send a fault for GPU 2. Send a healthy event for index 2 with the PCI address and UUID of GPU 1. Then send a healthy event for GPU 2 as index 1. | Fault stays after the first event. Condition clears after the second. | PASS. The condition stayed True, then became False. |
    | S7 | NVLink entries | Send faults for GPU 2 on NVLink 8 and NVLink 9. Send a healthy event for GPU 2 as index 1 with NVLink 8. | Only the NVLink 9 entry stays | PASS. Only the NVLink 9 entry stayed. |
    | S8 | Error code match | Send a fault for GPU 2 with error code 79. Send a healthy event for GPU 2 as index 1 with error code 48, then with error code 79. | Fault stays after code 48. Condition clears after code 79. | PASS. The condition stayed True, then became False. |
    | S9 | All 8 GPUs faulty, compacted message | Send a fault for each of the 8 GPUs. The message reached 1000 characters. Compaction cut the diagnostic text to ... and kept the full UUIDs. Send a healthy event for GPU 2 as index 1. | Only the GPU 2 entry clears | PASS. The GPU 2 entry cleared. The other 7 entries stayed, including the entry of GPU 1, which uses index 1. |
    | S10 | Entity named only in the message text | Send a fault for GPU 2 on NVLink 9 whose message text names NVLink 8. Send a healthy event for GPU 2 as index 1 with NVLink 8, then with NVLink 9. | Fault stays after the NVLink 8 event. Condition clears after the NVLink 9 event. | PASS. The condition stayed True, then became False. |

    Type of Change


  • 🐛 Bug fix

  • ✨ New feature

  • 💥 Breaking change

  • 📚 Documentation

  • 🔧 Refactoring

  • 🔨 Build/CI
  • Component(s) Affected


  • Health Monitor

  • Core Service

  • Fault Management

  • Janitor

  • Deployment/Config

  • API/Interface

  • Preflight

  • Plugins

  • Documentation/CI

  • New Component

  • Multiple Components

  • Other
  • Testing


  • Tests pass locally

  • Manual testing completed

  • No breaking changes (or documented)
  • Checklist


  • Self-review completed

  • Documentation updated (if needed)

  • Ready for review
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Bug Fixes
    Healthy GPU events can clear matching fault messages using the complete GPU UUID, even when the GPU index or PCI address has changed.
    Faults for other GPUs and messages with mismatched error codes remain intact. Shortened UUIDs still require matching GPU index and PCI address.
    Documentation
    * Clarified how healthy GPU events match and clear fault entries, including the matching requirements for shortened UUIDs.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: KaivalyaMDabhadkar Review duration: 1458m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2377"
    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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 20.5% · Safe to merge
    20.5%