Skip to content

fix(recipes): mount only NVML for VR200 metadata-collector - #3104

Merged
yuanchen8911 merged 2 commits into
NVIDIA:mainfrom
yuanchen8911:fix/vr200-metadata-collector-nvml-mount
Oct 5, 2026
Merged

yuanchen8911 merged 2 commits into
NVIDIA:mainfrom
yuanchen8911:fix/vr200-metadata-collector-nvml-mount

Conversation

@yuanchen8911

@yuanchen8911 yuanchen8911 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Mount only the host's libnvidia-ml.so.1 into metadata-collector on the VR200 RKE2 leaves, instead of the whole /usr/lib/aarch64-linux-gnu. The whole-directory mount put the host glibc on LD_LIBRARY_PATH, so metadata-collector crash-looped on startup and blocked nvsentinel from 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-gnu at /usr/local/nvidia/lib, and sets LD_LIBRARY_PATH=/usr/local/nvidia/lib.

That directory holds the host's whole system library set, glibc included:

  • The VR200 reference image is Ubuntu 26.04 (glibc 2.43).
  • The metadata-collector image (v1.22.0 and v1.25.0 alike) is Ubuntu 22.04 (glibc 2.35).

So the collector loads the host libc.so.6 with its own older loader and exits 127 before NVML is ever touched:

/app/metadata-collector: symbol lookup error: /usr/local/nvidia/lib/libc.so.6: undefined symbol: __tunable_is_initialized, version GLIBC_PRIVATE

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.sh stalls at nvsentinel, 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

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • Build/CI/tooling

Component(s) Affected

  • CLI (cmd/aicr, pkg/cli)
  • API server (cmd/aicrd, pkg/server)
  • Recipe engine / data (pkg/recipe)
  • Bundler and deployers (pkg/bundler, pkg/component)
  • Collectors / snapshotter (pkg/collector, pkg/snapshotter)
  • Validator (pkg/validator)
  • Core libraries (pkg/errors, pkg/k8s)
  • Docs/examples (docs/, examples/)
  • Other: ____________

Implementation Notes

  • The mount is a single file. 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_PATH is unchanged and now contains only NVML.
  • Driver upgrades need a pod restart. libnvidia-ml.so.1 is the driver's stable SONAME symlink (-> libnvidia-ml.so.615.23 here). 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.
  • NVML works with the container's glibc. ldd of the host NVML using the container's loader resolves libpthread, libm, libdl, librt and libc to the container's own copies, with no missing symbol versions. The collector binary itself needs only libc.
  • The test is updated. TestVR200NVSentinelNRIHostMountReenable now pins the single-file mount, and it fails if any volume mounts the whole /usr/lib/aarch64-linux-gnu.
  • Known limitation, unchanged by this PR: metadata-collector logs Failed to collect NIC topology matrix ... run nvidia-smi topo -m because the image has no nvidia-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

go test -race -count=1 -run 'TestVR200NVSentinelNRIHostMountReenable|TestCatalogParity|TestStockRender' ./pkg/recipe/ ./pkg/bundler/   # ok
make update-goldens   # only the two goldened VR200 leaves change (nvsentinel values, recipe, checksums)
  • Control: with the old overlays restored, TestVR200NVSentinelNRIHostMountReenable fails on both the training and inference-dynamo subtests (missing name=nvidia-ml ...). With the fix it passes.
  • Live on VR200 hardware (vr200-aicr-cluster-2, 2 × VR200 NVL72 workers, RKE2 v1.35.6, Ubuntu 26.04, driver 615.23, nvsentinel v1.25.0):
    • Before: both metadata-collector pods in CrashLoopBackOff, exit 127, with the glibc symbol error above.
    • After applying the patched values with the bundle's own 014-nvsentinel/install.sh: both pods 1/1 Running with 0 restarts. Logs show GPU 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 unrelated ubuntu:26.04 digest drift under a GKE component, left out of this PR.
  • Lint: golangci-lint run ./pkg/recipe/... reports 0 issues, and yamllint is clean on both overlays. The full make qualify and make test were not run locally; CI runs them.

Risk Assessment

  • Low — Isolated change, well-tested, easy to revert
  • Medium — Touches multiple components or has broader impact
  • High — Breaking change, affects critical paths, or complex rollout

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 (or deploy.sh). No migration.

Checklist

  • Tests pass locally (make test with -race) — targeted tests only; full suite runs in CI
  • Linter passes (make lint) — golangci-lint on ./pkg/recipe/... and yamllint are clean; full make lint runs in CI
  • I did not skip/disable tests to make CI green
  • I added/updated tests for new functionality
  • I updated docs if user-facing behavior changed
  • Changes follow existing patterns in the codebase
  • Commits are signed off and cryptographically signed (git commit -s -S) — GPG signing info

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>
@yuanchen8911 yuanchen8911 added the theme/recipes Recipe expansion, overlays, mixins, and component registry label Oct 5, 2026
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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
  • Configuration used: Repository: NVIDIA/aicr/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Enterprise
  • Run ID: c8a9aa8c-ff11-4733-9436-eb2318570215
📥 Commits

Reviewing files that changed from the base of the PR and between 8cdf57b and d47ee22.

📒 Files selected for processing (1)
  • recipes/overlays/vr200-rke2-ubuntu-inference.yaml

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.


📝 Walkthrough

Walkthrough

The VR200 inference and training overlays now mount only /usr/lib/aarch64-linux-gnu/libnvidia-ml.so.1 into the metadata collector as a read-only file. The host-mount test checks the file mount and rejects mounting the full host library directory. Golden records for the affected recipes and bundles contain updated hashes.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: mchmarny

Merge Risk: ⚪ Minimal · up to d47ee

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)
Check name Status Explanation
Linked Issues check ✅ Passed For #3103, both VR200 RKE2 overlays mount only /usr/lib/aarch64-linux-gnu/libnvidia-ml.so.1 as a read-only File at /usr/local/nvidia/lib/libnvidia-ml.so.1. The updated test requires this mount a…
Out of Scope Changes check ✅ Passed The overlay changes, test, and regenerated goldens support the #3103 fix. The incremental comment clarification also relates directly to the host-library mount. No unrelated changes are identified.
Title check ✅ Passed The title clearly summarizes the main change: mounting only NVML for the VR200 metadata collector.
Description check ✅ Passed The description explains the VR200 metadata-collector failure, the single-file NVML mount fix, and the related tests and validation.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
@yuanchen8911
yuanchen8911 marked this pull request as ready for review October 5, 2026 21:05
@yuanchen8911
yuanchen8911 requested review from a team as code owners October 5, 2026 21:05
@yuanchen8911
yuanchen8911 requested a review from mchmarny October 5, 2026 21:05
@mchmarny
mchmarny enabled auto-merge (squash) October 5, 2026 21:18
@yuanchen8911
yuanchen8911 merged commit 82bccef into NVIDIA:main Oct 5, 2026
77 of 88 checks passed
auto-merge was automatically disabled October 5, 2026 21:44

Pull Request is not mergeable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme/recipes Recipe expansion, overlays, mixins, and component registry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VR200 RKE2: metadata-collector crash-loops on host glibc mount (rc1 regression)

2 participants