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

Handle GPU partitioning mode changes on the same Node (MIG<>MPS) #16

Open
Telemaco019 opened this issue Feb 19, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Telemaco019
Copy link
Member

Problem description

When changing the partitioning mode of a node from MPS to MIG, the nvidia-device-plugin crashes and therefore any new MIG device created by nos is never exposed to k8s as resource.

How to reproduce

  1. Enable MPS partitioning on a node (kubectl label nodes <node> "nos.nebuly.com/gpu-partitioning=mps")
  2. Create a Pod requesting MPS resources (for instance nvidia.com/gpu-10gb)
  3. After the requested MPS resources are created and the Pod is scheduled on the node, delete the Pod and change the node's GPU partitioning mode to MIG (kubectl label nodes <node> "nos.nebuly.com/gpu-partitioning=mps")
  4. Create a Pod requesting MIG resources (for instance nvidia.com/mig-1g.10gb)

Expected behaviour

After step 4, the MIG resources are created automatically and the Pod is scheduled on the node

Actual behaviour

After step 4, the MIG devices are created on the GPU, however the nvidia-device-plugin Pod crashes with error Cannot find configuration named <config-name>, where <config-name> is the name of the configuration set by nos during step 2.

@Telemaco019 Telemaco019 added bug Something isn't working enhancement New feature or request and removed bug Something isn't working enhancement New feature or request labels Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant