← Back to Pull requests

feat: fallback to a reboot if a GPU reset fails #1240

Closed
unknown closed this pull request without merging on May 04, 2026 06:19 UTC
View on GitHub
unknown unknown commented on Apr 30, 2026 18:28 UTC
Author

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.

  apiVersion: janitor.dgxc.nvidia.com/v1alpha1                                                                                                                                                                                                                                                                    
  kind: GPUReset                                                                                                                                                                                                                                                                                                  
  metadata:                                                                                                                                                                                                                                                                                                       
    name: maintenance-my-node-abc123                                                                                                                                                                                                                                                                              
    annotations:                    
      nvsentinel.nvidia.com/trace-id: "some-trace-id"                                                                                                                                                                                                                                                             
      nvsentinel.nvidia.com/span-id: "some-span-id"                                                                                                                                                                                                                                                               
  spec:                                                                                                                                                                                                                                                                                                           
    nodeName: my-node                                                                                                                                                                                                                                                                                             
    selector:                                                                                                                                                                                                                                                                                                     
      uuids:                                                                                                                                                                                                                                                                                                      
        - GPU-455d8f70-2051-db6c-0430-ffc457bff834
    writeSyslogEvent: false 

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):

GPU reset executed: GPU-455d8f70-2051-db6c-0430-ffc457bff834, success: <true/false>

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:

	{
	  createdAt: ISODate('2026-04-30T10:46:50.263Z'),
	  healthevent: {
	    agent: 'syslog-health-monitor',
	    componentclass: 'GPU',
	    checkname: 'SysLogsXIDError',
	    isfatal: true,
	    ishealthy: false,
	    message: ‘GPU reset failed, proceeding with a node reboot',
	    recommendedaction: RESTART_VM,
	    errorcode: [
	      'GPU_RESET_FAILURE'
	    ],
	    entitiesimpacted: [
	      {
	        entitytype: 'PCI',
	        entityvalue: '000b:00:00'
	      },
	      {
	        entitytype: 'GPU_UUID',
	        entityvalue: 'GPU-123’
	      }
	    ],
	    nodename: ‘node-123’,
	  }
	}

Notes:

  • A follow-up unhealthy event is required to trigger a full drain in node-drainer because the original COMPONENT_RESET event would've done a partial drain only against pods using the GPU needing reset.

  • If a burst of XIDs occur with both COMPONENT_RESET and RESTART_VM recommended actions and the GPU reset fails, this logic is not necessary because a reboot would already be triggered. We will rely on the existing fault-remediation de-duplication logic to only process one of the reboots.

  • This logic is meant as a fallback when there are one of more XIDs with COMPONENT_RESET recommended actions which all result in failed GPU resets. When this logic is triggered, the following steps should be followed:

  • - 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


  • 🐛 Bug fix

  • [X] ✨ New feature

  • 💥 Breaking change

  • 📚 Documentation

  • 🔧 Refactoring

  • 🔨 Build/CI
  • Component(s) Affected


  • [] Core Services

  • Documentation/CI

  • Fault Management

  • [ X] Health Monitors

  • [X] Janitor

  • Other: ____________
  • Testing


  • [X] Tests pass locally

  • [X] Manual testing completed

  • [X] No breaking changes (or documented)
  • Checklist


  • [X] Self-review completed

  • [X] Documentation updated (if needed)

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

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: natherz97 Review duration: 5030m
    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 #1240"
    general weight: 0.35
    Reviewers
    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%