[no-relnote] fix e2e failures for nvidia-container-cli test cases#1802
Merged
cdesiniotis merged 1 commit intoNVIDIA:mainfrom May 7, 2026
Merged
Conversation
Newer versions of Ubuntu container images (starting with 26.04) introduced changes that broke nvidia-container-cli tests. In particular, the libcap shared library, the pivot_root binary, and /sbin/ldconfig.real are not included by default. This differs from prior releases. To account for this and fix the test failures, the libcap2 and utils-linux-extra (provided pivot_root) packages have been added as prerequisites that get installed in the nested container runner used in our e2e tests. In addition, /sbin/ldconfig.real is made a symlink to /sbin/ldconfig if it doesn't exist. Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
Contributor
Author
|
/cherry-pick release-1.19 |
Contributor
Author
|
Latest test failure on main: https://github.com/NVIDIA/nvidia-container-toolkit/actions/runs/25462288168 |
Coverage Report for CI Build 25464698998Coverage remained the same at 43.323%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
tariq1890
approved these changes
May 6, 2026
|
🤖 Backport PR created for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Newer versions of Ubuntu container images (starting with 26.04) introduced changes that broke nvidia-container-cli tests. In particular, the libcap shared library, the pivot_root binary, and /sbin/ldconfig.real are not included by default. This differs from prior releases. To account for this and fix the test failures, the libcap2 and utils-linux-extra (provided pivot_root) packages have been added as prerequisites that get installed in the nested container runner used in our e2e tests. In addition, /sbin/ldconfig.real is made a symlink to /sbin/ldconfig if it doesn't exist.
The nvidia-container-cli tests create a nested container runner here with the
ubuntuimage. I suspect the e2e tests started failing on main onceubuntu:lateststarted corresponding toubuntu:26.04. Note the differences below between theubuntu:24.04andubuntu:26.04images.Note, I have provisioned an Ubuntu 26.04 system and see both libcap2 and utils-linux-extra come by default with a standard ISO. I do notice that only
/sbin/ldconfigexists (and not/sbin/ldconfig.real), but this does not cause any issues. I installed the NVIDIA Container Toolkit using our documentation, and[nvidia-container-cli.ldconfig]correctly gets set to@/sbin/ldconfigin/etc/nvidia-container-runtime/config.toml. I am able to run GPU containers without any issue (even when I force that the legacy nvidia-container-runtime-hook gets used).