mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
pull-request/2414
5
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
3317737e1e |
refactor(api): rename the OS profile surface to releases (#1612)
* refactor(api): rename the OS profile surface to releases /osProfiles becomes /releases and nico.osProfile becomes nico.release, so the REST API uses the release vocabulary the rest of the management plane already does. Internal db and workflow structs keep their field names. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> * refactor(controller): rename the OS profile to the release Nico payloads gain a release key. os_profile is still written alongside it and still read as a fallback, so a CWE predating the rename keeps reading and writing the value through a rolling upgrade or a rollback. No stored data changes. A later release backfills release from os_profile, then drops the mirror and the fallback. The os_profile Prometheus label is deliberately unchanged. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> * docs: follow the OS profile rename The request YAML in the workload-cluster guides named a field the API no longer accepts, and two troubleshooting entries quoted error text that no longer appears. The dashboard panel descriptions in operate/observe.md keep the old wording: the panels and the os_profile metric label they read are unchanged. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> * fix(scripts): read cluster NICo fields from .nico and allow an absent configProfile The cluster-level orgID, siteID and vpcID live under .nico in the API response, as the node pool fields already corrected do, so the script exited before generating anything. configProfile is optional in the same schema, and requiring it skipped a valid node pool. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> --------- Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> |
||
|
|
92a3039bae |
feat: default CNI to ovn-kubernetes (#1303)
* feat: default omitted CNI to ovn-kubernetes Empty cniPlugin and cniName now select ovn-kubernetes, and local images, examples, and create scripts follow that default. calico remains an explicit override. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix: build OVN packages outside the gitignored bin directory crane was installed into the package tree's bin directory, which a checkout sync can delete while the download is still running. Stage the tool in the build scratch directory and create its destination immediately before moving it. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(agent): complete pod checksums on the userspace datapath veth pods send partial checksums, and the netdev datapath forwarded them unfinished, so receivers dropped pod traffic to services and the node. Enable userspace TSO and restart ovs-vswitchd only when the setting changes. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(tilt): label the local NICo cluster button inputs The create dialog showed the defaults with no captions because text_input was called without label. Signed-off-by: Alex Greene <algreene@nvidia.com> * feat(controller): ensure host vTPM proxy for nico-containers on Linux Share ensure-vtpm-proxy.sh between Colima and bare Linux hosts, fail fast from Tilt and nico-sim when /dev/vtpmx is missing, and document the one-time host prep so remote Tilt targets do not hang waiting for kubeconfig secrets. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix: load the vTPM proxy on the kernel that runs Docker Container nodes need /dev/vtpmx. Without it, swtpm never starts and nke-agent blocks while setting up SPIFFE, so provisioning looks stuck. Colima already loaded the module inside its VM, but a Linux host never did. One script now does that load, and make host-up runs it on either machine. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(agent): keep an explicit OVN version when the plugin name is omitted Kubeadm init with no plugin name defaults to OVN, but a version sent with that request was discarded and 1.4.0 was installed instead. The requested version is used, and 1.4.0 is applied only when none was given. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(agent): retry userspace TSO after a failed ovs-vswitchd restart ovs-vswitchd reads userspace-tso-enable only at startup. A failed restart left the setting enabled, so the next attempt treated it as already applied and never restarted the daemon. The previous value is restored on failure so the restart is tried again. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(hack): install the CNI image package selected for a Forge sample cluster The Forge sample accepts CNI_PLUGIN=calico, but both node pools always installed the OVN image package. The pre-kubeadm commands now install the Calico images for Calico and the OVN images for OVN. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix: rebuild CAPD OVN assets when any package is missing capd-image skipped preparing OVN assets when the charts package was present and newer than the script, even if the images or Helm package was gone. It now rebuilds when any of those packages is missing, and still rebuilds when the prepare script is newer than the charts package. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(hack): fail the nico-vms sample create on HTTP errors The create request returned success on a 400 or 401 because curl exits 0 unless --fail is set, and --fail hides the body. The response stays visible, and the script now exits from the HTTP status. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(hack): check the vTPM device in the configured Colima profile The macOS check ran colima ssh without a profile, so a non-default COLIMA_PROFILE could be reported missing or present against the wrong VM. The device checks now use the same profile colima-start.sh prepares. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix: default each CAPD OVN package path on its own Setting CAPD_CNI_CHARTS_DEB_PATH skipped the images and Helm packages, so the node image was built without them. Each path is filled in when it is unset, and each one is checked before the image build. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(agent): run container nodes on the kernel Open vSwitch datapath Userspace Open vSwitch encapsulates Geneve but has no port that can emit it, so traffic between container nodes is dropped. Container nodes now load the host kernel module and keep the dummy gateway bridge. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix: drop the duplicate /lib/modules mount from CAPD nodes Kind already bind-mounts the host module tree read-only, so listing it again in extraMounts makes Docker reject the node container. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(cli): load the vTPM proxy without sudo when already root The arm64 bootstrap runner executes the job as root, and its sudoers file rejects sudo from root, so the e2e died after the fake nodes were ready. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix: rebuild the CAPD Helm package when the OVN asset script changes The Helm freshness check compared prepare-ovn-assets.sh with the charts package, so a newer script could leave a stale nke-e2e-helm.deb in place. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(hack): create the sample CAPD cluster through controlPlaneConfig The local controller rejects control-plane node pools, so the sample script's node pool was rejected before a cluster was stored. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix: build the CAPD bundle mirror for the Docker daemon's architecture The legacy bundle path defaulted to amd64 OVN packages, so an arm64 daemon was served image debs it cannot install. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(agent): reject an unknown CNI plugin instead of installing OVN The empty-plugin default already lives in the kubeadm init helper. The installer was also rewriting a typo to ovn and mutating the request. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix: rebuild the CAPD OVN images package when the asset script changes The images freshness check compared prepare-ovn-assets.sh with the charts package, so a newer script could leave a stale images deb in place. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(api): waive omitting cniPlugin on cluster create An omitted plugin selects ovn-kubernetes. Clients built against the published spec were required to send the field, so the compatibility gate needs a named waiver. Signed-off-by: Alex Greene <algreene@nvidia.com> * fix(hack): target the configured Colima profile for VM setup SSH, stop, and the failure hints used Colima's default VM, so a non-default profile never received the vTPM module or the Docker limits. Signed-off-by: Alex Greene <algreene@nvidia.com> * docs(agent): note that bare metal also uses the kernel datapath The container check keys off NKE_OVS_DATAPATH_TYPE. An unset variable keeps bare metal and VM nodes off the dummy-bridge path even though they run the kernel datapath. Signed-off-by: Alex Greene <algreene@nvidia.com> --------- Signed-off-by: Alex Greene <algreene@nvidia.com> |
||
|
|
59fbffc8bb |
feat(e2e): run the Forge site controller lane in GitHub Actions (#1152)
* feat(e2e): add the nico-forge tenant backend The suite has three backends and all of them are simulators. This adds a fourth that runs on real Forge infrastructure, so a qualification run can create a tenant cluster the way a customer does. It builds the same CAPI manifests nico-containers builds. CAPNico reconciles both, so buildNicoRequest is now a thin caller of a shared builder and the two backends differ in what they name rather than in how they ask. The manifests follow hack/create-forge-nico-cluster.sh, the one path known to have created a cluster on this site, which is also where the identifiers come from. Two payloads are the real difference. A container reaches kubeadm whatever its iPXE script says and needs no packages, so both were hardcoded stubs; a Forge instance boots the script it is given and comes up with only what it was told to install. Both are now templates, and both name component versions, which is why a nico-forge run has to be told what it is qualifying. Three flags carry that. -e2e.environment names infrastructure that exists and has no default, since a site and a VPC cannot be inferred. -e2e.versions pins what is under test. -e2e.capabilities says what the run needs, and the environment's instance types answer it, so the machine is chosen by what the run requires rather than pinned in the table. Capability matching does not fall back: a site with no GB200 fails a GB200 request instead of running it on an L40 and calling that qualified. No control-plane VIP. CWE reads an empty one as "do not configure kube-vip", which is what the working Forge script relies on, so initCluster now skips the VIP search for a backend that declares no preference. The simulator backends advertise theirs over a BGP speaker the runner hosts and are unchanged. The entry is opt-in behind the nico-forge label and provisioning-only. Create, node readiness and delete are what a first run on hardware has to get through before a deeper assertion is worth attempting, and unlike every entry above it this one spends real money. Signed-off-by: Ron Compos <rcompos@nvidia.com> * docs(e2e): say what a Forge SSH key group actually governs forge.yaml and the Site field said nothing about what sshKeyGroupID does, and the obvious reading is the wrong one: SADD 3.5.3 passes the same field to CreateInstance beside a wait-for-SSH step, which invites reading it as access. A key group governs Serial-over-LAN console access, not the OS account's authorized_keys, so attaching one grants no shell on a node. That comes from the account baked into the image, or from an authorized_keys written by cloud-init. Nothing here logs into a tenant node; the field is carried for parity with what a Forge node normally gets. Comments only. Carried over from the retired feat/e2e-forge-tenant branch, which is the one thing on it not superseded by this one. Signed-off-by: Ron Compos <rcompos@nvidia.com> * fix(e2e): point nico-forge at the Forge site that has actually worked The environment file named a site taken from create-forge-nico-cluster.sh, whose defaults arrived with the original cloud-workflow-engine import and have never changed. Nothing records a cluster ever being created there; the only evidence it exists is a comment preserving one instance-type list. Two recorded provisioning exercises used az61 in Forge-Tenant-RelEng instead, and between them built a site controller and three tenant clusters that all reached CoreDNS Ready. The file now carries az61's site, VPC, subnet and key group, and the two instance types that have each carried a tenant. This also means the site key is a real name rather than "default", and that az61 has no GB200 while ytl does. The same exercises caught two omissions in the pre-kubeadm payload. It installed nke-cni-ovn-images but not nke-cni-ovn-charts, which the agent requires to be present already and never installs itself, and it never installed openvswitch-switch, which OVN needs on the host before the agent will run helm. Either one fails InstallCNI, and that failure terminates the provisioning workflow rather than retrying, so the node has to be reset and the run repeated. The payload now installs all three and the test asserts each by name. Two smaller things. The Kubernetes default was the container simulator's 1.34.2, which decided which nke-kubeadm-distro package the payload asked for; it is now 1.36.3, beside the existing CNI and SPIRE defaults, matching what az61 ran. And the table entry carried a "happy-path" label alongside "nico-forge", which put it inside test-e2e-happy-path -- a target whose own help text says CAPD and NICo VMs, and which a developer runs expecting a simulator rather than real hardware. Signed-off-by: Ron Compos <rcompos@nvidia.com> * feat(e2e): provision a site controller node on Forge Add the SADD 3.5.3 contract (internal/infra) and its Forge implementation on the vendored ncx-infra-controller-rest SDK. ProvisionNode matches an instance type from the site's declared capabilities, reads the tenant from GET /tenant/current, and creates the instance with phone-home disabled, since new instances cannot reach the metadata endpoint. It polls by id until Ready, dials through the site's jump host until the node answers, and holds until cloud-init reports done. Any failure after create deletes the instance on a detached context, and Session.Teardown deletes it too. The bootstrap node's cloud-init is marshaled rather than templated. It authorizes a per-run ed25519 key, starts the bundled containerd, and installs nerdctl-full, kind and clusterctl at the repository's pins, plus the IPv4-only kind network. The jump-host transport is an interface; its implementation follows. Also add jumpHost to the Forge environment schema (SADD 3.5.2) and let callers set the node agent's arguments, so --disable-mtls can agree with the bootstrap flags. Signed-off-by: Ron Compos <rcompos@nvidia.com> * feat(e2e): reach Forge nodes through the site jump host Add internal/infra/teleport. tsh ssh to the site's jump host runs a byte relay to the node's sshd (nc, or bash /dev/tcp where nc is absent), and the runner negotiates SSH with the node itself using the per-run key. The jump host holds no credential for the node, and forwards ride the node's own sshd rather than Teleport port forwarding. The first host key a node presents is pinned per address and client key. Run returns combined output and kills the command on cancel; Put and Fetch act as root through sudo, Put writing beside the target and renaming. The Forge provider takes the transport through a Teleport adapter, and Target moves to the teleport package. Signed-off-by: Ron Compos <rcompos@nvidia.com> * feat(e2e): bootstrap and deploy a site controller on a provisioned node Add internal/site, which turns a provisioned machine into a site controller over the provider's session: - Bootstrap stages nkectl, a checkout subset and image archives onto the node, generates the site spec, runs nkectl bootstrap site as root, hands off to a Deployer, forwards the API server, and waits for CWE to report healthy at the expected version. The forwarded kubeconfig keeps the node address as tls-server-name, since the API server certificate does not cover loopback. - SBOM is a Deployer for the nke-sbom deploy path: untaint, clusterctl init and a default StorageClass before, apply-capi-spiffe-exec-auth.sh after, and the per-site values and BootstrapConfig rendered in Go. Credentials go into root-only files on the node, removed afterward. - SweepTenants deletes every tenant through CWE before the site is released. - ExportRef stages the deploy path from a pinned commit while it exists only on its pull request (#812). Signed-off-by: Ron Compos <rcompos@nvidia.com> * feat(e2e): build a site controller on Forge and run a tenant against it Add the site lane (label site-controller). -e2e.site-stage picks how far it goes: provision a Forge node through the site's jump host, bootstrap the site controller with nkectl, or also deploy the SBOM stack and run the nico-forge tenant specs against the site it built. The node is torn down afterwards, tenants first, unless -e2e.keep-site or preserveOnFailure keeps it. Without a stage the lane is skipped. The tenant specs now take the management cluster from a resolver, so the same subtree runs against the configured kube context or a site the suite built. The existing spec tree is unchanged. Site inputs are identifiers in the suite config (site:); secrets come only from FORGE_API_KEY, GHCR_USERNAME and GHCR_TOKEN. The jump host is configured per run and the Teleport proxy is left to tsh, so neither is checked in. `make site-inputs` builds nkectl and the image archives the lane stages, outside the clone. Also check the SBOM deployer's values against the pinned deploy path's charts offline, and clear the goconst and unparam findings in internal/site and internal/infra/teleport. Signed-off-by: Ron Compos <rcompos@nvidia.com> * feat(e2e): run the Forge site controller lane in CI, over a password jump host Adds the workflow that drives the site controller lane on real Forge hardware, and an interim way to reach the jump host until it is enrolled in Teleport. SSHJumpHost logs into the jump host with a password and asks its sshd to forward, replacing only teleport.Dialer's relay: the session to the machine beyond it is still negotiated on the runner with the ed25519 key the run generates, so no node ever sees a password. The route is selected by JUMP_HOST_PASSWORD being set, which makes enrolling the jump host later a matter of dropping the secret. The host key is pinned by SHA256 fingerprint when site.jumpHostKey- Fingerprint is set, and accepted with a warning on every dial when it is not -- unpinned means the password is offered to whatever answers. The workflow is workflow_dispatch only, serialised repository-wide and never cancelled: a run holds a bare-metal instance for an hour and teardown is the suite's, so a killed runner leaks hardware. * ci(e2e): probe the Forge lane's network path from an ARC runner Three things the site controller lane depends on have never been tested from an ARC runner: reaching the Forge API, reaching the Teleport proxy, and reaching the jump host's sshd. The last one also decides whether the interim password route is possible at all, since the documented procedure only ever reaches that host through tsh. Reports rather than fails, because a red result is the finding. Takes no secrets. Prints the jump host's SHA256 host key, which is the value site.jumpHostKeyFingerprint wants, and asks sshd which authentication methods it accepts without offering one. Carries a scaffolding push trigger: workflow_dispatch reads its trigger from the default branch, and the probe exists to answer these questions before anything merges. * ci(e2e): re-run the Forge connectivity probe with the jump host and proxy set * ci(e2e): probe on every push to the branch, not only on its own edits * test(e2e): probe the Teleport route end to end, not just the proxy * fix(ci): install tbot, which teleport-actions/auth shells out to * ci(e2e): default the Forge site lane to Teleport, and record what the probe measured * ci(e2e): drop the dead password route and let a labelled PR run the lane Signed-off-by: Ron Compos <rcompos@nvidia.com> * test(e2e): probe the OS image URLs the node boots from Signed-off-by: Ron Compos <rcompos@nvidia.com> * test(e2e): prove tbot daemon renewal against nv-prd-dgxc Signed-off-by: Ron Compos <rcompos@nvidia.com> * ci(e2e): renew the Teleport identity with a tbot daemon instead of one 2h cert Signed-off-by: Ron Compos <rcompos@nvidia.com> * ci(e2e): pull from GHCR with the job token, as every other workflow does Signed-off-by: Ron Compos <rcompos@nvidia.com> * chore(e2e): drop the #812 fetch now that the deploy path is on main Signed-off-by: Ron Compos <rcompos@nvidia.com> * fix(e2e): pin a node's host key only after a handshake succeeds waitReachable polls a Forge node for 20 minutes while it is being imaged, and several different sshds answer on its address in that window: whatever is left on a recycled address, the imager, then the installed OS. The pin recorded the first host key any of them presented, from the callback, which runs before authentication -- so the first connection to fail auth still pinned a key, and every attempt after the real image booted was refused for the rest of the run. Run 35953715491 spent its whole 20 minutes that way. Commit the pin from Dial instead, after ssh.NewClientConn returns cleanly. That keeps what the pin is for, refusing a substitution mid-run, and adds a property it did not have: the key is generated per run and placed by cloud-init, so a completed handshake is evidence the machine that ran this run's cloud-init answered, not a leftover OS at the same address. Signed-off-by: Ron Compos <rcompos@nvidia.com> * fix(e2e): stage the deploy path from the commit under test DeployPathRef was the head commit of pull request 812, staged that way while the nke-sbom deploy path existed only there. 812 was squash-merged, so that commit is on no branch, and the previous commit removed the refs/pull/812/head fetch that used to put it in the runner's clone. Both the bootstrap and full stages call ExportRef, so the next run of either would have failed in seconds on a fresh checkout. HEAD is what the comment always said this should become. On a pull_request run that is the merge commit, which is the deploy path under test; config's deployPathRef still overrides it to stage an older one against a newer suite. Signed-off-by: Ron Compos <rcompos@nvidia.com> * fix(e2e): build the site lane's CWE from the checkout, not a published tag nkectl is built from the checkout and is a client of the CWE it bootstraps, so the two have to come from one commit. A published tag cannot give that today: GHCR carries release tags only and its newest, v0.1.1-rc.8, is 43 commits before #850, which removed infra.spireAttestationMethod from the cluster API. Run 35999250795 got through the kind cluster, postgres, Temporal, SPIRE, CAPI and a healthy CWE before failing on the first API call with 400 Bad Request: infra.spireAttestationMethod is required. controller/deploy/nke-sbom/controller/overlay.yaml had already hit this and pinned an NVCR per-commit tag to get around it. site-inputs now builds the image with controller's docker-build-local, which is vendored and needs no credential, and the workflow tags it with the commit under test. One value feeds the archive staged onto the node, the NKECTL_CWE_IMAGE the bootstrap runs, and the tag the SBOM deploys, so the bootstrap CWE and the site controller are the same binary. Not git describe for the tag: a CI checkout is shallow and carries no tags, so it would report v0.0.0 and stop being unique. Naming controller-version still pulls that published tag, for qualifying a release past #850. Signed-off-by: Ron Compos <rcompos@nvidia.com> * fix(e2e): give the controller image build a GIT_VERSION under GitHub Actions The controller Makefile takes GIT_VERSION from CI_COMMIT_SHA whenever CI is set. That is GitLab's variable. Under GitHub Actions CI is set and CI_COMMIT_SHA is not, so GIT_VERSION was empty and docker-build-local died on one of its own tags: ERROR: failed to build: invalid tag "nvcr.io/j7sbcjl3qgta/nke-controller:" image-nvcr.yml already passes GITHUB_SHA for this; site-inputs now passes the commit it builds from, which also stamps the binary correctly. Signed-off-by: Ron Compos <rcompos@nvidia.com> * fix(e2e): bootstrap the site without mTLS, and keep the node's diagnostics Run 36016817952 created the site cluster and then watched it sit in Provisioning for the full thirty minutes with no error. Two lines say why: SPIRE installed with tpmThumbprints=0, and the node reported an empty tpmEkThumbprint. That is the production SPIRE path without the one input it needs -- with no thumbprint nkectl deploys no TPM attestor at all, so the node agent can never attest and CWE can never drive kubeadm on it. The procedure that has actually built a site on az61 takes the other path on both sides, --disable-mtls in the agent's arguments and on the bootstrap. site.disableMTLS now decides both, in one place, because a mismatch between them surfaces as an opaque TLS handshake error. SPIRE and TPM are still exercised: the deploy path turns them on, which is the full stage. That run also lost everything nkectl collected. It writes cluster diagnostics on the node, the node is released minutes later, and nothing copied them off -- 48 minutes of hardware and no evidence from the cluster side. CollectDiagnostics tars them and the spec pulls them into the run artifact on failure, best effort, on a detached context so a spec that timed out can still use it. Signed-off-by: Ron Compos <rcompos@nvidia.com> * ci(e2e): keep the site lane's log when the run is green go test buffers a passing package's stdout and discards it, so run 36033032946 -- the first bootstrap to succeed on Forge hardware -- uploaded a 1.7 KB artifact with no Ginkgo output in it. The upload step describes a green run as the reference for diagnosing the next red one, which needs the run to have been kept. Signed-off-by: Ron Compos <rcompos@nvidia.com> * test(e2e): collect the node's diagnostics when a tenant fails too Only the bootstrap spec collected them, which was enough while the lane stopped at bootstrap. The full stage runs tenants against the site it built, and a tenant that never reaches Ready is a failure of that site's control plane -- whose evidence leaves with the node that teardown releases moments later. Collection is idempotent, so the bootstrap archive still wins when both paths run: it was written closest to the failure. Signed-off-by: Ron Compos <rcompos@nvidia.com> * ci(release): record what each publisher published, by digest Precondition for assembling a release candidate: every artifact has to be addressable by a digest that outlives the run that made it. The plan assumed the publishers already computed digests and discarded them into step summaries, so this would be a matter of promoting an existing value to a job output. Reading all fifteen, that is true of two. image-nvcr and image-provisioned-nvcr compute per-arch and index digests; agent-artifact parses one from oras and keeps it only long enough to build an index. The other nine capture no registry digest at all -- the cli, chart and nvcr publishers push and record nothing but success. So this resolves rather than parses. One mechanism covers images, OCI artifacts and Helm charts alike, because at this layer they are all manifests behind a reference, and it avoids teaching the release layer the output format of three different clients. It is also the stronger claim: a parsed digest is what the client said it pushed, a resolved one is what the registry will serve the next consumer, and those differ exactly when something is wrong. Two adopters here, one of each kind. image-nvcr had the index digest and no way to keep it. chart-publish had nothing, and needed a docker login as well, because helm writes its own registry config where crane cannot see it. Signed-off-by: Ron Compos <rcompos@nvidia.com> * ci(release): record digests from the remaining seven publishers Completes the digest capture started for the controller image and its chart. Nine components are now addressable by a digest that outlives the run that published them. Three things the remaining publishers forced: The recorder takes a list of references, not one. The CLI publishers tag by OS and architecture and build no index, so four references are one component with no single manifest to point at; a candidate pinning only linux/amd64 would claim a coverage it does not have. Both helm publishers and the nktp one needed a docker login added. helm registry login writes helm's own config, which crane cannot see, so the existing login left the recorder unauthenticated against a registry the job had just pushed to. The component carries the destination wherever a job has a matrix. The nvcr chart and cli publishers each run twice over nke and dsx, and two legs uploading the same artifact name collide. nktp is worth calling out: its checksums.txt hashes the local archive, and its reuse branch can publish nothing at all, leaving a checksum of a file that was never pushed. The record says what GHCR actually serves on both branches. Signed-off-by: Ron Compos <rcompos@nvidia.com> * fix(e2e): build the CWE with a version it will report back Run 36045936723 deployed the whole stack on Forge hardware and then failed on CWE reports version "cd95099", want "cd9509990c8f" which is one commit written two ways. GIT_VERSION only names the image. BUILD_VERSION is what the ldflags bake into version.Version, so it is what the running CWE answers with, and the site lane was setting only the first. Left alone the controller Makefile derives BUILD_VERSION from `git describe --always`, which abbreviates to seven characters on a checkout with no controller/v* tag within reach. Also stops reporting an absent diagnostics directory as a failure to collect diagnostics. nkectl writes that directory when it fails, so its absence is the ordinary case -- here it meant the deploy had worked -- and the error sent the reader looking for a second fault that was not there. A directory that exists and cannot be archived is still an error, and now a distinguishable one. Signed-off-by: Ron Compos <rcompos@nvidia.com> * fix(e2e): relay the tenant API server through the site node Run 36051890151 brought up a working tenant cluster on Forge and then failed to look at it. CWE reported KubernetesReady for every desired node, and 0.6 seconds later the spec that confirms the same thing from the cluster side timed out on Get "https://10.91.194.69:6443/api": dial tcp ...: i/o timeout That address is the tenant's control plane VIP. It is reachable inside the site and not from a GitHub runner, so every tenant client in the Forge lane was dialing somewhere it cannot go. The site's own kubeconfig has been going through a tunnel since this lane was written; the tenant's never was. Forward now takes a host:port rather than a port. It always dialed through the site node, so it could already reach anything the node can, but hardcoding loopback left no way to say so. The site's own API server is still loopback and passes it explicitly. WithEndpointRelay substitutes a reachable address for each tenant API server and pins tls-server-name to the host the kubeconfig published, without which TLS fails verification instead of connecting. It hooks in at tenantRESTConfigAs, the single point both GetClient and GetAdminClient resolve an endpoint through, so all twenty-odd tenant specs are covered rather than just node readiness. Lanes that share a network with their clusters set no relay and are unaffected. Also raise the Forge tenant's delete timeout from 30 to 45 minutes. The same run failed the delete at 1800.306s while its instances were still reporting Terminating, which Forge takes 20 to 40 minutes to finish. That one was a budget, not a route. Signed-off-by: Ron Compos <rcompos@nvidia.com> * feat(e2e): record the run's resolved inputs as an artifact A green run says seven specs passed. It does not say what they passed against. The controller SHA, the OS image, the stage and where each of them came from are all in the job log, but only because Actions echoes every step's env block, and only until GitHub drops the log. The GitLab lifecycle pipelines solved this in their generate job, and for the same reason its comments give: a summary is worth having only if it reports what the run resolved rather than what its last editor remembered, and only if it outlives the log. So this collects the inputs once, into run-inputs.txt, uploaded beside site-e2e.log. Each value carries its provenance, because the same `full` can come from a dispatch input, a repository variable or the default, and which one it was is usually the question. The generated e2e-config.yaml is appended so the artifact stands on its own. The table would rot the first time someone adds an input and forgets a row, so it does not have to be remembered: the step scans the workflow for every inputs.* and vars.FORGE_* it references and fails if the table does not cover them. Signed-off-by: Ron Compos <rcompos@nvidia.com> * feat(e2e): fail on an empty filter, and write JUnit, in the Forge lane backend-e2e-lib.sh has passed all three of these since it was written. This lane passes none of them, which was not a decision. fail-on-empty is the one that matters. A label filter matching nothing is otherwise a pass, and this lane spends half an hour of bare metal before its first assertion -- rename the site-controller label and the result is a green run that provisioned hardware and qualified nothing. That is the single result a qualification lane must be unable to report, and the SADD asks for the flag by name for this reason. junit-report gives the run a machine-readable statement of which specs it ran, beside the log a person reads. no-color stops Ginkgo's escapes from landing in an artifact; reading site-e2e.log currently means stripping them first. Signed-off-by: Ron Compos <rcompos@nvidia.com> * fix(e2e): stop waiting three times on one stuck tenant delete Run 36147423536 spent 112 of its 150-minute suite waiting on a single tenant that never deleted, and the suite timeout then fired inside the site teardown, before it released the Forge instance. The instance was still Ready two and a half hours later and had to be deleted by hand. Three waiters, each with a full budget, on the same cluster: deletes the cluster spec 45m tenant_test.go tenant AfterAll 45m tenant_test.go site AfterAll sweep 22m cut short by the suite timeout The second was the bug. deleted is set only after the wait succeeds, so a wait that timed out left it false and the AfterAll ran the identical delete-and-wait again. Track that the delete was requested and waited separately from whether it succeeded, and skip the repeat: the cluster is not moving, and the time belongs to the site teardown. The sweep budgets were the other half. At 40 minutes inside a 45-minute NodeTimeout they left the site release five minutes, so a slow sweep starved the one step that must not be skipped. A leaked site is worse than a leaked tenant -- it is the larger instance, and its CWE is the only thing that can still delete the tenants. Raising the delete budget would not have helped: the tenant did not go in 112 minutes, so it was stuck, not slow. Signed-off-by: Ron Compos <rcompos@nvidia.com> * docs(qualification): document the hardware qualification lane The lane had no entry point. Someone arriving at docs/qualification found three reference pages and nothing telling them what the lane is, what it proves, or what it does not. overview.md is that front door: qualification against CI lanes, the four layers, how a run is triggered, the three stages and what each costs, the artifacts a run leaves, and a plain statement of what is qualified today and what is not. The other three are the references it points at. hardware-lane.md explains how each layer actually works, environments.md the schema and capability matching behind environments/forge.yaml, and triage.md how to tell a failure of ours from a failure of the site -- including the DHCP signature that cost a day to recognise the first time. Indexed in docs/README.md, which is the index of record. Signed-off-by: Ron Compos <rcompos@nvidia.com> * ci(e2e): remove the Forge connectivity probe scaffolding The probe existed to answer four questions before anything merged: whether the ARC fleet could reach the Forge API and the Teleport proxy at all, whether the documented password jump-host route worked, and whether the join token would mint a certificate for a feature branch. All four are answered, and the site lane has since run green on hardware end to end, which answers them more convincingly than the probe did. Its own header said SCAFFOLDING -- remove before merge, and its triggers were the scaffolding: push on this branch, because workflow_dispatch reads its trigger from the default branch and the probe had to run before it was there, and pull_request on main, because the join token accepts refs/pull/*/merge but no feature-branch ref. Both fire on every push, so the probe has been adding two check runs per commit to a pull request that no longer needs it. Signed-off-by: Ron Compos <rcompos@nvidia.com> * DCO Remediation Commit for Ron Compos <rcompos@nvidia.com> I, Ron Compos <rcompos@nvidia.com>, hereby add my Signed-off-by to this commit: |
||
|
|
b6a25000fa | refactor(restapi)!: nest provider fields under nico and infra payload (#246) | ||
|
|
7ce92b69ce | feat: import cloud-workflow-engine (#7) |