Repository navigation
fix(recipes): mount only NVML for VR200 metadata-collector - #3104
yuanchen8911 merged 2 commits into
Conversation
The VR200 RKE2 overlays mounted the host's whole /usr/lib/aarch64-linux-gnu on LD_LIBRARY_PATH, so metadata-collector (Ubuntu 22.04, glibc 2.35) loaded the host glibc (Ubuntu 26.04, 2.43) and exited 127. Mount only libnvidia-ml.so.1 and pin it in the test. Fixes NVIDIA#3103 Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review. 📝 WalkthroughWalkthroughThe VR200 inference and training overlays now mount only Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The overlays now mount only the NVML library file, avoiding the whole-directory mount implicated in the VR200 regression. No actionable merge-blocking risk remains in the reviewed changes. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
Pull Request is not mergeable
Summary
Mount only the host's
libnvidia-ml.so.1into metadata-collector on the VR200 RKE2 leaves, instead of the whole/usr/lib/aarch64-linux-gnu. The whole-directory mount put the host glibc onLD_LIBRARY_PATH, so metadata-collector crash-looped on startup and blockednvsentinelfrom becoming ready.Motivation / Context
#2711 re-enabled metadata-collector on the VR200 RKE2 overlays. It sets
runtimeClassName: ""(the intended NRI-mode design), mounts the host's/usr/lib/aarch64-linux-gnuat/usr/local/nvidia/lib, and setsLD_LIBRARY_PATH=/usr/local/nvidia/lib.That directory holds the host's whole system library set, glibc included:
So the collector loads the host
libc.so.6with its own older loader and exits 127 before NVML is ever touched:This reproduced on both workers of a VR200 RKE2 cluster (RKE2 v1.35.6, Ubuntu 26.04, driver 615.23) during v1.0.0-rc1 validation.
deploy.shstalls atnvsentinel, so the last component,prometheus-adapter, never installs.Scope: only the two VR200 RKE2 overlays use this host mount, and they cover all four VR200 leaves. Every other platform runs metadata-collector through a NVIDIA RuntimeClass and is unaffected.
Fixes: #3103
Related: #2711, #2596
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
hostPath/usr/lib/aarch64-linux-gnu/libnvidia-ml.so.1(type: File) is mounted read-only at/usr/local/nvidia/lib/libnvidia-ml.so.1.LD_LIBRARY_PATHis unchanged and now contains only NVML.libnvidia-ml.so.1is the driver's stable SONAME symlink (-> libnvidia-ml.so.615.23here). The bind mount resolves the symlink when the container is created and stays attached to that file, so a recreated pod picks up the new target but a running one does not.lddof the host NVML using the container's loader resolveslibpthread,libm,libdl,librtandlibcto the container's own copies, with no missing symbol versions. The collector binary itself needs onlylibc.TestVR200NVSentinelNRIHostMountReenablenow pins the single-file mount, and it fails if any volume mounts the whole/usr/lib/aarch64-linux-gnu.Failed to collect NIC topology matrix ... run nvidia-smi topo -mbecause the image has nonvidia-smi. fix(recipes): nvsentinel v1.22.0 + re-enable VR200 metadata-collector #2711's directory mount did not provide it either (it mounted libraries, not/usr/bin). The warning is non-fatal; GPU, NVSwitch and NVLink metadata are still collected.Testing
TestVR200NVSentinelNRIHostMountReenablefails on both the training and inference-dynamo subtests (missing name=nvidia-ml ...). With the fix it passes.CrashLoopBackOff, exit 127, with the glibc symbol error above.014-nvsentinel/install.sh: both pods1/1 Runningwith 0 restarts. Logs showGPU metadata collected ... gpu_count:4 nvswitch_count:1, NVLink topology recorded (36 links per GPU),Successfully wrote GPU metadata, and the device mapper and metrics server started.make bom-docs: no change attributable to this PR. The only diff was an unrelatedubuntu:26.04digest drift under a GKE component, left out of this PR.golangci-lint run ./pkg/recipe/...reports 0 issues, andyamllintis clean on both overlays. The fullmake qualifyandmake testwere not run locally; CI runs them.Risk Assessment
Two VR200 overlays and the test that pins them; no other recipe renders differently. Verified live on VR200 hardware.
Rollout notes: Clusters already deployed from v1.0.0-rc1 pick up the fix by re-running the regenerated bundle's
014-nvsentinel/install.sh(ordeploy.sh). No migration.Checklist
make testwith-race) — targeted tests only; full suite runs in CImake lint) —golangci-linton./pkg/recipe/...andyamllintare clean; fullmake lintruns in CIgit commit -s -S) — GPG signing info