Repository navigation
Description
Problem
GpuOperatorDependencyChecker gates the rollout on the NVIDIA GPU Operator
umbrella version, read from the ClusterPolicy label app.kubernetes.io/version
(or the OLM ClusterServiceVersion on OpenShift), against a hard floor of
v26.7.1.
That is the wrong thing to check. What gpu-fractioning depends on is two
operands:
- container toolkit >= 1.20.1 — carries the
apply-cuda-memory-limitsCDI
hook that applies theNVIDIA_GPU_MEMORY_REQUEST/NVIDIA_GPU_MEMORY_LIMIT
values fractiond injects (see fractiond injects the wrong GPU memory env var names (plural instead of singular) #103) - device plugin >= 0.20.1 (to be confirmed with the GPU Operator team)
v26.7.1 is only the first GPU Operator release whose defaults satisfy both.
Every operand version is independently overridable on the ClusterPolicy, so the
operator version neither implies nor is implied by them, and the gate is wrong
in both directions:
- Working clusters are rejected. v26.7.0 with the toolkit and device plugin
overridden to supported versions — the workaround the README itself
documented — is refused and the node daemons never roll out. A ClusterPolicy
labelled only26.7normalizes tov26.7.0and is rejected the same way.
Compare [Bug]: GPU Operator version v26.7.1-rc.1 is considered "below minimum" #112, the same class of false rejection. - Broken clusters are admitted, silently. v26.7.1+ with the toolkit pinned
to an older version passes the gate,Readygoes True, and the daemons roll
out. fractiond injects the GPU-memory limits, no CDI hook applies them, and
GPU memory goes unfenced with nothing reported on any condition. This is the
same user-visible failure as fractiond injects the wrong GPU memory env var names (plural instead of singular) #103 from a different cause, and the version
gate is the only thing that guards against it.
Change
Gate on the operand versions read from the ClusterPolicy
(spec.toolkit.version, spec.devicePlugin.version), and lower the GPU
Operator floor to v26.7.0 as a coarse check. Report an operand below its
minimum on the Ready condition with a new reason,
GPUOperandVersionUnsupported.
Two details the implementation has to get right:
- Operand versions are image tags. The toolkit's carry a distro suffix
(v1.20.1-ubuntu20.04), which is not valid semver ("04" is a numeric
identifier with a leading zero) and, where a suffix does parse, semver orders
a prerelease below the release it qualifies — so the minimum supported
toolkit would compare as older than the floor it meets. Compare on the
major.minor.patchprefix only. - A version we cannot read must not block. Operand versions are optional on
the ClusterPolicy (the GPU Operator defaults an omitted one from its own
build) and may be pinned to an unparseable tag such as a digest. OpenShift
installs with no ClusterPolicy expose no operand versions at all, so only the
coarse floor applies there.
Ship it with an installation-time bypass, skipGpuStackVersionChecks (default
false), that disables all three version gates, so an install whose versions
the operator reads wrongly can be unblocked without a code rollback — the same
revert-lever pattern as supportSmSharing. It disables verification only: it
does not make an unsupported GPU stack work.
Scope
operator/internal/controller/dependency_checker.go— the operand checks, the
lowered floor, the operand tag parsing, the bypassoperator/internal/common/daemonmgr/status.go— the new condition reasonoperator/cmd/main.go,operator/charts/values.yaml,
operator/charts/templates/deployment.yaml— the bypass value and env var- Unit tests:
dependency_checker_test.go,
gpufractioningconfig_controller_test.go - Docs:
README.mdprerequisites and chart values,CHANGELOG.md
Activity
shmuel-runai commentedon Sep 22, 2026
Splitting this: shipping the bypass first so clusters below the floor with
supported operands can roll out now, and leaving this issue open for the actual
operand-version checks.
Shipping now — chart value
skipGpuStackVersionChecks(defaultfalse),which disables the GPU Operator version gating on the
Readycondition. Itcovers case 1 above (working clusters rejected) at the cost of the operator no
longer verifying the GPU stack at all when set, so it is documented as an
escape hatch with the operand versions to confirm by hand.
Still open here — reading
spec.toolkit.versionandspec.devicePlugin.versionand gating on those, with the newGPUOperandVersionUnsupportedreason and the coarse floor dropped tov26.7.0. Case 2 above (v26.7.1+ with the toolkit pinned back, limits injectedbut never applied, nothing reported) is not addressed by the bypass and is
the reason this stays P0 — a bypass makes that case reachable by configuration
rather than less likely.
Two things to settle before the real check lands:
0.20.1floor is still "(tbc)" and nothing in this repoexplains what fractioning needs from the device plugin. Needs confirming with
the GPU Operator team, since a wrong floor here re-introduces case 1.
defaulted by the GPU Operator itself) should be treated as unverifiable and
allowed through, or blocked. Blocking rejects working clusters; allowing
leaves case 2 reachable on those installs.
fix(operator): log the version-check bypass as a warning
refactor(operator): honour the version bypass in one place
feat(operator): add skipGpuStackVersionChecks install bypass (#121)
francisguillier commentedon Sep 22, 2026
I don't think it's needed to check the version of GPU operator.
Users may leverage an old version of GPU operator (26.3.3 for instance) and enable the required versions of Container Toolkit and Device Plugin in order to use MPSv3.