feat(nvsentinel): add opt-in new-node validation mixin #3464
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 #3464"
general
weight: 0.35
yuanchen8911
Summary
Adds an opt-in
nvsentinel-node-validationmixin that turns on NVSentinel's lifecycle-manager, so a new GPU node that joins cordoned runs a DCGM level-2 diagnostic and is uncordoned only when it passes. A new bundle gate,CheckNVSentinelNodeValidationCoherent, rejects configurations lifecycle-manager would refuse at startup or could not run.Motivation / Context
A GPU node that joins, including hardware returned from repair, takes work before anything proves it healthy. This validates each new GPU node once, before it takes work.
Fixes: #3088
Related: #2623
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)Implementation Notes
global.lifecycleManager.enabledand thelifecycle-manager.*paths it needs, sets no path a remediation step sets, and needs no datastore, so it composes alone or beside any step. No shipped recipe composes it.nvidia.com/gpu.present=true, and created less than 30 minutes ago. The mixin pins the chart'scordonedcriterion, and the gate rejects criteria without it, so a schedulable node is never selected. No managed platform can register a node cordoned (kubelet--register-schedulablewas removed in Kubernetes 1.34), so the docs make a scheduling barrier from registration plus a cordon step an operator prerequisite, with per-platform setup.severity: warning; blocking findings are returned as errors) rejects malformednewNodeValidation, test lists and test definitions (including nulls, which Helm treats as deleting the chart's defaults), a missingcordonedcriterion,dcgm-diag-testwith the chart's command when no GPU Operator DCGM hostengine runs ingpu-operator, and a renamed Deployment. It warns whenglobal.dryRunis true, since lifecycle-manager ignores dry run, and when the bundle deploys no cert-manager. It rejects--dynamicon the paths it checks.nvsentinel-remediationis unchanged.Testing
make qualifypasses.TestCheckNVSentinelNodeValidationCoherent: table-driven cases for every gate rule.TestMixinNVSentinelNodeValidation_Composes(alone, beside remediation + analyzer, and with the log collector; no collision),TestNoShippedRecipeAdoptsNodeValidation, andTestNVSentinelNodeValidationChartRender(weekly render check), which pins the lifecycle-manager image, the cordoned criterion,newNodeTestsand the DCGM address against the v1.28.0 chart.make nvsentinel-remediation-e2e7/7.Coverage:
pkg/bundler/validations: 95.0% → 95.2% (+0.2%)pkg/recipe: 91.1% → 91.1% (0.0%)pkg/chainsaw: 82.0% → 82.0% (0.0%)Risk Assessment
Opt-in only: recipes that do not compose the mixin render no new objects. The DCGM level-2 diagnostic has not been run on real GPUs; on simulated GPUs it fails at level 2 with either DCGM client version. Validation with a real cloud node pool and operator cordon automation has not been exercised.
Rollout notes: Compose
nvsentinel-node-validationon a leaf overlay. New GPU nodes are validated only behind an operator-provided scheduling barrier from registration plus a cordon within 10 minutes of node creation (see docs/user/component-catalog.md#node-validation). To stop, delete remaining ValidationRequests while lifecycle-manager runs, then remove the mixin.Checklist
make testwith-race)make lint)git commit -s -S) — GPG signing info