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

Aperta
#688 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
backend, devops

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
110
Fork
63
Merge medio
4g 1h
PR unite (30g)
5

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ROCm/gpu-operator

Tutte le issue di ROCm/gpu-operator

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.