gpu-operator icon indicating copy to clipboard operation
gpu-operator copied to clipboard

GPU Pods Pending and NVIDIA DaemonSet Pods Failing to Start on New GPU Nodes

Open harshadchha opened this issue 1 year ago • 13 comments

Hello NVIDIA GPU Operator Team,

We are experiencing an issue where GPU pods remain in a Pending state despite the successful provisioning of GPU nodes by the Cluster Autoscaler. The pod does not get scheduled onto the newly provisioned GPU node. Additionally, the NVIDIA GPU Operator DaemonSet pods are not starting as expected.

Environment:

OpenShift Version: 4.19.5

NVIDIA GPU Operator Version: 25.3.2

Steps to Reproduce:

1>Deploy a GPU pod that requests GPU resources.

2>Observe that the GPU pod remains in a Pending state.

3>Monitor the Cluster Autoscaler provisioning a new GPU node.

4>Notice that the GPU pod does not get scheduled onto the newly provisioned node.

5>Observe that the NVIDIA GPU Operator DaemonSet pods are not starting.

Expected Behavior:

The GPU pod should be scheduled onto the newly provisioned GPU node once it becomes available. Additionally, the NVIDIA GPU Operator DaemonSet pods should start successfully.

Actual Behavior:

The GPU pod remains in a Pending state, and the Cluster Autoscaler continues to provision additional GPU nodes without successfully scheduling the pod. The NVIDIA GPU Operator DaemonSet pods are not starting as expected.

Additional information: The GPU node is not provisioned with the appropriate labels and taints.

Attaching the cluster policy file also.

clusterpolicyforthenvdia.txt

harshadchha avatar Aug 01 '25 13:08 harshadchha

I've also encountered something similar on GKE when cluster Kubernetes version is upgraded from 1.32 to 1.33. A lot of the gpu-feature-discovery, nvidia-device-plugin-daemonset pods are failing with something like:

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "913d3b2f34a93532b2ff3993999b4252f524c8ef29ccc419eaf164dee3bcb17a": plugin type="gke" failed (add): failed to find plugin "gke" in path [/opt/cni/bin]

Any idea on what's going on? If we downgrade the Kubernetes version to 1.32, it doesn't happen anymore.

quoctruong avatar Aug 01 '25 18:08 quoctruong

+1 Anyone solved it on 1.33?

ziv-airis avatar Aug 05 '25 17:08 ziv-airis

I also experienced this issue on GKE, K8s version: 1.33.2-gke.1240000. I see this problem for all pending pods:

  Warning  FailedCreatePodSandBox  3m52s (x83 over 21m)  kubelet            (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "23e4d7d1231cfa104f88d77c755f4f9c8d2579a8ad81c7353dc20c791056234e": plugin type="gke" failed (add): failed to find plugin "gke" in path [/opt/cni/bin]
 kubectl get pods -n nvidia
NAME                                                         READY   STATUS     RESTARTS   AGE
gpu-feature-discovery-gt9rx                                  0/1     Init:0/1   0          20m
gpu-operator-5798b5b564-9fxlv                                1/1     Running    0          21m
gpu-operator-node-feature-discovery-gc-86f6495b55-x54bt      1/1     Running    0          21m
gpu-operator-node-feature-discovery-master-db499fc7d-nx2ws   1/1     Running    0          21m
gpu-operator-node-feature-discovery-worker-5z6jj             1/1     Running    0          21m
gpu-operator-node-feature-discovery-worker-f42qw             1/1     Running    0          21m
gpu-operator-node-feature-discovery-worker-jd25m             1/1     Running    0          21m
gpu-operator-node-feature-discovery-worker-v26nh             1/1     Running    0          21m
nvidia-container-toolkit-daemonset-ttqqv                     1/1     Running    0          20m
nvidia-dcgm-exporter-4dcb4                                   0/1     Init:0/1   0          20m
nvidia-device-plugin-daemonset-h7nss                         0/1     Init:0/1   0          6m21s
nvidia-driver-daemonset-7fxmh                                1/1     Running    0          21m
nvidia-operator-validator-hdhfx                              0/1     Init:0/4   0          6m38s
 kubectl get ds -n nvidia
NAME                                         DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR                                                          AGE
gpu-feature-discovery                        1         1         0       1            0           nvidia.com/gpu.deploy.gpu-feature-discovery=true                       35m
gpu-operator-node-feature-discovery-worker   4         4         4       4            4           <none>                                                                 36m
nvidia-container-toolkit-daemonset           1         1         1       1            1           nvidia.com/gpu.deploy.container-toolkit=true                           35m
nvidia-dcgm-exporter                         1         1         0       1            0           nvidia.com/gpu.deploy.dcgm-exporter=true                               35m
nvidia-device-plugin-daemonset               1         1         0       1            0           nvidia.com/gpu.deploy.device-plugin=true                               35m
nvidia-device-plugin-mps-control-daemon      0         0         0       0            0           nvidia.com/gpu.deploy.device-plugin=true,nvidia.com/mps.capable=true   35m
nvidia-driver-daemonset                      1         1         1       1            1           nvidia.com/gpu.deploy.driver=true                                      35m
nvidia-mig-manager                           0         0         0       0            0           nvidia.com/gpu.deploy.mig-manager=true                                 35m
nvidia-operator-validator                    1         1         0       1            0           nvidia.com/gpu.deploy.operator-validator=true                          35m

Environment:

  • GPU Operator Version:
 helm ls -A
NAME            NAMESPACE       REVISION        UPDATED                                 STATUS          CHART                   APP VERSION
gpu-operator    nvidia          1               2025-08-19 11:33:28.152807 +0200 CEST   deployed        gpu-operator-v25.3.2    v25.3.2 
  • OS: Ubuntu 24.04.2 LTS
  • Kernel Version: 6.8.0-1025-gke
  • Container Runtime Version: containerd github.com/containerd/containerd/v2 2.0.4-0ubuntu0~24.04.1~gke3
  • Kubernetes Distro and Version: GKE

kasia-kujawa avatar Aug 19 '25 10:08 kasia-kujawa

@cdesiniotis Any idea what is causing the the issue?

kasia-kujawa avatar Aug 20 '25 06:08 kasia-kujawa

One more thing that I can add that I don't see the issue when I disable driver installation and toolkit installation in GPU Operator. When I install drivers and toolkit before installation of GPU operator and then install GPU operator using following command:

helm upgrade -i gpu-operator -n nvidia nvidia/gpu-operator \
                        --set driver.enabled=false \
                        --set cdi.enabled=true \
                        --set hostPaths.driverInstallDir=/opt/nvidia \
                        --set toolkit.enabled=false

all pods are running:

kubectl get pods -n nvidia
NAME                                                         READY   STATUS      RESTARTS      AGE
gpu-feature-discovery-lpnkr                                  1/1     Running     0             26m
gpu-operator-857fc9cf65-wf7r9                                1/1     Running     0             27m
gpu-operator-node-feature-discovery-gc-86f6495b55-78276      1/1     Running     0             27m
gpu-operator-node-feature-discovery-master-db499fc7d-8mb59   1/1     Running     0             27m
gpu-operator-node-feature-discovery-worker-49r9n             1/1     Running     0             27m
gpu-operator-node-feature-discovery-worker-826pl             1/1     Running     0             27m
gpu-operator-node-feature-discovery-worker-xbg8p             1/1     Running     0             27m
gpu-operator-node-feature-discovery-worker-d75xf             1/1     Running     0             27m
nvidia-cuda-validator-zj25v                                  0/1     Completed   0             4m34s
nvidia-dcgm-exporter-zvrz4                                   1/1     Running     0             26m
nvidia-device-plugin-daemonset-dgzgv                         1/1     Running     0             27m
nvidia-operator-validator-8vw96                              1/1     Running     0             4m56s

kasia-kujawa avatar Aug 20 '25 07:08 kasia-kujawa

this is related to https://github.com/NVIDIA/nvidia-container-toolkit/issues/1222

kasia-kujawa avatar Aug 22 '25 07:08 kasia-kujawa

I was able to resolve it with the workaround https://github.com/NVIDIA/nvidia-container-toolkit/issues/1222#issuecomment-3201820398

quoctruong avatar Aug 22 '25 20:08 quoctruong

@quoctruong Thanks! This works also for me and unblocks usage of GPU Operator <3

kasia-kujawa avatar Aug 24 '25 18:08 kasia-kujawa

GPU Operator 25.10.0 has been released and deploys NVIDIA Container Toolkit 1.18.0 by default. The current recommendation is to set RUNTIME_CONFIG_SOURCE=file in the toolkit container to resolve these issues on GKE. You can set this envvar by setting the below in the ClusterPolicy CR:

toolkit:
  env:
  - name: RUNTIME_CONFIG_SOURCE
    value: "file"

@harshadchha let us know if this addresses your issue.

cdesiniotis avatar Nov 04 '25 23:11 cdesiniotis

GPU Operator 25.10.0 has been released and deploys NVIDIA Container Toolkit 1.18.0 by default. The current recommendation is to set RUNTIME_CONFIG_SOURCE=file in the toolkit container to resolve these issues on GKE. You can set this envvar by setting the below in the ClusterPolicy CR:

toolkit:
  env:
  - name: RUNTIME_CONFIG_SOURCE
    value: "file"

@harshadchha let us know if this addresses your issue.

This fixes the issue, thanks for the guidance!

Do you think we should add this to the docs so that users can discover this easier?

lalitadithya avatar Nov 14 '25 20:11 lalitadithya

Yes, that would be prudent. @a-mccarthy can we look into adding this as a known issue in our release notes as well as in our GKE procedure?

cdesiniotis avatar Nov 14 '25 20:11 cdesiniotis

I've created a https://github.com/NVIDIA/cloud-native-docs/pull/312 to cover this in the docs :)

a-mccarthy avatar Nov 14 '25 20:11 a-mccarthy

Documentation has been updated with a note here. Closing this issue for now. If you are still hitting it even with the workaround, please feel free to re-open this ticket or file a new one so that someone can assist.

rahulait avatar Dec 12 '25 15:12 rahulait