Skip to content

Commit daba8dd

Browse files
committed
SCHED-1041: Pre-create GPU lib placeholders and validate ldconfig results so one worker's failing nvidia-container-cli cannot break NVML on the whole cluster.
1 parent f70000e commit daba8dd

3 files changed

Lines changed: 226 additions & 76 deletions

File tree

helm/soperator-activechecks/scripts/prepull-container-image.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ rc=0
99
srun --container-image={{ include "activecheck.image.pyxis" . }} hostname || rc=$?
1010

1111
if [ "${rc}" -ne 0 ]; then
12-
# SCHED-1041 diagnostics: the enroot nvidia hook fails when the ldconfig soname symlinks are missing in the jail.
12+
# NVML diagnostics: the enroot nvidia hook fails when the ldconfig soname symlinks are missing in the jail.
1313
# No libnvidia-ml.so.1 below -> complement_jail.sh ldconfig never created it (see the slurmd pod logs of the flock winner);
1414
# 0-size versioned libs -> bind mounts are not visible in this node's view of the jail.
1515
# timeout: diagnostics must never convert a fast FAILED into a 30-min job TIMEOUT if the jail FS ever blocks reads.
16-
echo "[nvml] === jail GPU lib state on $(hostname) after failure (SCHED-1041) ==="
16+
echo "[nvml] === jail GPU lib state on $(hostname) after failure ==="
1717
timeout 30 ls -la "/usr/lib/$(uname -m)-linux-gnu/" | awk '/libnvidia-ml|libcuda\.so/ {print "[nvml] " $0; n++} END {if (!n) print "[nvml] no libnvidia-ml/libcuda entries"}'
1818
echo "[nvml] nvidia entries in ld.so.cache: $(timeout 30 ldconfig -p | grep -c nvidia)"
1919
fi

0 commit comments

Comments
 (0)