Fix nvidia fallback services failing to start#475
Conversation
Signed-off-by: Vighnesh Maheshwari <vighmah@amazon.com>
Signed-off-by: Vighnesh Maheshwari <vighmah@amazon.com>
Signed-off-by: Vighnesh Maheshwari <vighmah@amazon.com>
ginglis13
left a comment
There was a problem hiding this comment.
LGTM - nit on missing space after : in commit message kmod-nvidia:fallback.service to install on all variants
| # https://github.com/NVIDIA/yum-packaging-precompiled-kmod | ||
|
|
||
| %build | ||
|
|
There was a problem hiding this comment.
Two nits:
- I would have kept this commit out of the series, because you are fixing three different problems
- You could have used kmod-nvidia- in the commit message
| select(.devid != "0x1DB1" | ||
| and .devid != "0x1DB5" | ||
| and .devid != "0x1DEB8" | ||
| and .devid != "0x1EB8" |
There was a problem hiding this comment.
In your PR description, can you add the testing you did here to validate that g4dn.* are using the correct driver. And add in the commit message that we are following the steps of the EKS Optimized AMI.
| @@ -11,4 +11,4 @@ ExecStart=/usr/bin/systemctl stop grid-license-check.timer --no-block | |||
| RemainAfterExit=true | |||
There was a problem hiding this comment.
The commit message is not well formatted and confusing. Could you please expand on how your change fixes the problem with non-k8s variants?
Also, should the service run After=nvidia-gridd.service? WantedBy doesn't guarantee ordering.
| StandardOutput=append:/tmp/.nvidia-gridd-license | ||
|
|
||
| [Install] | ||
| WantedBy=nvidia-k8s-device-plugin.service |
There was a problem hiding this comment.
In the commit message, or even in this file, explain that this unit doesn't need an Install section because the service will be started by a timer.
But also, you must guarantee that the service will start as soon as we reach multi-user.target. If you validated this, call it out in the PR description. And in the commit message, call out why the wanted ordering is preserved (e.g. timers.target run before, in parallel, after multi-user.target whichever is the case we want).
Issue number:
Closes #464
Description of changes:
%buildsections to kmod-nvidia specfilesg4dninstances causing the open driver to be loaded instead of the tesla driver. With this change, we are in-line with what the EKS optimized AMI doesopen-gpu-license-fallback.serviceand thetesla-license-fallback.serviceto depend on thenvidia-gridd.servicewhich itself depends onpreconfigured.targetensuring all are started on all variants.Testing done:
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.