[Bug]: v26.7.x labels sandbox nodes with the `container` workload despite `sandboxWorkloads.defaultWorkload=vm-passthrough
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 28/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Describe the bug
With sandboxWorkloads.enabled=true and sandboxWorkloads.defaultWorkload=vm-passthrough, GPU Operator v26.7.x can label a GPU node without a nvidia.com/gpu.workload.config label with the container operand labels instead of the vm-passthrough ones. The VFIO manager and sandbox device plugin are then not deployed, and KubeVirt GPU passthrough fails. The wrong labels persist until the operator is restarted after a manual node label is added.
The operator log shows sandbox workloads enabled, but the default workload is still container:
WARNING: failed to get GPU workload config for node; using default
NodeName=<node> SandboxEnabled=true Error="no GPU workload config found"
defaultGPUWorkloadConfig=container
This configuration is documented as supported in GPU Operator with KubeVirt: "To override the default GPU workload configuration, set the following value in ClusterPolicy: sandboxWorkloads.defaultWorkload=<config>." It worked reliably for us with v25.3.1.
Analysis
In v26.7.0, node labeling moved from ClusterPolicyController.init() into the separate NodeLabelingReconciler. Both controllers react to ClusterPolicy creation and run concurrently, but:
NodeLabelingReconcilerreadssandboxEnableddirectly from the ClusterPolicy spec (controllers/nodelabeling_controller.go,updateGPUStateLabels).- For nodes without the workload label, it falls back to the package-level
defaultGPUWorkloadConfig(controllers/state_manager.go,getWorkloadConfig). This variable is initialized tocontainer. - That variable is updated from
spec.sandboxWorkloads.defaultWorkloadonly inClusterPolicyController.init(), which is called byClusterPolicyReconcilerafter several API calls.
If node labeling runs first, it applies container operand labels. Nothing corrects this afterward:
- The variable assignment is not a Kubernetes event.
- Node update events are filtered by
nodeUpdateRequiresReconcile. - ClusterPolicy update events are generation-only.
- There is no periodic resync.
The same race recurs every time the operator restarts, because the variable is reset to container. That can also flip nodes that were previously labeled correctly.
Through v26.3.3, labelGPUNodes() ran inside ClusterPolicyController.init() after defaultGPUWorkloadConfig was assigned, so this ordering was guaranteed.
To Reproduce
-
Use a single-node cluster with an NVIDIA GPU and NFD providing PCI labels, and no
nvidia.com/gpu.workload.confignode label. -
Install GPU Operator v26.7.2:
sandboxWorkloads: enabled: true defaultWorkload: vm-passthrough driver: enabled: false toolkit: enabled: false -
Inspect the node labels and operator logs. On affected installs, the node receives
nvidia.com/gpu.deploy.device-plugin=trueand the other container operand labels instead ofnvidia.com/gpu.deploy.vfio-manager=trueandnvidia.com/gpu.deploy.sandbox-device-plugin=true. The log containsdefaultGPUWorkloadConfig=container.
The issue is timing-dependent, so it may not reproduce on every install. Restarting the operator pod repeats the race.
Expected behavior
Nodes without nvidia.com/gpu.workload.config always use spec.sandboxWorkloads.defaultWorkload from the ClusterPolicy, independent of controller ordering or operator restarts.
A possible fix: in NodeLabelingReconciler, derive the fallback workload from cp.Spec.SandboxWorkloads.DefaultWorkload (when it is valid) instead of the shared package-level variable. The same applies to getNodeLabelUpdateReasons.
Environment (please provide the following information):
- GPU Operator Version: v26.7.2 (also present in v26.7.0 and v26.7.1 by code inspection; not present in v26.3.3 or earlier)
- OS: SUSE Linux Micro 6.1
- Kernel Version: 6.4.0 (SUSE)
- Container Runtime Version: containerd v2.x (bundled with K3s)
- Kubernetes Distro and Version: K3s v1.36.5+k3s1
- Workload: KubeVirt VMs with GPU passthrough; NFD v0.20 installed separately (
nfd.enabled=false)
Workaround
Explicitly label the node with nvidia.com/gpu.workload.config=vm-passthrough and restart the operator pod, or use v26.3.3 or earlier.
- Ngôn ngữ chính
- Go
- Star
- 2.9k
- Fork
- 587
- Merge trung bình
- 2 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 62
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA/gpu-operator
-
feature lifecycle/frozen needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
NVIDIA/gpu-operator#3074 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: GPUCluster common name label breaks DRA validator selectorCó thể đã có người làm @ajavanma đã nhận 37 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NVIDIA/gpu-operator#2955 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: GPUCluster DRA kubelet plugin uses driver root / on Talos and cannot find libnvidia-ml.so.1Có thể đã có người làm @roma5087 đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
NVIDIA/gpu-operator#3139 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Helm chart always sets NVIDIADriver spec.manager.image, so a default driver-manager bump reinstalls the driver on every GPU nodeCó thể đã có người làm @akshat-lakhera đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
NVIDIA/gpu-operator#3135 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: a partially specified NVIDIADriver startupProbe renders zeros instead of operator defaultsCó thể đã có người làm @blacksoxx đã nhận 2 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
NVIDIA/gpu-operator#3132 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của NVIDIA/gpu-operator
Issue tương tự
-
feat(gmail): make gmail get --format raw text output the exact message, like drafts get --format rawĐang mởclawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openclaw/gogcli#1276 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
coder/chat#151 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
hiero-ledger/hiero-sdk-go#1886 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
cloudevents/sdk-go#1346 ·