feat: fallback to a reboot if a GPU reset fails #1240
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 #1240"
general
weight: 0.35
natherz97
Summary
This PR adds logic to fallback to a reboot if a GPU reset fails.
1. Create a RESTART_VM event when GPU resets fail: currently, a healthy event is emitted by the syslog-health-monitor when it detects that a GPU was successfully reset by consuming a syslog event written by the GPU reset job. Now, we will also start emitting an unhealthy event with a RESTART_VM recommended action by the syslog-health-monitor when it detects that a GPU failed to be reset. The resulting reboot will clear both events for the initial XID needing a reset and subsequent failed reset event needing a reboot and the node will be uncordoned.
2. Add a new writeSyslogEvent option to the Janitor config: this gpuResetController config property defaults to true if not explicitly set. If true, the GPU reset job will write syslog events for successful and failed resets that will be consumed by the syslog-health-monitor. If false, the GPU reset will not write syslog events which will prevent automatic uncordoning for successful resets and reboot fallbacks for failed resets. Opting out of the syslog writing behavior might be desirable for GPUResets triggered outside of NVSentinel so that debugging failed resets can occur without reboots being triggered.
Overview for the reboot fallback
A COMPONENT_RESET remediation will result in the following log line being emitted to syslog and consumed by the syslog-health-monitor (regardless of which health-monitor created the original COMPONENT_RESET unhealthy event):
1. Successful resets: will result in a healthy event that can clear XID errors from the SysLogsXIDError check for matching impacted entities (GPU UUID and PCI ID). Note that if a different health-monitor emitted the original event, it would need to also check syslog or implement a different detection mechanism for GPU resets (for example the gpu-health-monitor relies on resets fixing the underlying DCGM watch or by having the nvidia-dcgm pod restarted as part of the GPU reset workflow).
4. Failed resets: will result in a new unhealthy event from the SysLogsXIDError check with the same impacted entities (GPU UUID and PCI ID) as the original health event and a RESTART_VM recommended action. Note that this flow will be triggered regardless of which health-monitor emitted the original COMPONENT_RESET event. This serves as a fallback where we will reboot a node if a GPU reset fails. This will result in the node being cordoned due to 2 events which are the original XID event and this subsequent GPU reset failed event. The syslog-health-monitor has logic to clear all unhealthy events for each of its checks in response to a reboot by sending a healthy event with empty impacted entities. As a result, we should expect that the node will be uncordoned after the reboot completes.
Example event:
Notes:
- Fix the underlying cause for the GPU reset failure.
- If the reset failure is isolated to a given XID, override the recommended action from COMPONENT_RESET to RESTART_VM.
- If the GPU reset failure is not unique to a specific XID error, disable the GPU reset feature to always reboot.
Type of Change
Component(s) Affected
Testing
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
GPU reset syslog entries now include a success/failure flag and can be disabled (default: enabled).
GPU reset job exposes a configurable option to control syslog emission.
Behavior Changes / Health
Health monitor distinguishes successful vs failed GPU resets and emits appropriate health events and recommended actions.
Tests
* Expanded unit, integration, and UAT coverage for success/failure flows and boot-ID verification.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->