[Feature]: Surface build/readiness status on DeviceConfig (Ready condition) so users can watch for completion without hunting pods/logs

未关闭
#688 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
go
领域
backend, devops

调研方向

Start by reading the DeviceConfig API and controller code to find how status is currently reconciled; the issue does not name specific files or tests. Trace how the out-of-tree driver build and installation reach completion, then identify the existing controller tests for those flows. Done means DeviceConfig status exposes a useful readiness condition and printer columns let users inspect progress as requested.

由索引模型根据 Issue 内容生成。

描述

Summary

Expose the build/driver-install progress and overall readiness of a DeviceConfig directly in its status so users can watch a single object for completion, instead of having to locate the builder/driver pods and tail their logs.

Current behavior

After applying a DeviceConfig that triggers an out-of-tree driver build, there is no readiness signal on the CR itself:

$ oc get deviceconfig -n openshift-amd-gpu
NAMESPACE           NAME                         AGE
openshift-amd-gpu   amdgpu-driver-install        9m19s

To know whether the build finished and the driver is loaded/ready, a user has to:

  1. Find the KMM build pod(s) for the module,
  2. Tail that pod's logs to confirm the build succeeded,
  3. Then separately confirm the driver is loaded and the device plugin is advertising GPUs.
Proposed enhancement

Add observable status to DeviceConfig, so progress and completion are visible on the CR:

  • A status.conditions entry such as Ready (and ideally intermediate phases like Building / Installing), suitable for oc wait:
    oc wait deviceconfig/amdgpu-driver-install -n openshift-amd-gpu \
      --for=condition=Ready --timeout=20m
    
  • Additional printer columns so oc get deviceconfig shows state at a glance, e.g.:
    NAME                    PHASE      READY   AGE
    amdgpu-driver-install   Building   False   2m
    amdgpu-driver-install   Ready      True    9m
    
  • Optionally surface the build result (success/failure + a short message) in status so a failed build is visible without digging into pod logs.
Benefit

A single oc wait/oc get on the DeviceConfig tells users (and CI) when the build is done and the driver is ready, removing the manual pod-discovery + log-tailing step. This makes scripted installs and validations far more reliable.

主要语言
Go
星标
110
派生
63
平均合并
4 天 1 小时
30 天内合并 PR
5

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ROCm/gpu-operator 的其他 Issue

查看 ROCm/gpu-operator 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。