← Back to Pull requests

Report which GPUCluster operands are blocking readiness #2988

Closed
unknown closed this pull request without merging on Oct 01, 2026 19:42 UTC
View on GitHub
unknown unknown commented on Sep 30, 2026 19:16 UTC
Author

Fixes #2978

When nothing errors out but some operands just aren't ready yet, the GPUCluster OperandNotReady condition only said "Waiting for operand pods to be ready", so you had to go poke at pods to figure out what it was actually waiting on. This lists the not-ready states in the message, same format ClusterPolicy already uses (clusterPolicyNotReadyMessage). States that return ignore (e.g. DCGM when it's disabled) are left out.

Changes


  • New gpuClusterOperandNotReadyMessage() helper in controllers/gpucluster_controller.go, used when setting the OperandNotReady condition

  • Unit tests: a table test for the helper, plus a reconcile test that checks the condition reason and message end to end with the fake state manager / condition updater
  • Testing


    go test ./controllers/ passes, and golangci-lint is clean.

    Also tried it on a couple of real clusters with a locally built operator image.

    k3s (Rancher Desktop, no GPU, node labeled so the DaemonSets schedule): DCGM is disabled, so it's correctly left out of the list:

    Error True OperandNotReady Waiting for operand pods to be ready; states not ready: [state-dra-driver state-dcgm-exporter state-dra-validation]

    RKE2 v1.36, single node with a T400: I switched from ClusterPolicy to GPUCluster and watched the condition as things came up:

    18:08:28 notReady | Error/PrerequisiteNotMet: A ClusterPolicy CR "cluster-policy" exists; a ClusterPolicy CR and GPUCluster CR may not exist at the same time
    18:09:02 notReady | Error/OperandNotReady: Waiting for operand pods to be ready; states not ready: [state-dra-driver state-dcgm-exporter state-dra-validation]
    18:11:10 notReady | Error/OperandNotReady: Waiting for operand pods to be ready; states not ready: [state-dcgm-exporter]

    The driver, the DRA plugin and the validator all came up and dropped off the list. dcgm-exporter stayed stuck, and the message pointed right at it. Its logs show it trying to list v1beta1.ResourceSlice, which that API server doesn't serve:

    "Failed to watch" err="failed to list *v1beta1.ResourceSlice: the server could not find the requested resource"

    That's unrelated to this PR (happy to open a separate issue), but it's a nice example of why the extra detail helps.

    Diff: 284 lines (+213 / -71) across 3 files Reviewer: tariq1890 Review duration: 1466m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 284 lines diff across 3 files
    0.40
    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.338
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2988"
    general weight: 0.35
    Reviewers
    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: 39.7% (MEDIUM) · Higher = larger blast radius
    39.7%
    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: 15.7% · Safe to merge
    15.7%