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

Đang mở Phù hợp với người mới
#3,576 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

@SelvanayakiGurusamy đang làm issue này rồi.

Từ ngày 18/11/2026.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, kubernetes
Lĩnh vực
backend, infrastructure

Hướng nghiên cứu

Mở src/compute-plane-services/nvca/pkg/operator/reconcile/clustermgmt/ngcclient.go và đọc withAgentConfigMapper, sau đó xem cách NVCAWorkerContainerRestartCountToFailInstance được làm cho chịu lỗi trong #3540 và sao chép mẫu đó cho NVCFWorkerDegradationPeriodMinutes. Cập nhật trường hợp returns error for invalid worker degradation period trong ngcclient_test.go để nó khẳng định một cảnh báo cùng với việc ánh xạ thành công các cài đặt khác. Hoàn tất khi một giá trị không phải số không còn tạo ra lỗi và các khóa anh em như AgentPriorityClassName vẫn được ánh xạ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
251
Fork
100
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/nvcf

Tất cả issue của NVIDIA/nvcf

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.