Commit Graph
16 Commits
Author SHA1 Message Date
Davanum Srinivas 5e7267a6f5 feat(os-image): build OVN from dsx-ai-factory/ovn-kubernetes v2.4.2 with pod hostPort (#1694)
* feat(os-image): pin OVN to the fork's v2.4.2 and enable pod hostPort

The stream is now the fork's release tag and the lock pins its commit. values-nke.yaml sets global.enablePodHostPort; the agent clears it on container nodes, which run the local gateway.

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

* chore(qualify): qualify the 2.4 OVN stream

The node image carries the fork's 2.4.2 packages after #1694, so the plan takes the highest 2.4 the apt suites serve.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
(cherry picked from commit 0384e4a375)

* ci: free disk before the package reproducibility builds

cni-ovn's double build used 7.6 GB of the 13 GB a fresh ubuntu-latest runner had free; a fuller one died with "No space left on device" on pull-request/1694 at 13:23Z 10-16.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
(cherry picked from commit 6fc0e7990ab96fa9eb0e91ef6e04a635e5917f17)

---------

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
2026-10-16 11:42:52 -04:00
nko-cpuandClaude Sonnet 5.5 9f163d42e3 feat(os-image): build the OVN debs from dsx-ai-factory/ovn-kubernetes (#1560)
Build the nvke-cni-ovn charts and images packages from the NVIDIA fork at a
commit the lock pins (release-1.6.0) instead of pulling upstream artifacts,
and make 1.6.0 the default stream.

- bundle.sh fetches the fork tarball with OVN_KUBERNETES_TOKEN (or
  GITHUB_TOKEN), verifies it against the lock, writes values-nke.yaml and
  builds localhost/nvke/ovnkube:<commit12> with docker buildx, nerdctl or
  podman. The lock pins source and tarball sha256; amd64 and arm64 must pin
  the same commit. Base images are pinned by digest and the built archive is
  cached in DIST_DIR.
- The fork's Dockerfile.ubuntu is patched in a copy for three gaps its chart
  hits: the node liveness and readiness scripts are not copied (kubelet killed
  ovnkube-controller every two minutes), firewalld is missing, and the iptables
  wrappers chroot /host, which the chart never mounts.
- nvke-agent uses global.imageRepositoryPrefix and global.gatewayOptions, runs
  OVN in local gateway mode on container nodes (--allow-no-uplink needs it and
  the chart hard-codes shared), and skips value files the chart no longer ships.
- Default stream 1.4.0 -> 1.6.0 across the agent, controller, OpenAPI, protos,
  docs and e2e scripts; the DB migration keeps 1.4.0 for existing rows. The
  nico-vms release fixtures and create-forge-nico-cluster.sh install 1.6.0.
- CI passes OVN_KUBERNETES_RO_TOKEN to the jobs that build cni-ovn. The nico-vms
  diagnostics capture ovnkube container logs and the tenant report.

Signed-off-by: Noah Kontur <nkontur@nvidia.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 09:11:48 -04:00
Chao f520e100aa feat(controller)!: converge control-plane node-agent versions (#1353)
* refactor(agent)!: use version and method for agent updates

Signed-off-by: Chao Chen <chaoch@nvidia.com>

* feat(controller): converge control-plane node-agent versions

Signed-off-by: Chao Chen <chaoch@nvidia.com>

* test: cover agent convergence and deletion recovery

Signed-off-by: Chao Chen <chaoch@nvidia.com>

* docs: explain control-plane node-agent updates

Signed-off-by: Chao Chen <chaoch@nvidia.com>
2026-10-14 11:26:08 -07:00
John Griffith 7c7c02949e chore: Rename nke to nvnke for images segment of codebase https://github.com/dsx-ai-factory/nvke/issues/1498 (#1548)
* chore: Rename nke to nvnke for images segment of codebase #1498

This is a "brute force" grep/replace approach to the image related
occurences of the nke name.  The goal is basically just a s/nke/nvnke/g
for everything in the repo that is associated with os-images.

This replacement bleeds into some other components (controller and agent)
that includes references to os-image names.

Closes #1498

* Keep existing image names valid

* Chore: Fix/Add DCO

Signed-off-by: jgriffith <jgriffith@nvidia.com>

---------

Signed-off-by: jgriffith <jgriffith@nvidia.com>
2026-10-12 17:08:48 -06:00
Chao 6bc0e1c9e8 fix(agent): rename node agent package and contracts to nvke (#1565)
* fix(agent): rename node agent package and contracts to nvke

Signed-off-by: Chao Chen <chaoch@nvidia.com>
2026-10-12 14:14:32 -07:00
Davanum Srinivas 454b67f8a4 ci: move the S3 publish layout to nvke-packages and nvkectl (#1505)
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
2026-10-10 23:19:47 -04:00
Davanum SrinivasandClaude Fable 5.1 6029bf16ab chore: say NVKE in the comments and display text that still said NKE (#1470)
* chore: say NVKE in the comments that still said NKE

The word NKE in comments becomes NVKE: Go comments through the token
scanner, so no string literal moves; proto doc comments, with the
generated *.pb.go files regenerated by `make -C agent protos`; and the
comment lines of YAML, shell, Make, Tilt, systemd, Packer, Nix and
template files. The provisioned provider's CRD description comes from a
doc comment, so `make -C cluster-api-provider-provisioned manifests` and
`make -C cli provider-manifest` regenerated the CRD and the CLI's
embedded copy of it.

Kept on purpose: the comment quoting the "NKE Agent Version:" line the
updater parses, and the comments about the NGC organisation that is
named NKE.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>

* chore: say NVKE in the display text that still said NKE

User-facing text that carried the word NKE now says NVKE: nvkectl help
text; log, error and condition messages; Ginkgo suite and spec names;
deb and OCI package metadata; systemd unit descriptions; workflow step
names and input descriptions; Helm render failures; and the nine
Markdown lines the prose sweep (#1462) missed. The tests that assert
these strings move with them.

Kept on purpose, because something parses or persists them: the
"NKE Agent Version:" and "NKE Agent Updater Version:" lines the updater
reads; the "update NKE RBAC:" errors of the UpdateNKERBAC rpc; the 2025
migration text; the OIDC upstream CA's CN and OU, since re-issuing that
CA would break tenant trust; the nico-sim tenant "Forge-Tenant-NKE"; the
Keycloak lab realm; and the NGC organisation that is named NKE.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>

---------

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-10 18:28:35 -04:00
Jay Madden aac8d1f181 ci: enable publishing dev .deb builds for agent (#1010)
Signed-off-by: Jay Cox <jcox@nvidia.com>
2026-09-23 14:38:54 -05:00
Davanum Srinivas 6844423f40 feat(os-image): build OVN debs from the public ovn-kubernetes project (#813)
Public chart tarball and ghcr.io image, no NGC key, both arches, like
cni-calico. OVS stays on the host via tags.ovs-node; the agent applies
upstream's values-single-node-zone.yaml first and values-nke.yaml last.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
2026-09-18 08:01:10 -04:00
Cullen McDermottandCodex d6207e7f0f fix(os-image): install the nfpm-built nke-agent Debian package (#789)
* fix(os-image): install the nke-agent Debian package during baking

Build and stage the architecture-specific agent package, defer startup during image creation, and preserve SPIRE ordering in a systemd drop-in. Verify package ownership in boot smoke.

Co-Authored-By: Codex <noreply@openai.com>
Signed-off-by: Cullen McDermott <9535761+cullenmcdermott@users.noreply.github.com>

* build(agent): package with nfpm alongside other node packages

Move Debian metadata and maintainer scripts to os-image/packages/nke-agent/packaging and use the shared nfpm version pin through the existing agent deb targets.

Co-Authored-By: Codex <noreply@openai.com>
Signed-off-by: Cullen McDermott <9535761+cullenmcdermott@users.noreply.github.com>

---------

Signed-off-by: Cullen McDermott <9535761+cullenmcdermott@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-09-16 15:39:13 -04:00
Chao 22fad73297 feat(agent): add durable self-upgrade RPCs (#383)
* feat(agent): add durable self-upgrade RPCs

Signed-off-by: Chao Chen <chaoch@nvidia.com>
2026-09-04 14:42:36 -07:00
Davanum Srinivas 6b8820124b fix: make the shell that CI runs work on a Mac too (#299)
Five places assumed GNU tools or bash 4. Each one is silent or misleading rather
than obviously broken, which is why they lasted: the repository has no macOS CI,
so nothing catches them.

Three `sed -i` sites. BSD sed reads the argument after -i as the backup suffix,
so `sed -i "s/..."` treats the script as the suffix and the filename as the
script. agent/Makefile:282 failed there, which broke `make deb-amd64` on a stock
Mac before it reached fakeroot; it now writes through a temporary file, which
both seds accept. backend-e2e.sh:81 and build-image.sh:182 pass several -e, and
that fails worse: sed takes the first -e as the suffix and the next as a
filename, so backend-e2e.sh's redaction pass exited non-zero having left the
diagnostics file UNREDACTED. Both now use -i.bak and remove the backup.

Verified against /usr/bin/sed: the old form reports "unescaped newline inside
substitute pattern", the new form substitutes correctly under BSD sed and GNU sed
alike.

etcd-member-remove.sh gets a bash 4 guard. It holds per-member health in an
associative array, and bash 3.2 does not reject `declare -A`: it warns on stderr,
falls back to an indexed array, resolves every non-numeric subscript to 0 and
exits 0. In a script that decides whether removing a member breaks quorum, every
member would report the last member's health. It is safe in production, because
the controller runs it on Linux nodes with bash 5, but anyone testing it on a Mac
gets silent corruption. shellcheck reports nothing for this at any severity, so a
guard is the only thing that catches it.

cluster-test.sh:260 used ${EXTRA_PACKAGES[-1]}, a negative index bash 4.2 added,
which is a hard error on 3.2. It now indexes from the length.

license.yml installed go-licenses @latest while agent/Makefile:297 and
controller/Makefile:295 both pin v2.0.1, so the workflow and the Makefiles could
reach different verdicts on the same tree, and the workflow's answer could change
with no commit. Now pinned to match.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
2026-08-25 20:48:43 -04:00
John Griffith 9c6910dcad feat(agent): Drop Jammy support and add resolute (#266)
We'll keep Noble for now as it's still widely used.
2026-08-23 19:45:08 -04:00
John Griffith 87582c9f71 fix(ci): ingest agent debs to apt only on agent/v* tags (#221)
Branch workflow_dispatch was uploading sha-* releases into apt intake;
gate build and publish on refs/tags/agent/v* so only release tags ingest.
2026-08-20 16:36:47 -04:00
Terry Howe 5c4d333f78 chore: add Apache-2.0 license headers and check to agent
The agent module had no source-header enforcement — no boilerplate, no
Makefile target, and no headers on any of its files. It was consequently
absent from the license workflow's header matrix, which discovers modules
by their file-license-check target.

Add hack/boilerplate.addlicense.txt carrying the repository's Apache-2.0
SPDX identifier, per the "License headers" section of the root
CONTRIBUTING.md and the root LICENSE, plus the license and
file-license-check targets mirroring controller's, and stamp the existing
sources.

Ignored paths: generated *.pb.go (rewritten by `make protos`), build
tooling under hack/, build artifacts, Dockerfiles (addlicense keys off the
extension, so Dockerfile.proto gets C-style comments Docker cannot parse),
and samples/kubeadm-deploy/calico.yaml, an upstream Calico manifest that is
not ours to stamp.

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-08-11 13:45:32 -06:00
jgriffith 18e42b26e6 Rename node-agent to agent.
Drop the redundant "node-" prefix so the module path is
github.com/NVIDIA/nke/agent rather than stuttering as nke/nke-agent.
Controller still consumes the published gitlab node-agent module until a
follow-up cutover.
2026-08-10 08:33:04 -06:00