fix(platform-connectors): clear GPU faults by UUID in case of an gpu index change after reboot. #2377
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
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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2377"
general
weight: 0.35
KaivalyaMDabhadkar
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
Truewith 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
recoveryEntitiesdrops the GPU UUID. An entry then clears only when it names every remaining entity.GPU:2 PCI:0000:0b:00.0 GPU_UUID:GPU-abc...does not match a healthy event withGPU:1 PCI:0000:0b:00.0 GPU_UUID:GPU-abc.... No other rule clears the entry, so it stays.When it happens in production
Fix
process_node_events.go: new functionremoveSameGPUUUIDMessages. For a healthy event of component classGPU,aggregateEventMessagescalls it afterremoveLegacyGPUMessages. 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.
..., and two GPUs can share that prefix. A shortened entry clears only through its GPU index and PCI address, as before.docs/configuration/platform-connectors.md: one paragraph that says which entries a healthy GPU event clears, and that a shortened UUID does not match.TestAggregateEventMessages_SameGPUUUIDand the envtestTestK8sConnector_WithEnvtest_GPUIndexChangeClearsCondition.Backward compatibility
True.Limitations
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 largermaxNodeConditionMessageLengthkeeps the full UUIDs for more entries.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 ontomainafter the tests changed no platform-connectors file.A review change then made entities such as
NVLINKmatch 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 becameFalse. || 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 becameFalse. || 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 becameFalse. |Type of Change
Component(s) Affected
Testing
Checklist
<!-- 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 -->