AKS NPD Xid plugin cannot parse RFC 3339 syslog timestamps
Problem
check_xid_error.sh expects traditional timestamps such as Oct 29 22:59:15, but the tested node uses:
2026-10-29T22:59:15.009259+00:00
The script extracts the first three log fields and appends a year, causing date parsing to fail. It exits with code 1 and empty stdout.
Impact
NPD treats the parsing failure as a detected GPU fault rather than an unknown result. Timestamp filtering cannot complete, and no diagnostic message is provided.
Versions
- AKS
1.35.8, Ubuntu24.04.5. - NPD:
0.8.25-ubuntu24.04u25. - AKS NPD configuration:
1.0.0-ubuntu24.04u2.
Quick reproduction
Run in Bash on a GPU test node with nvidia-smi on PATH. This uses a temporary log and cache; host logs and the managed NPD cache are unchanged.
d=$(mktemp -d)
printf '%s node kernel: NVRM: Xid (PCI:0000:00:00): 79, pid=99999, name=npd-repro, SYNTHETIC TEST.\n' \
"$(date -u +%FT%T.%6N%:z)" > "$d/syslog"
rc=0
SYSLOG_DIR="$d" XID_CACHE_PATH="$d/cache" \
bash /etc/node-problem-detector.d/plugin/check_xid_error.sh > "$d/out" || rc=$?
printf 'exit_code=%s stdout_bytes=%s\n' "$rc" "$(wc -c < "$d/out")"
rm -f -- "$d/syslog" "$d/cache" "$d/out"
rmdir -- "$d"
Observed output:
exit_code=1 stdout_bytes=0
Key log
Captured bash -x excerpt:
+ log_timestamp='2026-10-29T22:48:17.486776+00:00 lab-node kernel:'
++ return 1
+ log_timestamp_seconds=
Expected fix
Support both timestamp formats, including timezone offsets and fractional seconds. Handle parsing failures explicitly with exit code 2 (Unknown) and a useful message.
Environment
- Region:
southeastasia - AKS Kubernetes version:
v1.35.8(created withaz aks create --kubernetes-version 1.35.8 --tier free) - Node pool:
Standard_NC4as_T4_v3(Tesla T4, driver580.159.04), Spot - Node image:
AKSUbuntu-2404gen2containerd-202610.23.0 - OS / kernel: Ubuntu 24.04.5 LTS /
6.8.0-1071-azure - Managed NPD:
node-problem-detector-kubernetes 0.8.25-ubuntu24.04u25,node-problem-detector-aks-config 1.0.0-ubuntu24.04u2 - Xid plugin invocation interval 60s, timeout 20s; managed NPD service and scripts were not modified.
@swgriffith, @wenjungaogaogao, @djsly would you be able to assist?
Thanks for reporting this. Fixed this issue. It'll be rolled out with the next NPD/aks-vm-extensions release.