feat(fault-quarantine): retain quarantine taints during post-remediation validation #1962
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
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.384
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1962"
general
weight: 0.35
HarshavardhanK
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
triggerValidationOnUnquarantine, when a ValidationRequest is created,taintsToBeRemovedis cleared next toisUnCordon, so the session's quarantine taints stay on the node. Pre-existing taints were never removed, so they are unaffected.IsCordonedannotation at the same point.validation.retainTaints; it was dropped in review.Every taint that a fault-quarantine rule-set applies must be listed in lifecycle-manager
schedulingGate.taintswithremove: true. Test pods tolerate the listed taints, and lifecycle-manager lifts them when validation passes and leaves them when it fails.Limitations
schedulingGate.taintsis not tolerated by the test pods and is never lifted. With the default values this affectsnvsentinel.dgxc.nvidia.com/nvcre-cert-failed, which a default rule-set applies and the defaultschedulingGate.taintsdoes not list, in a session that also has an event matching a validation rule-set.not-under-quarantinereadiness criterion fails a running attempt when the node is quarantined again, which narrows this to a small race.remove: trueit also lifts a matching taint that was on the node before the quarantine.Testing
TestE2E_ValidationRequestCreationKeepsTaintswith a taint-only quarantine:TestE2E_ValidationRequestCreatedWhenEventDrainednow asserts that the taint is kept and the applied-taints annotation is cleared.go vetandgo test ./...pass infault-quarantine. I haven't tested this on a live cluster yet.Type of Change
Component(s) Affected
Testing
Checklist
<!-- 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 -->