Skip to content

fix(gpu): GPU Operator v26.7.3, no fixable Critical CVEs left - #174

Merged
AhmedSeemalK merged 1 commit into
intel:release-2.0from
pvishwan:feature/DCAIDSE8-2513-gpu-operator-nfd-upgrade
Dec 1, 2026
Merged

AhmedSeemalK merged 1 commit into
intel:release-2.0from
pvishwan:feature/DCAIDSE8-2513-gpu-operator-nfd-upgrade

Conversation

@pvishwan

@pvishwan pvishwan commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Values: the ones the role sets keep their meaning; helm template of both charts gives the same ClusterPolicy settings.
  • New operands stay off: v26 adds a DRA driver, a confidential-computing manager and a Kata sandbox plugin. They run only with gpuCluster.deployCR or sandbox workloads, which we don't set. CDI is now on by default, as upstream.
  • Upgrade: re-running install platform upgrades the release. The chart's pre-upgrade hook applies its clusterpolicies, nvidiadrivers and gpuclusters CRDs, and with the driver container the operator then replaces the driver one GPU node at a time. The two DRA CRDs, computedomains and computedomaincliques, come only with a fresh install; the DRA operand is off.
  • Driver upgrade: the role now sets 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 default false and drain off, the node stays cordoned in upgrade-failed on the old driver.
  • The role waits for the operator validator. It returns once the nvidia-operator-validator DaemonSet 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 the nvidia runtime, which exists again only after that restart. The version comes from the ClusterPolicy's spec.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 says ready from before, so neither is enough; a retry in nri_cpu_balloons would 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 and validate reports 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-running install platform then finishes.
  • Teardown is now both. The chart's pre-upgrade hook (manage-crds) replaces each existing CRD whole, which drops its ownership labels. Teardown by label then left clusterpolicies.nvidia.com and nvidiadrivers.nvidia.com behind, as seen on hardware; release-2.0 has the same gap on any GPU Operator upgrade. With teardown: both, the role's own teardown runs after the labelled objects go and deletes the three CRDs the hook replaces by name, gpuclusters included. The list also has the two DRA CRDs a fresh install creates, computedomains and computedomaincliques, for ownership_enabled: false, where only the roles' own teardowns run.
  • DCGM exporter 4.9 (in v26.7.3) refuses raw bitmask fields. It crash-looped on DCGM_FI_DEV_CLOCK_THROTTLE_REASONS in dcgm-metrics.csv, as seen on a B300: the GPU node then exports no metrics and the ClusterPolicy stays notReady. The CSV exports DCGM_EXP_CLOCK_EVENTS_COUNT instead, a count per clock_event reason in the exporter's 5-minute window. GPUThrottling fires 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 old for: 5m would 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.
  • The exporter labels its series hostname since 4.8.3 (Hostname before). The alert annotations and the dashboard queries follow; the dashboard's $Hostname variable keeps its name. DCGM_FI_DEV_XID_ERRORS now has no series until a GPU reports an XID, so the dashboard's XID stat adds or vector(0) to read 0.
  • Unchanged against the new operator: the DCGM exporter Service the observability ServiceMonitor selects is the same, and the selectors are the same, so the upgrade hits no immutable-field error.

Also

  • Validate pod image: the nvidia-smi pod uses cuda:12.9.2-base-ubuntu24.04, with 6 fixable High instead of 18 and no Critical in either. Its NVIDIA_REQUIRE_CUDA also 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.
  • Docs: the versions, the host-installed driver as the hardened option, and what an upgrade does.

Image scan (Trivy 0.74.0, one DB for both columns): Critical (fixable) / High (fixable)

Image Before After
operator 3 (3) / 209 (201) 0 / 4 (0)
validator (the operator image in v26) 4 (4) / 162 (154) —
driver manager 3 (3) / 200 (192) 0 / 25 (21)
container toolkit 13 (13) / 201 (201), Ubuntu 20.04 EOSL 0 / 5 (1)
device plugin + GFD 8 (8) / 233 (227) 0 / 4 (0)
DCGM exporter 2 (2) / 67 (67) 0 / 5 (1)
driver, Ubuntu 24.04 106 (96) / 1965 (1838) 74 (64) / 1151 (1024), all Criticals in linux-libc-dev
nvidia-smi pod 0 / 18 (18) 0 / 6 (6)

Validated:

  • Unit tests, ansible-lint and Bandit pass with CI's settings on release-2.0 with this change.

  • The hardware runs below were on the first version of this PR, on 07081b1c (where release-2.0 branches 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.

    1. install platform, then install nvidia_gpu_operator --only, from main: v25.3.0, ClusterPolicy ready.
    2. install nvidia_gpu_operator --only from this branch: v26.7.3. The hook upgraded the CRDs (the ClusterPolicy has the v26 fields) and created gpuclusters.nvidia.com, and ClusterPolicy is ready.
    3. teardown nvidia_gpu_operator --only: no nvidia.com CRD and no gpu-operator namespace left. This needed the both change above.
    4. teardown platform and teardown infrastructure: pass; the node is back to its state before the test.

    metrics_server and observability were 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 in release-2.0 by 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.

    1. install platform from main: GPU Operator v25.3.0, ClusterPolicy ready (driver detected as pre-installed), 8 GPUs allocatable, a pod gets all 8, the DCGM exporter has a series per GPU, validate platform passes.
    2. install platform from this branch, with a pod holding one GPU and running nvidia-smi every 10 s: GPU Operator v26.7.3 in place, ClusterPolicy ready with podDeletion.deleteEmptyDir: true, 8 GPUs allocatable. The GPU pod is the same pod with 0 restarts, and nvidia-smi never failed. A pod gets all 8 GPUs, DCGM has a series per GPU, validate platform passes. containerd restarted twice on the GPU node (old and new toolkit), and the validator wait ended 37 s after the second.
    3. The inference layer, then qwen3-0-6b-cuda: on the B300 with one nvidia.com/gpu, answers a chat through its own vLLM server, undeploys, and no pod holds a GPU after.
    4. teardown nvidia_gpu_operator --only: no nvidia.com CRD and no gpu-operator namespace left; the host driver and Fabric Manager are untouched.
    5. install nvidia_gpu_operator --only from this branch, fresh: all five nvidia.com CRDs carry the ownership labels, ClusterPolicy ready, 8 GPUs, DCGM, validate nvidia_gpu_operator passes, and the -cuda model deploys and answers again. The validator wait ended 40 s after the toolkit's containerd restart.
    6. teardown platform, with the inference layer off: no nvidia.com CRD (the two DRA ones included) and no gpu-operator namespace. The GPU Operator's own nvidia.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 infrastructure passes.
  • Not tested here: the driver container and its upgrade roll; the B300 runs a host driver.

Decisions

  • What the scan still finds is fixed only by newer vendor images. The driver image's Criticals are kernel CVEs in the kernel headers it builds with; they don't apply inside the container, which runs on the host's kernel, and the hardened option is the host-installed driver, 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: both for nvidia_gpu_operator, not ownership_declared or 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 the gpu-operator release by name, as it does on release-2.0 for envs from before the ownership labels; on a rack the toolkit is what installs the GPU Operator.
  • The docs name the versions, as they do for Envoy Gateway and the OpenShift operators. The driver version is the chart's default for v26.7.3, so it changes only with a chart bump.
  • No new unit test: the change is chart versions, a registry value, Helm tasks, an alert rule and a dashboard. A test that the registry says both would restate the YAML; there is no unit test of per-component teardown modes to extend, and the repo has no Prometheus rule tests (no promtool in CI) to add the alert to. The alert's metric, its clock_event values and the hostname label 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

@pvishwan
pvishwan force-pushed the feature/DCAIDSE8-2513-gpu-operator-nfd-upgrade branch from 3683c16 to 2f1be4a Compare November 25, 2026 07:57
@Mushtaq-BGA Mushtaq-BGA self-assigned this Dec 1, 2026
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 pvishwan changed the title fix(gpu): GPU Operator v26.7.3 and NFD 0.20.1, no fixable Critical CVEs left fix(gpu): GPU Operator v26.7.3, no fixable Critical CVEs left Dec 1, 2026
@pvishwan
pvishwan changed the base branch from main to release-2.0 December 1, 2026 05:17
@pvishwan
pvishwan force-pushed the feature/DCAIDSE8-2513-gpu-operator-nfd-upgrade branch from 2f1be4a to 6638d48 Compare December 1, 2026 05:18
@pvishwan
pvishwan marked this pull request as ready for review December 1, 2026 05:19
@pvishwan
pvishwan requested review from a team, Mushtaq-BGA and mik-now December 1, 2026 05:19
@sys-aibot

sys-aibot commented Dec 1, 2026 •

Copy link
Copy Markdown

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.

  • Correctness:
    • The validator wait (roles/nvidia_gpu_operator/tasks/install.yaml:155-177) requires the DaemonSet image to match the ClusterPolicy's spec.validator.version, the rollout to be current and every desired pod to be Ready. That covers the case on an upgrade where the ClusterPolicy still reads ready from before.
    • On a cluster with no GPU nodes, desiredNumberScheduled is 0, so the wait ends at once.
    • Errors are ignored the same way as the bundled-NFD wait just above it.
  • Teardown:
    • teardown: both (configs/components.yaml:33) runs teardown.yaml, and the helm uninstall and namespace delete there already have failed_when: false, so running after the label teardown is harmless.
    • The CRD list (roles/nvidia_gpu_operator/tasks/teardown.yaml:48-49) now covers every CRD the v26 chart can create.
  • Observability:
    • Every Hostname label in the alerts and dashboard is now hostname; no other file in the repo used the old label.
    • The alert and the dashboard match different clock_event sets on purpose: the dashboard adds power_cap, which the alert leaves out.
  • Comments:
    • The two new comments in install.yaml (the deleteEmptyDir one and the containerd-restart one) each explain a constraint you can't see from the code.
    • The comment in components.yaml:29-30 says why the component uses both.
  • Tests: there are no unit tests for per-component teardown modes and no Prometheus rule tests to extend, so leaving out a new test is acceptable under rule 5.

@AhmedSeemalK AhmedSeemalK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AhmedSeemalK
AhmedSeemalK merged commit 985aab1 into intel:release-2.0 Dec 1, 2026
12 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants