← Back to Pull requests

Add SLES 16.0 support and extend SLES 15 SP7 driver versions #562

Closed
unknown closed this pull request without merging on Jun 03, 2026 20:08 UTC
View on GitHub
unknown unknown commented on May 29, 2026 14:09 UTC
Author

Motivation

Follow up to https://github.com/ROCm/gpu-operator/pull/365 to extend SLES 16.0 support, and some controller validation improvements.

Technical Details

The PR is making the folllowing changes:

  • extend SLES support to include SLES 16.0 OS (along with the existing SLES 15 SP7)

  • - new prebuilt driver versions for both codestreams:
    - SLES 16.0 31.10, 31.20, 31.30
    - SLES 15 SP7 - 30.20.1, 30.30.3, 31.10, 31.20, 31.30
    - refactor the driver image lookup into the shared internal/utils package
    (so, both KMM module builder and the spec validator use the same meta)

  • add reconcile-time validation to reject unsupported driver versions for SLES nodes with a clear status condition on the DeviceConfig object
  •     > kubectl get deviceconfig mi355x-driver-test -n kube-amd-gpu -o jsonpath='{.status}'| jq .
        {
          "conditions": [
            {
              "lastTransitionTime": "2026-05-29T13:11:09Z",
              "message": "Validation failed: [driver version validation failed for node 144.xx.xx.xx.xx: driver version \"31.50\" is not supported for SLES 16.0; supported versions: 31.10, 31.20, 31.30]",
              "reason": "ValidationError",
              "status": "True",
              "type": "Error"
            },
            {
              "lastTransitionTime": "2026-05-29T13:11:09Z",
              "message": "",
              "reason": "OperatorReady",
              "status": "False",
              "type": "Ready"
            }
          ]
        }
        

  • also add a new NoMatchingNodes condition in the DeviceConfig status, to surface error when no cluster nodes match the node selector defined in the DeviceConfig manifest.
  • This condition will clear when node selector condition is satisfied.

    In my local testing, when NFD labels (for allowing GPU device ID) are absent on the node, the DeviceConfig admission happens silently with no error/feedback in the DeviceConfig status. but the operator loops indefinitely with reconciler errors in logs (and these errors are easy to go unnoticed).


        > kubectl get deviceconfig mi355x-driver-test -n kube-amd-gpu -o jsonpath='{.status}'| jq .
        {
          "conditions": [
            {
              "lastTransitionTime": "2026-05-29T13:44:42Z",
              "message": "",
              "reason": "OperatorReady",
              "status": "False",
              "type": "Ready"
            },
            {
              "lastTransitionTime": "2026-05-29T13:44:42Z",
              "message": "no nodes found matching selector feature.node.kubernetes.io/amd-gpu=true; verify node labels or check that NFD has labeled the GPU nodes",
              "reason": "NoMatchingNodes",
              "status": "True",
              "type": "Error"
            }
          ],
          ...
        

    Test Plan

    Please note, these changes are validated on a MI355X system with SLES 16.0 (provided by AMD) across all amdgpu driver versions included in the PR.

    Test Result

    Added unit tests for

  • SLESDefaultDriverVersionsMapper (covering SP7 and 16.0 OS image parsing)

  • ValidateSLESDriverVersion (to cover valid/invalid driver versions for both codestreams and non-SLES passthrough)

  • resolveDockerfile (covering SLES 16.0 prebuilt image tag resolution in both default and custom registry scenarios)
  • truncated output of make unit-test

    > make unit-test
    go vet ./...
    go test ./internal ./internal/controllers ./internal/kmmmodule -v -coverprofile cover.out
    ...
    ...
    === RUN   TestSLESDefaultDriverVersionsMapper
    === RUN   TestSLESDefaultDriverVersionsMapper/SLES_15_SP7
    === RUN   TestSLESDefaultDriverVersionsMapper/SLES_15_SP7_with_dash_format
    === RUN   TestSLESDefaultDriverVersionsMapper/SLES_16.0
    === RUN   TestSLESDefaultDriverVersionsMapper/SLES_15_SP6_unsupported
    === RUN   TestSLESDefaultDriverVersionsMapper/SLES_15_base_unsupported
    --- PASS: TestSLESDefaultDriverVersionsMapper (0.00s)
        --- PASS: TestSLESDefaultDriverVersionsMapper/SLES_15_SP7 (0.00s)
        --- PASS: TestSLESDefaultDriverVersionsMapper/SLES_15_SP7_with_dash_format (0.00s)
        --- PASS: TestSLESDefaultDriverVersionsMapper/SLES_16.0 (0.00s)
        --- PASS: TestSLESDefaultDriverVersionsMapper/SLES_15_SP6_unsupported (0.00s)
        --- PASS: TestSLESDefaultDriverVersionsMapper/SLES_15_base_unsupported (0.00s)
    === RUN   TestValidateSLESDriverVersion
    === RUN   TestValidateSLESDriverVersion/non-SLES_OS_is_always_valid
    === RUN   TestValidateSLESDriverVersion/valid_version_for_SLES_15_SP7
    === RUN   TestValidateSLESDriverVersion/valid_version_for_SLES_16.0
    === RUN   TestValidateSLESDriverVersion/unsupported_version_on_SLES_16.0
    === RUN   TestValidateSLESDriverVersion/unsupported_version_on_SLES_15_SP7
    --- PASS: TestValidateSLESDriverVersion (0.00s)
        --- PASS: TestValidateSLESDriverVersion/non-SLES_OS_is_always_valid (0.00s)
        --- PASS: TestValidateSLESDriverVersion/valid_version_for_SLES_15_SP7 (0.00s)
        --- PASS: TestValidateSLESDriverVersion/valid_version_for_SLES_16.0 (0.00s)
        --- PASS: TestValidateSLESDriverVersion/unsupported_version_on_SLES_16.0 (0.00s)
        --- PASS: TestValidateSLESDriverVersion/unsupported_version_on_SLES_15_SP7 (0.00s)
    PASS
    coverage: 53.2% of statements
    ok  	github.com/ROCm/gpu-operator/internal	0.019s	coverage: 53.2% of statements
    === RUN   TestAPIs
    Running Suite: Controller Suite - /home/amd/work-suse/may-29-2026/gpu-operator/internal/controllers
    ===================================================================================================
    Random Seed: 1780062369
    
    Will run 25 of 25 specs
    •••••••••••••••••••••••••
    
    Ran 25 of 25 Specs in 0.003 seconds
    SUCCESS! -- 25 Passed | 0 Failed | 0 Pending | 0 Skipped
    --- PASS: TestAPIs (0.00s)
    PASS
    coverage: 7.4% of statements
    ok  	github.com/ROCm/gpu-operator/internal/controllers	0.023s	coverage: 7.4% of statements
    === RUN   TestAPIs
    Running Suite: KMMModule Suite - /home/amd/work-suse/may-29-2026/gpu-operator/internal/kmmmodule
    ================================================================================================
    Random Seed: 1780062369
    
    Will run 9 of 9 specs
    testing multiple valid homogeneous nodes
    testing multiple valid heterogeneous nodes
    testing multiple valid heterogeneous nodes + one unsupported node
    testing multiple unsupported nodes
    testing empty node list
    •••••••<moduleName>
    <amdgpu>
    •<moduleName>
    <amdgpu>
    •
    
    Ran 9 of 9 Specs in 0.004 seconds
    SUCCESS! -- 9 Passed | 0 Failed | 0 Pending | 0 Skipped
    --- PASS: TestAPIs (0.01s)
    PASS
    coverage: 46.4% of statements
    ok  	github.com/ROCm/gpu-operator/internal/kmmmodule	0.020s	coverage: 46.4% of statements
    

    Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
  • Diff: 650 lines (+487 / -163) across 8 files Reviewer: Priyankasaggu11929 Review duration: 7558m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #562"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%