Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve Azure Linux nvidia-container-toolkit posttrans error #5321

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

henryli001
Copy link
Contributor

What type of PR is this?

What this PR does / why we need it:

  • This PR fixes an issue with Azure Linux AKS GPU where an error takes place within the posttrans phase when installing the nvidia-container-toolkit RPM package. that causes /etc/nvidia-container-runtime/config.toml to not be generated in the OS. The reason of the failure is because nvidia-ctk, the binary used to generate the config file is missing. This is because nvidia-ctk is provided by the nvidia-container-toolkit-base RPM package and this RPM is installed after nvidia-container-toolkit. This PR thus changes the RPM installation sequence to satisfy the package runtime requirements.

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

none

@cameronmeissner
Copy link
Collaborator

lgtm I think, is this currently causing wide impact in prod? if so then it'd probably worth to cherry-pick this to master so it can roll out in next week's release

@@ -82,7 +82,7 @@ installNvidiaContainerToolkit() {
MARINER_NVIDIA_CONTAINER_TOOLKIT_VERSION="1.16.2"
fi

for nvidia_package in nvidia-container-toolkit-${MARINER_NVIDIA_CONTAINER_TOOLKIT_VERSION} nvidia-container-toolkit-base-${MARINER_NVIDIA_CONTAINER_TOOLKIT_VERSION} libnvidia-container-tools-${MARINER_NVIDIA_CONTAINER_TOOLKIT_VERSION} libnvidia-container1-${MARINER_NVIDIA_CONTAINER_TOOLKIT_VERSION}; do
for nvidia_package in libnvidia-container1-${MARINER_NVIDIA_CONTAINER_TOOLKIT_VERSION} libnvidia-container-tools-${MARINER_NVIDIA_CONTAINER_TOOLKIT_VERSION} nvidia-container-toolkit-base-${MARINER_NVIDIA_CONTAINER_TOOLKIT_VERSION} nvidia-container-toolkit-${MARINER_NVIDIA_CONTAINER_TOOLKIT_VERSION}; do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a comment to show this ordering is necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment added.

@henryli001
Copy link
Contributor Author

lgtm I think, is this currently causing wide impact in prod? if so then it'd probably worth to cherry-pick this to master so it can roll out in next week's release

This has not been causing impact in prod yet since no customer bug requests have been noticed, but there's a possibility that customer workloads might be impacted by this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants