fix: add /usr/lib to library search path in init container#693
Closed
nmn3m wants to merge 2 commits intokubernetes-sigs:mainfrom
Closed
fix: add /usr/lib to library search path in init container#693nmn3m wants to merge 2 commits intokubernetes-sigs:mainfrom
nmn3m wants to merge 2 commits intokubernetes-sigs:mainfrom
Conversation
Signed-off-by: Nour <nurmn3m@gmail.com>
Signed-off-by: Nour <nurmn3m@gmail.com>
bea88b6 to
da46b95
Compare
Author
Contributor
|
Maybe the patch is good, but we still need to figure out a strong reason for why we need this patch. Which guarantee is not fulfilled, and why? #692, as it stands, isn't quite revealing. For now, let's close this, and get back to this search path topic with more clarity later. |
Author
|
@jgehrcke @klueska — I had to write a custom bash script to manually copy the missing library to the path expected by the DRA driver: echo "Copying NVIDIA libraries to worker node..."
docker exec kind-dra-gpu-worker mkdir -p /usr/lib/x86_64-linux-gnu
for lib in /usr/lib/libnvidia-ml.so*; do
[ -e "$lib" ] && docker cp "$lib" kind-dra-gpu-worker:/usr/lib/x86_64-linux-gnu/
doneIs there a better way to handle this, or should we address it properly? |
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.
Description
This PR fixes an issue where the kubelet-plugin init container fails to detect NVIDIA libraries installed in
/usr/lib, causing the pod to remain stuck inInit:0/1status indefinitely.Fixes #692
After the fix:
Init container successfully completes: