-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Don't fail permenantly when nvml isn't installed #2732
Conversation
LGTM |
LGTM, thanks for the fix. Agree, let's cherrypick this to v0.37 |
Please make sure this gets in the v0.38.x stream as well for kubernetes 1.20 |
Is that true? I see this, which seems to make GetCollector no-op if setup failed:
|
If there are no GPUs on the node, it returns a no-op. We still fail permanently when there are no GPUs on the node. We no longer fail permanently when nvml is missing |
cadvisor/accelerators/nvidia.go Line 74 in 65fa5b4
|
Got it, detectDevices was working, initializeNVML was not. Sorry for the noise. |
Reverts a small part of #2419, which changed how the nvidia collector is setup. NVIDIA driver and library installation is often done via daemonset. If cadvisor starts before the library is installed, youdon't get any GPU metrics.
This should fix the problem by returning a manager instead of a noop. Setup will be retried when GetCollector is called.
cc @RenaudWasTaken @iwankgb @bobbypage
I'd like to cherrypick this back to v0.37 as well.