Repository navigation
fix(gpu): GPU Operator v26.7.3, no fixable Critical CVEs left - #174
Merged
AhmedSeemalK merged 1 commit intoDec 1, 2026
Conversation
pvishwan
force-pushed
the
feature/DCAIDSE8-2513-gpu-operator-nfd-upgrade
branch
from
November 25, 2026 07:57
3683c16 to
2f1be4a
Compare
GPU Operator v25.3.0 ships images with fixable Critical CVEs (2 to 13 per image), and container-toolkit v1.17.5 is built on end-of-life Ubuntu 20.04. With v26.7.3 no operator image has a Critical but the driver image, whose Criticals are all in linux-libc-dev: the kernel headers it builds the driver with. - GPU Operator v26.7.3: the values the role sets keep their meaning (helm template of both charts). The operands it adds (DRA driver, CC manager, Kata sandbox plugin) stay off without gpuCluster or sandbox workloads. Re-running install platform upgrades the release, and the chart's pre-upgrade hook applies three of its CRDs. It replaces each one whole, which drops its ownership labels, so the component now tears down with `both`: after the labelled objects go, the role's teardown deletes the three CRDs the hook replaces by name, gpuclusters (new in v26) too, and the two DRA CRDs a fresh v26 install creates, which ownership_enabled: false leaves to the role alone. A driver upgrade may now delete GPU pods with emptyDir volumes (gpuPodDeletion.deleteEmptyDir): model pods have them, and with the chart's default the node stays cordoned in upgrade-failed. - The role now waits until the operator validator DaemonSet runs the ClusterPolicy's validator version and is ready on every GPU node. The toolkit restarts containerd there when its old pod stops and again a few seconds after the new one is Ready, and the next platform component's exec on a GPU node failed on the dead socket, on a fresh install and on the v25.3.0 upgrade (seen on a B300). The validator's checks pass only after that restart. Best effort, like the bundled-NFD wait: after 10 minutes the install goes on. - The nvidia-smi validate pod uses cuda 12.9.2-base-ubuntu24.04: 6 fixable High instead of 18, no Critical in either. - dcgm-exporter 4.9 (v26.7.3) refuses raw bitmask fields and crash-looped on DCGM_FI_DEV_CLOCK_THROTTLE_REASONS (seen on a B300), so the CSV exports DCGM_EXP_CLOCK_EVENTS_COUNT instead. The GPUThrottling alert fires on its slowdown, thermal and power-brake events held for 10 minutes (the count is per 5-minute window), so idle GPUs and power-cap events at full load no longer fire it, and the dashboard panel shows those reasons plus power cap. The exporter labels series hostname since 4.8.3 (Hostname before), and the alerts and the dashboard follow; rack-scale.md says the dashboard shows no data from before the upgrade. The XID stat reads 0 until a GPU reports an XID, as 4.9 has no series before that. The CSV header named an Agent Toolkit playbook. - Docs: the versions, the host driver as the hardened option, what an upgrade does, and in adding-solutions.md that `both` and a role's teardown.yaml are also for objects that lose their labels. Jira: DCAIDSE8-2513 Signed-off-by: Pramodh Vishwanath <pramodh.vishwanath@intel.com>
pvishwan
force-pushed
the
feature/DCAIDSE8-2513-gpu-operator-nfd-upgrade
branch
from
December 1, 2026 05:18
2f1be4a to
6638d48
Compare
pvishwan
marked this pull request as ready for review
December 1, 2026 05:19
|
Claude finished @pvishwan's task in 56s —— View job Verdict: LGTM I checked the PR against all six review rules and found nothing that blocks it.
|
mik-now
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GPU Operator v25.3.0 ships images with fixable Critical CVEs, 2 to 13 per image, and container-toolkit v1.17.5 is built on end-of-life Ubuntu 20.04. After this change no GPU Operator image has a Critical except the driver image. All of the driver image's Criticals are in
linux-libc-dev, the kernel headers it builds the driver with. NFD 0.17.1 → 0.20.1 is in #194, so this PR no longer changes NFD.GPU Operator v25.3.0 → v26.7.3
helm templateof both charts gives the same ClusterPolicy settings.gpuCluster.deployCRor sandbox workloads, which we don't set. CDI is now on by default, as upstream.install platformupgrades the release. The chart's pre-upgrade hook applies itsclusterpolicies,nvidiadriversandgpuclustersCRDs, and with the driver container the operator then replaces the driver one GPU node at a time. The two DRA CRDs,computedomainsandcomputedomaincliques, come only with a fresh install; the DRA operand is off.driver.upgradePolicy.gpuPodDeletion.deleteEmptyDir: true. Before reloading the driver the operator deletes the GPU pods on the node, and model pods have emptyDir volumes (KServe's model download,/dev/shm). With the chart's defaultfalseand drain off, the node stays cordoned inupgrade-failedon the old driver.nvidia-operator-validatorDaemonSet runs the ClusterPolicy's validator version and is ready on every GPU node. The toolkit restarts containerd on each GPU node when its old pod stops and again a few seconds after the new one is Ready, and the next platform component,nri_cpu_balloons, then failed its exec into a pod on that node: on a fresh install and on the upgrade from v25.3.0, both seen on a B300. The toolkit pod has no readiness probe, so waiting for it released before the second restart; the validator's checks run with thenvidiaruntime, which exists again only after that restart. The version comes from the ClusterPolicy'sspec.validator.version, which the chart always renders as a tag (v26.7.3); the role never sets the validator image. Helm's wait covers only the operator, and on an upgrade the ClusterPolicy still saysreadyfrom before, so neither is enough; a retry innri_cpu_balloonswould leave the other components' pods on that node to the same restarts. The wait is best effort, like the bundled-NFD wait next to it: after 10 minutes (a slow driver-container build, say) the install goes on andvalidatereports the operands. On a rack with several GPU nodes the toolkit and validator DaemonSets roll independently, so a late toolkit restart on one node can still break an exec there; re-runninginstall platformthen finishes.both. The chart's pre-upgrade hook (manage-crds) replaces each existing CRD whole, which drops its ownership labels. Teardown by label then leftclusterpolicies.nvidia.comandnvidiadrivers.nvidia.combehind, as seen on hardware;release-2.0has the same gap on any GPU Operator upgrade. Withteardown: both, the role's own teardown runs after the labelled objects go and deletes the three CRDs the hook replaces by name,gpuclustersincluded. The list also has the two DRA CRDs a fresh install creates,computedomainsandcomputedomaincliques, forownership_enabled: false, where only the roles' own teardowns run.DCGM_FI_DEV_CLOCK_THROTTLE_REASONSindcgm-metrics.csv, as seen on a B300: the GPU node then exports no metrics and the ClusterPolicy staysnotReady. The CSV exportsDCGM_EXP_CLOCK_EVENTS_COUNTinstead, a count perclock_eventreason in the exporter's 5-minute window.GPUThrottlingfires on the slowdown, thermal and power-brake reasons held for 10 minutes. The count is the number of samples in the window with the reason set, so one short event keeps it above zero for about 5 minutes, and the oldfor: 5mwould fire on it. Idle GPUs no longer fire it, and neither do power-cap events, which are normal at full load; the dashboard panel shows the same reasons plus power cap.hostnamesince 4.8.3 (Hostnamebefore). The alert annotations and the dashboard queries follow; the dashboard's$Hostnamevariable keeps its name.DCGM_FI_DEV_XID_ERRORSnow has no series until a GPU reports an XID, so the dashboard's XID stat addsor vector(0)to read 0.Also
cuda:12.9.2-base-ubuntu24.04, with 6 fixable High instead of 18 and no Critical in either. ItsNVIDIA_REQUIRE_CUDAalso accepts the 535, 550, 560, 565, 570 and 580 driver branches, so a host driver from an older CUDA line still passes the check.dcgm-metrics.csv: the header named an Agent Toolkit playbook.Image scan (Trivy 0.74.0, one DB for both columns): Critical (fixable) / High (fixable)
Validated:
Unit tests, ansible-lint and Bandit pass with CI's settings on
release-2.0with this change.The hardware runs below were on the first version of this PR, on
07081b1c(whererelease-2.0branches from main), which also upgraded NFD to 0.20.1. The GPU Operator changes are the same here.A CPU-only cluster, one node with a Xeon 6972P (AMX), topology
none, installed from a separate node. The GPU Operator steps force-e rack_scale_gpu_vendor=nvidia, so the operator, its release, CRDs and ClusterPolicy run without GPUs.install platform, theninstall nvidia_gpu_operator --only, from main: v25.3.0, ClusterPolicyready.install nvidia_gpu_operator --onlyfrom this branch: v26.7.3. The hook upgraded the CRDs (the ClusterPolicy has the v26 fields) and createdgpuclusters.nvidia.com, and ClusterPolicy isready.teardown nvidia_gpu_operator --only: nonvidia.comCRD and nogpu-operatornamespace left. This needed thebothchange above.teardown platformandteardown infrastructure: pass; the node is back to its state before the test.metrics_serverandobservabilitywere off for these runs. On a node with more than one IPv4 address, the apiserver called a meshed pod on its own node from the node's first address, which the Istio allow-list didn't hold (DCAIDSE8-2599, fixed inrelease-2.0by fix(istio): allow every control-plane address in the apiserver exception #179 after these runs). The GPU cluster below has the same layout, so they were off there too.A GPU cluster: a B300 HGX node (8 GPUs, host driver 580.159.04 with Fabric Manager) as the worker and a Xeon 6972P node as the control plane, topology
none, NFS storage, installed from a separate node. Main first, then this branch over it; the model checks also need the inference layer.install platformfrom main: GPU Operator v25.3.0, ClusterPolicyready(driver detected as pre-installed), 8 GPUs allocatable, a pod gets all 8, the DCGM exporter has a series per GPU,validate platformpasses.install platformfrom this branch, with a pod holding one GPU and runningnvidia-smievery 10 s: GPU Operator v26.7.3 in place, ClusterPolicyreadywithpodDeletion.deleteEmptyDir: true, 8 GPUs allocatable. The GPU pod is the same pod with 0 restarts, andnvidia-sminever failed. A pod gets all 8 GPUs, DCGM has a series per GPU,validate platformpasses. containerd restarted twice on the GPU node (old and new toolkit), and the validator wait ended 37 s after the second.qwen3-0-6b-cuda: on the B300 with onenvidia.com/gpu, answers a chat through its own vLLM server, undeploys, and no pod holds a GPU after.teardown nvidia_gpu_operator --only: nonvidia.comCRD and nogpu-operatornamespace left; the host driver and Fabric Manager are untouched.install nvidia_gpu_operator --onlyfrom this branch, fresh: all fivenvidia.comCRDs carry the ownership labels, ClusterPolicyready, 8 GPUs, DCGM,validate nvidia_gpu_operatorpasses, and the-cudamodel deploys and answers again. The validator wait ended 40 s after the toolkit's containerd restart.teardown platform, with the inference layer off: nonvidia.comCRD (the two DRA ones included) and nogpu-operatornamespace. The GPU Operator's ownnvidia.com/gpu.deploy.*node labels (11 on the B300) stay, as before this change and after NVIDIA's own uninstall; the operator sets them again on the next install.teardown infrastructurepasses.Not tested here: the driver container and its upgrade roll; the B300 runs a host driver.
Decisions
nvidia_gpu_operator_driver_enabled: false. The remaining Highs wait for, for example, Debian's openssl 3.5.7 (no fix yet) and Go in the driver manager. We keep the versions NVIDIA releases together.teardown: bothfornvidia_gpu_operator, notownership_declaredor code that re-labels the CRDs. The hook updates the CRDs in place, so they keep their UIDs, and the ownership role labels only objects that appear while a component runs, declared ones included. The role's teardown already deletes the operator's CRDs by name, the two DRA ones included; a standalone NVIDIA DRA driver next to the GPU Operator is not a configuration we ship. The role's teardown also uninstalls thegpu-operatorrelease by name, as it does onrelease-2.0for envs from before the ownership labels; on a rack the toolkit is what installs the GPU Operator.bothwould restate the YAML; there is no unit test of per-component teardown modes to extend, and the repo has no Prometheus rule tests (nopromtoolin CI) to add the alert to. The alert's metric, itsclock_eventvalues and thehostnamelabel come from the exporter's live output on a B300 and its 4.9.0 source. The hardware runs under Validated cover install, upgrade in place and teardown.Jira: DCAIDSE8-2513