Skip to content

[Bug]: GPU Operator version gate checks the operator version instead of the container toolkit and device plugin versions #120

Closed

Description

@shmuel-runai

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:

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:

  1. 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 only 26.7 normalizes to v26.7.0 and 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.
  2. Broken clusters are admitted, silently. v26.7.1+ with the toolkit pinned
    to an older version passes the gate, Ready goes 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.patch prefix 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 bypass
  • operator/internal/common/daemonmgr/status.go — the new condition reason
  • operator/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.md prerequisites and chart values, CHANGELOG.md

Activity

  1. added
    kind/bug
    priority/P0
    component/operator
    component/helm
    on Sep 22, 2026
  2. self-assigned this
    on Sep 22, 2026
  3. added
    triage/accepted
    on Sep 22, 2026
  4. shmuel-runai commented on Sep 22, 2026

    @shmuel-runai
    CollaboratorAuthor

    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 (default false),
    which disables the GPU Operator version gating on the Ready condition. It
    covers 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.version and
    spec.devicePlugin.version and gating on those, with the new
    GPUOperandVersionUnsupported reason and the coarse floor dropped to
    v26.7.0. Case 2 above (v26.7.1+ with the toolkit pinned back, limits injected
    but 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:

    • The device plugin 0.20.1 floor is still "(tbc)" and nothing in this repo
      explains what fractioning needs from the device plugin. Needs confirming with
      the GPU Operator team, since a wrong floor here re-introduces case 1.
    • Whether a ClusterPolicy that does not record an operand version (omitted and
      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.
  5. francisguillier commented on Sep 22, 2026

    @francisguillier

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

component/helmcomponent/operatorkind/bugpriority/P0triage/accepted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions