6 Commits
Author SHA1 Message Date
Touhidul Alam Seyam eb8ce5efac fix(controller): skip node-agent probe when node has no IP address (#2339)
Pending nodes have no IP address yet, and the readiness probe dialed
localhost on every reconcile, storing the localhost error as the node's
nodeAgentReady message. Transport.Dial now returns ErrNoAddress before
any credential setup so every agent caller is covered, and the readiness
controller marks such nodes unready with "Node has no IP address"
without probing or counting the attempt in the probe metrics.

Closes #2264

Signed-off-by: Seyamalam <seyamalam41@gmail.com>
2026-11-17 16:18:00 -07:00
Michael Shen 8608645c97 fix(controller): bound node-agent readiness probes (#1328)
The node-agent readiness controller previously checked agents serially
using a shared two-minute timeout. A slow agent could therefore occupy
the only worker and delay readiness checks across the fleet.

This change adds a configurable worker pool (default eight), a dedicated
agent RPC timeout (default 30s), and jitter around the two-minute requeue
interval. In addition, probe concurrency and latency metrics were added.

Signed-off-by: Michael Shen <mishen@nvidia.com>
2026-10-13 09:42:26 -07:00
Davanum SrinivasandClaude Fable 5.1 4409efc29b build: move the Go module paths and repository URLs to dsx-ai-factory/nvke (#1449)
The repository was renamed from dsx-ai-factory/nke to dsx-ai-factory/nvke
on 2026-10-10. Its id is unchanged, so guards, rulesets, environments and
the OIDC subject carried over, and GitHub redirects the old URLs. The
tree still named the old repository where the name is a contract rather
than a URL: the module lines of the 12 Go modules and about 1,700 import
lines, the proto go_package (embedded in node_agent.pb.go, regenerated
here), both THIRD_PARTY_NOTICES.md files (regenerated), the lint
local-prefix and depguard entries, ldflags, the go-licenses ignore lists,
the documented repository URLs and gh commands, and the
ghcr.io/dsx-ai-factory/nke image paths in workflows, the chart default
and the e2e defaults.

Only the organisation and repository segments change. Directories,
identifiers, binary, image, chart, package, label, namespace and
environment variable names, the CODEOWNERS team slugs and CHANGELOG.md
stay as they are.

Closes #1448

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-10 16:03:26 -04:00
Aaron Patten 48f5cab857 chore(controller): say controller, not CWE, in comments and log text (#1393)
Signed-off-by: Aaron Patten <apatten@nvidia.com>
2026-10-09 09:49:33 -06:00
Davanum Srinivas 2ab60c7f6b refactor: move the module path to github.com/dsx-ai-factory/nke (#896)
* refactor: move the module path to github.com/dsx-ai-factory/nke

All nine modules still declared github.com/NVIDIA/nke after the org
move, so the two documented consumer go get lines resolved only through
GitHub's org-rename redirect.

1391 occurrences across 593 files, plus two lines in vendor/modules.txt.
Replaced by exact string, never by pattern: github.com/NVIDIA/nke is
never a prefix of anything else here, and the three other NVIDIA modules
this repository depends on -- ncx-infra-controller-rest,
infra-controller, and a bare github.com/NVIDIA/ in a GOPRIVATE pattern
-- are untouched.

The generated proto could not be renamed by substitution and was
regenerated. node_agent.pb.go embeds go_package in a length-prefixed
descriptor, so the length byte changes with the string: 0x2d to 0x35.
check-protos caught it. THIRD_PARTY_NOTICES.md for the root and agent
were regenerated too.

Verified: GOPROXY=off make build links all six binaries,
work-check-offline reports vendor consistent with every module, and
agent, cli, controller, controller/api, controller/nico-sim,
controller/hack/capd-reboot-controller, os-image and
cluster-api-provider-provisioned all pass through make.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>

* fix: catch up two things the module-path rename missed

workspace: controller/go.mod's require block and vendor/modules.txt
still had the two local requires (agent, controller/api) at their old
sort position. Ran make work-sync to re-sort both under their new
github.com/dsx-ai-factory/nke path.

lint: cli/.golangci.yml and os-image/.golangci.yml pin gci's local
group to prefix(github.com/NVIDIA/), which no longer matches the
renamed local imports -- gci moved them into the third-party group
and flagged every file that imports across modules. Repointed both at
prefix(github.com/dsx-ai-factory/nke), the same scope goimports uses
in controller/.golangci.yml. No source file needed reformatting: the
import order was already correct for a config that recognized the new
path.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>

---------

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
2026-09-20 16:52:23 -04:00
vwilson-nvidia 3bc1012318 feat(controller): add tenant node health reconciliation (#327)
- split node health into tenant node status and node agent readiness controllers
- reconcile tenant node status from tenant Node watch events and DB node changes
- add periodic node agent readiness reconciliation for DB-backed node health
- gate health controllers from main with NODE_HEALTH_CHECK_DISABLED

Why:
- Tenant node health needs to react when CWE DB node state changes, not only when tenant Kubernetes Nodes emit watch events.
- The node agent readiness check also needs periodic requeueing so transient agent/network recovery updates DB node health without waiting for another node mutation.

Signed-off-by: Vivin Wilson <vwilson@nvidia.com>
2026-08-27 12:58:45 -06:00