Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Bug]: Driver upgrade does not evict pods that use nvidia.com/gpu only in a native sidecar

Đã đóng Phù hợp với người mới
#3,026 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@JunAr7112 đang làm issue này rồi.

Từ ngày 12/10/2026.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, kubernetes
Lĩnh vực
infrastructure

Hướng nghiên cứu

Bắt đầu với gpuPodSpecFilter trong cmd/gpu-operator/main.go, hàm mà issue xác định là chỉ lặp qua pod.Spec.Containers. Kiểm tra cách hàm nhận diện các yêu cầu tài nguyên GPU và liệu các sidecar gốc trong pod.Spec.InitContainers có được tính đến hay không. Công việc hoàn tất khi một pod chỉ khai báo nvidia.com/gpu trong một sidecar gốc được chọn để xóa trong quá trình nâng cấp driver; issue không nêu tên tệp kiểm thử.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug needs-triage

Describe the bug
During an automatic driver upgrade, the upgrade controller does not delete workload pods whose nvidia.com/gpu resource is declared only in a native sidecar container (an entry in spec.initContainers with restartPolicy: Always).
The GPU pod filter, gpuPodSpecFilter in cmd/gpu-operator/main.go, only iterates pod.Spec.Containers, so such pods are treated as non-GPU pods ("No pods require deletion" logged). They keep the GPU open, k8s-driver-manager cannot unload the driver, the driver pod goes into Init:CrashLoopBackOff and the node ends up in upgrade-failed.

To Reproduce

  1. Run a Deployment whose main container has no GPU request, and a native sidecar with one:
  initContainers:
  - name: gpu-sidecar
    restartPolicy: Always
    resources:
      limits: 
        nvidia.com/gpu: 1
  1. Change driver.version in the ClusterPolicy.
  2. Observe the operator log and the driver pod.

Expected behavior
Pods that declare nvidia.com/gpu* in resources of any container, including native sidecars, are selected by gpuPodSpecFilter and deleted in pod-deletion-required.

Environment (please provide the following information):

  • GPU Operator Version: v26.7.1
  • OS: Ubuntu24.04
  • Kernel Version: 6.17.0-19-generic
  • Container Runtime Version: containerd 2.2.6
  • Kubernetes Distro and Version: K8s v1.36.1
Ngôn ngữ chính
Go
Star
2.9k
Fork
582
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
61

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/gpu-operator

Tất cả issue của NVIDIA/gpu-operator

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.