Skip to content

[Bug]: Container Toolkit validation checks ClusterPolicy version when toolkit.enabled=false #170

Open

Description

@sudo-vatsal

Component

operator

Version

GPU Fractioning v0.1.6, deployed through Run:ai OSS 3.0.20.

Environment

Kubernetes: v1.34.9
GPU Operator: v26.7.2
Host NVIDIA driver: 615.71.09
Host NVIDIA Container Toolkit: 1.19.1
ClusterPolicy toolkit version: v1.20.1
Drivers and toolkit installed directly on worker nodes.
GPU Operator configured with driver.enabled=false and toolkit.enabled=false.
skipGpuStackVersionChecks not enabled.

What happened?

GPU Fractioning validated the Container Toolkit version declared in GPU Operator’s ClusterPolicy even though toolkit.enabled=false.

The declared version was supported (v1.20.1), but the toolkit actually installed on the workers was 1.19.1. Validation passed without identifying the unsupported host version.

GPU Fractioning reported its components as ready, while GPU memory isolation did not work as expected in this deployment. Upgrading the host toolkit resolved the observed isolation problem.

What did you expect to happen?

Toolkit validation should account for whether GPU Operator manages the installation:

  • With toolkit.enabled=true, validate the version declared in ClusterPolicy.
  • With toolkit.enabled=false, detect and validate the toolkit installed on each worker instead of trusting the unused declared version.
  • Preserve the default behavior when toolkit.enabled is omitted.
  • Provide a toolkit-specific diagnostic when the host version is unsupported or cannot be detected.

User impact

This affects deployments that install Container Toolkit outside GPU Operator and set toolkit.enabled=false.

An unsupported host toolkit can pass dependency validation, giving administrators a misleading readiness signal. In the affected deployment, GPU memory isolation did not behave as expected.

The workaround is to independently verify and upgrade the toolkit on every GPU worker. Changing the unused ClusterPolicy version does not update locally installed packages.

Reproduction steps

  1. Install NVIDIA drivers and Container Toolkit 1.19.1 directly on a GPU worker.
  2. Install GPU Operator with:
driver:
  enabled: false
toolkit:
  enabled: false
  version: v1.20.1
  1. Install GPU Fractioning v0.1.6 with version checks enabled.

  2. Confirm that the host toolkit remains 1.19.1
    nvidia-ctk --version

  3. Inspect GPU Fractioning readiness and node diagnostics. The supported declared toolkit version passes validation without reporting the unsupported installed version.

  4. Test a workload with a fraction of GPU and run nvidia-smi. The output shows complete GPU.

  5. Create a workload to use more than the fraction. It allows the workload to run without any OOM error.

Relevant logs or configuration

## Output for `nvidia-ctk --version` on worker node
NVIDIA Container Toolkit CLI version 1.19.1  ## Unsupported for GPU Fractioning

## ClusterPolicy Specs
spec:
  driver:
    enabled: false
  toolkit:
    enabled: false
    version: v1.20.1

## GPU Fractioning Status
status:
  conditions:
    - type: FractiondReady
      status: "True"
      reason: AllPodsReady
      message: 3 of 3 pods ready
    - type: MpsdReady
      status: "True"
      reason: AllPodsReady
      message: 3 of 3 pods ready
    - type: Ready
      status: "True"
      reason: AllComponentsReady
      message: all components are healthy

Additional context

Related discussion:
#120 - It configures the ClusterPolicy based validation.

This bug report specifically concerns the externally managed toolkit case, where toolkit.enabled=false makes the declared toolkit version unrelated to the installed host version.

Confirmations

  • I searched open and closed issues and did not find a duplicate.
  • I agree to follow this project's Code of Conduct.

Activity

  1. added
    kind/bug
    triage/needs-triage
    on Oct 31, 2026
  2. blacksoxx commented on Oct 31, 2026

    @blacksoxx
    Contributor

    I would like to work on this. The plan is to stop treating spec.toolkit.version as the installed version when spec.toolkit.enabled is false, and to report that the toolkit is managed outside the GPU Operator on the Ready condition instead.

  3. sudo-vatsal commented on Oct 31, 2026

    @sudo-vatsal
    Author

    I added validating the container toolkit as well directly from host in case toolkit.enabled=False. Have patched it the PR.

  4. added
    priority/P2
    and removed
    triage/needs-triage
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugpriority/P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions