feat: add npd checks detection through KOM policies #1755
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
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 #1755"
general
weight: 0.35
tanishagoyal2
Summary
This PR covers the NPD checks detection through NVSentinel KOM policies. Kubernetes node-problem-detector (NPD) makes node-level kernel, filesystem, hardware, runtime, networking, and service problems visible to the Kubernetes control plane. Its supplied checks provide a
reference set of general node-health signals that can be assessed alongside NVSentinel's existing checks.
The decision is to watch following NPD checks through KOM policies.
XfsShutdownCperHardwareErrorFatalReadonlyFilesystemAs all of these are the node conditions applied by NPD, KOM can watch these node conditions (where status = 'True') and emit unhealthy fatal event with the decided recommended action.
Testing
I have tested these changes in the dev cluster where NPD was already running on the nodes.
1. Updated the cluster with new policies to detect XfsShutdown, CperHardwareErrorFatal and ReadonlyFilesystem.
2. Updated the XfsShutdown by shutting down the temp mount on host using 'xfs_io -x -c 'shutdown -f' /mnt/disks/xfs-test2 '
3. NPD's XfsShutdown node condition was applied
XfsShutdown True 06 Sep 2026 12:54:05 +0530 06 Sep 2026 12:54:07 +0530 XfsHasShutdown XFS (loop1): Metadata I/O Error (0x4) detected at xfs_fs_goingdown+0x9e/0xb0 (fs/xfs/xfs_fsops.c:451). Shutting down filesystem.4. KOM policy 'NPDXfsShutdown' matched and KOM emitted a new fatal health event with recommended action as REPLACE_VM
NPDXfsShutdown True 06 Sep 2026 12:54:05 +0530 06 Sep 2026 12:54:05 +0530 NPDXfsShutdownIsNotHealthy ErrorCode:NPD_XFS_SHUTDOWN v1/Node:gke-kppqrmfb-dgxc-k8-customer-gpu-a3--bbe72f35-mjh6 NPD reported an XFS filesystem shutdown Recommended Action=REPLACE_VM;KOM logs
Inserted event
5. FQM received the unhealthy event and applied cordoning and annotations
<!-- Brief description of your changes -->
Type of Change
Component(s) Affected
Testing
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added opt-in monitoring for Node Problem Detector conditions: XFS shutdowns, fatal hardware errors, and read-only filesystems.
Added remediation policies that can request VM replacement for these fatal conditions.
Added a Helm values overlay for enabling node readiness and NPD remediation policies.
Updated default node-readiness monitoring to detect nodes remaining non-Ready for over two hours and recommend VM replacement without draining workloads.
Documentation
Added Node Problem Detector integration guidance, validation steps, and configuration references.
Clarified opt-in NPD policies and updated documentation navigation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->