← Back to Pull requests

feat(fault-quarantine): retain quarantine taints during post-remediation validation #1962

Closed
unknown closed this pull request without merging on Oct 09, 2026 07:56 UTC
View on GitHub
unknown unknown commented on Oct 04, 2026 09:06 UTC
Author

Summary

Closes #1961.

When fault-quarantine hands a recovered node to post-remediation validation, it keeps the cordon but removes its quarantine taints. With taint-only rule sets, the node accepts workloads while validation runs. With this PR, fault-quarantine keeps the taints it applied whenever it creates a ValidationRequest, the same way it keeps the cordon, and lifecycle-manager lifts them when validation passes.

Change

  • In triggerValidationOnUnquarantine, when a ValidationRequest is created, taintsToBeRemoved is cleared next to isUnCordon, so the session's quarantine taints stay on the node. Pre-existing taints were never removed, so they are unaffected.

  • The applied-taints annotation is still removed, so lifecycle-manager lifting a kept taint is not detected as a manual untaint. This mirrors the cordon path, which removes the IsCordoned annotation at the same point.

  • No new setting. An earlier revision added an opt-in validation.retainTaints; it was dropped in review.

  • Docs: the validation configuration reference states the requirement below.
  • Every taint that a fault-quarantine rule-set applies must be listed in lifecycle-manager schedulingGate.taints with remove: true. Test pods tolerate the listed taints, and lifecycle-manager lifts them when validation passes and leaves them when it fails.

    Limitations

  • A kept taint that is not listed in schedulingGate.taints is not tolerated by the test pods and is never lifted. With the default values this affects nvsentinel.dgxc.nvidia.com/nvcre-cert-failed, which a default rule-set applies and the default schedulingGate.taints does not list, in a session that also has an event matching a validation rule-set.

  • lifecycle-manager's release step does not recheck quarantine state. A new quarantine that starts after the final readiness check of a passing attempt can lose a reused taint. The default not-under-quarantine readiness criterion fails a running attempt when the node is quarantined again, which narrows this to a small race.

  • lifecycle-manager matches on key, value and effect, so with remove: true it also lifts a matching taint that was on the node before the quarantine.
  • Testing

    TestE2E_ValidationRequestCreationKeepsTaints with a taint-only quarantine:

  • the session completed a drain: a ValidationRequest is created, the taint stays, the node is not cordoned, and the fault-quarantine annotations are removed;

  • no event drained: no ValidationRequest, and the taint is removed as before.
  • TestE2E_ValidationRequestCreatedWhenEventDrained now asserts that the taint is kept and the applied-taints annotation is cleared.

    --- PASS: TestE2E_ValidationRequestSkippedWhenValidationDisabled (0.41s)
    --- PASS: TestE2E_ValidationRequestSkippedWhenNoRuleSetMatches (1.61s)
    --- PASS: TestE2E_ValidationRequestSkippedWhenDrainIsPartial (0.41s)
    --- PASS: TestE2E_ValidationRequestSkippedWhenNoEventDrained (0.61s)
    --- PASS: TestE2E_ValidationRequestCreatedWhenEventDrained (0.81s)
    --- PASS: TestE2E_ValidationRequestCreationKeepsTaints (1.22s)
        --- PASS: TestE2E_ValidationRequestCreationKeepsTaints/ValidationRequest_created_keeps_taints (0.61s)
        --- PASS: TestE2E_ValidationRequestCreationKeepsTaints/ValidationRequest_skipped_removes_taints (0.61s)
    --- PASS: TestE2E_ValidationRequestCreationFailureKeepsNodeQuarantined (0.51s)
    --- PASS: TestE2E_ValidationRequestSkippedWhenManuallyUncordoned (0.51s)
    ok  	github.com/nvidia/nvsentinel/fault-quarantine/pkg/reconciler	11.166s
    

    go vet and go test ./... pass in fault-quarantine. I haven't tested this on a live cluster yet.

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

    Summary by CodeRabbit

    Bug Fixes
    Nodes recovering through validation now remain cordoned and retain fault-quarantine taints until validation passes, when lifecycle-manager releases them.
    If validation is skipped, fault-quarantine removes its taints during recovery. If validation request creation fails, the node remains quarantined with its existing state preserved.

    Documentation
    * Clarified how to configure scheduling-gate taints for validation, including readiness criteria and which taints lifecycle-manager may remove.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 617 lines (+462 / -155) across 7 files Reviewer: HarshavardhanK Review duration: 7129m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 617 lines diff across 7 files
    0.50
    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.384
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1962"
    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: 50.2% (MEDIUM) · Higher = larger blast radius
    50.2%
    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: 19.8% · Safe to merge
    19.8%