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

Abierto Apto para principiantes
#3,576 1 comentario 0 reacciones 0 asignados Ver en GitHub

@SelvanayakiGurusamy ya está trabajando en esto.

Desde el 18/11/2026.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
76/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go, kubernetes

Línea de trabajo

Abre src/compute-plane-services/nvca/pkg/operator/reconcile/clustermgmt/ngcclient.go y lee withAgentConfigMapper, luego observa cómo se hizo tolerante NVCAWorkerContainerRestartCountToFailInstance en #3540 y copia ese patrón para NVCFWorkerDegradationPeriodMinutes. Actualiza el caso returns error for invalid worker degradation period en ngcclient_test.go para que compruebe una advertencia más el mapeo exitoso de los demás ajustes. Terminado cuando un valor no numérico ya no produzca un error y claves hermanas como AgentPriorityClassName sigan mapeándose.

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

Descripción

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.

Lenguaje dominante
Go
Estrellas
251
Forks
100
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

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

Todos los issues de NVIDIA/nvcf

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.