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

Abierto
#688 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go
Área
backend, devops

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
110
Forks
63
Merge medio
4 d 1 h
PR fusionados (30 d)
5

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ROCm/gpu-operator

Todos los issues de ROCm/gpu-operator

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.