nvca operator: an invalid NVCFWorkerDegradationPeriodMinutes value blocks all cluster configuration updates

Aperta Adatta ai principianti
#3,576 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

@SelvanayakiGurusamy ci sta già lavorando.

Dal 18/11/2026.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go, kubernetes

Direzione di ricerca

Apri src/compute-plane-services/nvca/pkg/operator/reconcile/clustermgmt/ngcclient.go e leggi withAgentConfigMapper, poi guarda come NVCAWorkerContainerRestartCountToFailInstance è stato reso tollerante in #3540 e copia quel pattern per NVCFWorkerDegradationPeriodMinutes. Aggiorna il caso returns error for invalid worker degradation period in ngcclient_test.go in modo che verifichi un avviso più una mappatura riuscita delle altre impostazioni. Fatto quando un valore non numerico non produce più un errore e chiavi sorelle come AgentPriorityClassName vengono ancora mappate.

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

Descrizione

compute-stack

Problem

On NGC-managed clusters, the NVCA operator maps the cluster's ClusterConfigurations in withAgentConfigMapper (src/compute-plane-services/nvca/pkg/operator/reconcile/clustermgmt/ngcclient.go). If NVCFWorkerDegradationPeriodMinutes holds a value that is not an integer (for example "abc" or "30min"), the mapper returns failed to parse worker degradation period minutes.

GetCluster then returns no cluster, and ReconcileNVCACluster returns before CreateOrUpdateNVCFBackend. As a result, none of the cluster settings are reconciled, including unrelated ones such as AgentPriorityClassName or the node selector, until the value is corrected. The error repeats on every reconcile.

Requested behavior

An invalid NVCFWorkerDegradationPeriodMinutes value should not block the other cluster settings:

  • Log a warning with the cluster ID, configuration key, and rejected value.
  • Ignore the override, so the local setting or the NVCA default applies.
  • Keep mapping the other settings.

This matches how NVCAWorkerContainerRestartCountToFailInstance is handled since #3540.

Acceptance criteria

  • A non-numeric NVCFWorkerDegradationPeriodMinutes value is ignored with a warning, and the mapper returns no error.
  • Other settings in the same ClusterConfigurations are still mapped.
  • The existing test returns error for invalid worker degradation period in ngcclient_test.go is updated to cover the new behavior.

Context

Found during review of #3540. This behavior predates that PR, so it was left out of scope there.

Lingua principale
Go
Stelle
251
Fork
100
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 NVIDIA/nvcf

Tutte le issue di NVIDIA/nvcf

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.