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

After setup config to crio, crio can not stop container anymore. #840

Open
stefenson opened this issue Dec 31, 2024 · 0 comments
Open

After setup config to crio, crio can not stop container anymore. #840

stefenson opened this issue Dec 31, 2024 · 0 comments

Comments

@stefenson
Copy link

stefenson commented Dec 31, 2024

Hello there, I found a Fatal Error in nvidia-ctk.
After run the config command as README says:

nvidia-ctk runtime configure --runtime=crio --set-as-default --config=/etc/crio/crio.conf.d/99-nvidia.conf

I get the config file as the example says.
Then I restart my crio service.

systemctl restart crio

Everything looks like peaceful.
But when I restart some deploys or delete some pods in k8s, the process will stuck in Terminating.

NAME                      READY  STATUS       RESTARTS  AGE
...
backend-6b7945bc64-jqwl7  1/1    Running      0         19m
backend-ccfff5ccc-ktngm   1/1    Terminating  0         22m             <---------- After 19 minutes still running
...

After a long time, I finally found this config will cause this problem:

...
  [crio.runtime]
    default_runtime = "nvidia"
...

This config changes the crio default user to "nvidia" not root, so the permission blocks all the action that crio wants to do.

After delete this config, crio returns to normal, however the new container can not use nvidia plugin anymore.

Therefore, I have these questions:

  • Why nvidia user is necessary?
  • Why root user can not use nvidia driver in container?
  • Any other way to setup config for crio that make it work funcationally?

It will be really helpful for any suggestion you provide.

Thank you very much! <3

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

No branches or pull requests

1 participant