← Back to Pull requests

fix(fault-quarantine): allow post-remediation validation after a full drain of a COMPONENT_RESET event #1960

Closed
unknown closed this pull request without merging on Oct 08, 2026 18:05 UTC
View on GitHub
unknown unknown commented on Oct 03, 2026 23:58 UTC
Author

Summary

Post-remediation validation can never run for a quarantine session whose fatal event recommends COMPONENT_RESET. This happens even when node-drainer.partialDrainEnabled is false (the default) and node-drainer has evicted every pod on the node. fault-quarantine logs Skipping validation: no contributing event completed its drain, and the node goes back into service without the configured tests.

This PR tells fault-quarantine whether partial drain is enabled, so those installations get validation.

Root cause

fault-quarantine/pkg/validation/validation.go:257 (FetchValidationTestsFromQuarantineSession) calls

drain.IsNodeDrained(ctx, c.healthEventStore, nodeName, events, "", nil, drain.PartialDrainEntity)

drain.PartialDrainEntity (commons/pkg/drain/drain.go:136) returns the GPU_UUID entity for any COMPONENT_RESET event, so doesDrainCoverPartialEntity never counts that event's completed drain as a full drain. node-drainer applies the partial scope only when partial drain is enabled (shouldExecutePartialDrain, node-drainer/pkg/evaluator/evaluator.go:686). fault-quarantine never sees that setting.

A common way to hit this is mapping COMPONENT_RESET to a reboot in fault-remediation, for example on hardware where a single-GPU reset is not supported. That is the configuration the node-drainer docs require partial drain to be off for.

Fix

  • New fault-quarantine.validation.partialDrainEnabled setting, false by default, the same as node-drainer.partialDrainEnabled. When false, a completed drain of a COMPONENT_RESET event counts as a full drain. When true, it never does, which is the behaviour before this PR.

  • drain.PartialDrainEntity and drain.IsNodeDrained take partialDrainEnabled, so node-drainer and fault-quarantine share one check. NodeDrainEvaluator.shouldExecutePartialDrain is removed.

  • New optional global.partialDrainEnabled in the umbrella chart, which sets both node-drainer and fault-quarantine from one value. It is unset by default, and a null value counts as unset.

  • values-tilt.yaml and values-aicr-uat.yaml enable partial drain in node-drainer, so they set the fault-quarantine value to true too.

  • Docs updated for node-drainer partial drain and post-remediation validation.
  • Precedence:

    | Values set | node-drainer partialDrainEnabled | fault-quarantine validation.partialDrainEnabled |
    |---|---|---|
    | nothing (defaults) | false | false |
    | global.partialDrainEnabled=true | true | true |
    | both subchart values true | true | true |
    | global false + both subchart values true | false (global wins) | false (global wins) |
    | global.partialDrainEnabled=null | false | false |
    | only node-drainer.partialDrainEnabled=true | true | false (mismatch, set both or use the global) |

    Compatibility

    This changes the default for installations with validation enabled: a completed drain of a COMPONENT_RESET event now counts as a full drain. The default validation ruleset does not match COMPONENT_RESET events, so a ValidationRequest is only created where a custom ruleset matches them.

    Installations that enable partial drain in node-drainer must also set fault-quarantine.validation.partialDrainEnabled: true, or set global.partialDrainEnabled: true. Otherwise a partial drain can count as a full drain.

    fault-quarantine judges each event by the setting's current value. If partial drain is turned off while an event's partial drain is in flight, that event can count as a full drain. Change both components together (the global does this).

    A fuller fix would persist the actual drain scope on the health event status, which would remove the need to configure both components. That is a schema change, so I left it out of this PR.

    Testing

  • TestE2E_ValidationRequestCreatedWhenComponentResetEventFullyDrained: a fatal COMPONENT_RESET event with a GPU_UUID entity, drain Succeeded, and the setting left at its default. A ValidationRequest is created and the node stays cordoned pending validation. With the old gate this test fails:
  •   --- FAIL: TestE2E_ValidationRequestCreatedWhenComponentResetEventFullyDrained (10.31s)
              	Error:      	Condition never satisfied
              	Messages:   	A ValidationRequest should be created
      

  • TestE2E_ValidationRequestSkippedWhenDrainIsPartial sets validation.partialDrainEnabled=true and still skips validation.

  • Validation e2e tests:
  •   --- PASS: TestE2E_ValidationRequestSkippedWhenValidationDisabled (0.41s)
      --- PASS: TestE2E_ValidationRequestSkippedWhenNoRuleSetMatches (1.62s)
      --- PASS: TestE2E_ValidationRequestSkippedWhenDrainIsPartial (0.41s)
      --- PASS: TestE2E_ValidationRequestCreatedWhenComponentResetEventFullyDrained (0.61s)
      --- PASS: TestE2E_ValidationRequestSkippedWhenNoEventDrained (0.62s)
      --- PASS: TestE2E_ValidationRequestCreatedWhenEventDrained (0.81s)
      --- PASS: TestE2E_ValidationRequestCreationFailureKeepsNodeQuarantined (0.51s)
      --- PASS: TestE2E_ValidationRequestSkippedWhenManuallyUncordoned (0.51s)
      ok  	github.com/nvidia/nvsentinel/fault-quarantine/pkg/reconciler	11.424s
      

  • go test ./... passes in fault-quarantine, and go test ./pkg/evaluator/... passes in node-drainer.

  • I rendered the precedence table above with helm template (fault-quarantine and node-drainer enabled, validation enabled). values-tilt.yaml renders true for both components.

  • I didn't run golangci-lint locally because of a toolchain mismatch, so CI is the lint check.
  • 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
  • Checklist


  • Tests pass locally

  • No breaking changes (or documented)

  • Self-review completed

  • Documentation updated (if needed)

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

    Summary by CodeRabbit

    New Features
    Added a validation setting to control how COMPONENT_RESET events are treated when determining whether a node completed a full drain. It defaults to false; enabling it applies partial-drain handling.
    A global setting can override the component-level options, keeping node draining and validation aligned.
    Documentation
    * Clarified that validation requests require a quarantine-session event that completes a full drain and matches a validation ruleset. Documented setting defaults and the need to coordinate changes with open quarantine sessions.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: HarshavardhanK Review duration: 6846m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)). 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%
    56%
    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 #1960"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 22.5% · Safe to merge
    22.5%