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

オープン 初心者向け
#3,576 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

@SelvanayakiGurusamy がすでに取り組んでいます。

2026年11月18日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go, kubernetes

調査の方向性

src/compute-plane-services/nvca/pkg/operator/reconcile/clustermgmt/ngcclient.go を開いて withAgentConfigMapper を読み、次に #3540 で NVCAWorkerContainerRestartCountToFailInstance がどのように寛容にされたかを確認し、そのパターンを NVCFWorkerDegradationPeriodMinutes にコピーしてください。returns error for invalid worker degradation period ケースを ngcclient_test.go 内で更新し、警告と他の設定の正常なマッピングを検証するようにしてください。数値でない値がエラーを出さなくなり、AgentPriorityClassName のような兄弟キーが引き続きマッピングされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
251
フォーク
100
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/nvcf のほかの issue

NVIDIA/nvcf の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。