mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
* test(mokka-demo): add a demo of simulated GPU nodes with Mokka hack/mokka-demo/demo.sh gives an NVKE workload cluster GPU nodes without GPUs and checks the GPU stack on them: a node pool whose nodeLabels select Mokka (nvml-mock), Mokka on that pool only, GPU Operator with values that let Mokka stand in for the driver, and a pod that requests a GPU. It copies an existing worker pool's provider settings, reads the workload cluster's kubeconfig through nvkectl, and prints PASS or FAIL per check. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(mokka-demo): let the demo name its Mokka release MOKKA_RELEASE sets the Helm release name for Mokka, so two runs with different GPU profiles and node labels can share a cluster. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(mokka-demo): wait for the GPU Operator validator to finish The validator's last step can still be running when a node first advertises its GPUs, which failed the check on a node that passed moments later. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(mokka-demo): tighten the validator check and the clean-up steps The validator wait gets its own deadline instead of what the GPU wait left, and passes only when every validator step exits 0: a termination reason such as ContainerStatusUnknown is not success. The README's clean-up now points kubectl and Helm at the workload cluster and uses the configured Mokka release name. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * ci(mokka-demo): run the demo on a CPU runner A new lane, mokka-demo-e2e.yml, runs hack/mokka-demo/demo.sh on a linux-amd64-cpu16 runner, without GPUs. It brings up the CAPD stack with the local entrypoint, which LOCAL_NKE_E2E_DEPLOY_ONLY now stops before its suite, then hack/mokka-demo/ci.sh forwards the NVKE API, points nvkectl at it, creates a CAPD workload cluster from cli/examples/capd-cluster.yaml and runs the demo. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(e2e): run the Mokka checks as a CAPD entry Replace the standalone Mokka lane (mokka-demo-e2e.yml, ci.sh and the local entrypoint's LOCAL_NKE_E2E_DEPLOY_ONLY) with a "CAPD Mokka" entry in the tenant table, so the checks run through the existing E2E entrypoints and label filters. The entry has one control-plane node and one worker pool whose node labels select Mokka (nvml-mock). Its mokkaGPU validation installs Mokka and GPU Operator with helm, then asserts the ClusterPolicy is ready, exactly the labeled nodes advertise nvidia.com/gpu, the GPU Operator validator's steps all exit 0 on each, and a pod limited to one GPU lists one. The entry carries the capd label, so full CAPD runs select it, and a mokka label, which the pull-request mirror filter now adds: it costs about six minutes on a CPU runner. CAPD pools can now carry node labels. The GPU Operator values move into the e2e module's testdata so the suite embeds them and demo.sh keeps using the same file. The local entrypoint copies the host's helm into its runner, as the CI entrypoint already does. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(e2e): run the Mokka checks on the CAPD core cluster Drop the separate CAPD Mokka entry, which added a second cluster and about six minutes to the pull-request lane. CAPD core's worker now carries the Mokka label, so the checks add only their own two minutes and the lane's label filter is unchanged. Reuse gpuPod and sitePoll, wait at most five minutes per check, fix a double count of the expected nodes after a failed connect, and turn off dcgm-exporter, which nothing reads. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(e2e): ignore a validator pod being deleted; keep GPU Operator for other Mokka releases A validator pod that is being deleted could pass the check while its replacement is still running. The demo's clean-up removed GPU Operator first, which takes GPUs away from any other Mokka release on the cluster; it now goes last, with a note to keep it while another release remains. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(mokka-demo): ignore a validator pod being deleted As in the e2e check: a validator pod being deleted could pass the demo while its replacement is still running. Signed-off-by: Benjamin Kero <bkero@nvidia.com> --------- Signed-off-by: Benjamin Kero <bkero@nvidia.com>