Skip to navigation

nvcrectl certification

View as MarkdownOpen in Claude

nvcrectl certification run

Applies a Certification manifest (or runs categories by flag), waits for completion, prints a report, and optionally cleans up.

nvcrectl certification run --cert-file <file> [flags]
nvcrectl certification run --category communication/nccl-all-reduce [flags]

Flags

FlagDefaultDescription
--cert-file—Path to a Certification YAML (mutually exclusive with --category)
--category—Category in domain/variant format; repeatable (mutually exclusive with --cert-file)
--nameautoCertification name (default: nvcrectl-<timestamp>)
--setupfalseInstall CRDs, controller, and LogProfiles before creating the certification
--image—Controller image for --setup (default: ghcr.io/nvidia/cluster-readiness-engine/manager:<version>)
--waitfalseBlock until the certification completes and print a report
--timeoutderivedTimeout for --wait. Ignored without --wait. When --wait is set, must be at least 1s. When not set, derived from the selected categories’ timeoutPerJob budgets (max across categories × iterations × 1.5), floored at 30m; the CLI prints the derived value when the watch starts. The catalog’s timeoutPerJob defaults are 1h for the communication entries and 24h for the two training entries, so a training category derives a 36h wait on its own. Pass --timeout (or set timeoutPerJob on the category) in pipelines that need a tighter bound. An explicit value always wins. On timeout, the CLI prints a partial report and leaves the Certification running unless --cleanup is set.
--cleanupfalseDelete the certification, namespace, and installed components after completion
--grant-run-accessfalseWith the chart’s rbac.scope: namespaced, create the RoleBinding that grants the controller write access in a namespace that already existed. Namespaces this run creates are granted without it. See Controller access to the run namespace
--nodes-per-job0Nodes per job (0 = auto-select)
--gpus-per-node0GPUs per node (0 = auto-detect from GPU architecture)
--network-attachmentsnoneMultus networks and their extended resources as network=resource,... in interface order (for example nvcre/r0=nvidia.com/r0,nvcre/r1=nvidia.com/r1); sets spec-level networkAttachments. Incompatible with --cert-file and with the pair below
--multus-networksnoneMultus networks to attach, in order; zipped by position with --extended-resources into networkAttachments entries. The two lists must be the same length
--extended-resourcesnoneExtended resources to request on worker containers, one per --multus-networks entry, in the same order; each must be the resource that network’s NetworkAttachmentDefinition declares
--enable-checkpointfalseEnable checkpoint storage for training workloads
--enable-mnnvlfalseEnable Multi-Node NVLink (NCCL_MNNVL_ENABLE=1)
--max-steps0Max training steps for NeMo 4 workloads (0 = catalog default)
--exit-duration-mins0Training duration in minutes for NeMo 6 workloads (0 = catalog default)
--startup-stall-timeout-seconds0Startup-stall window in seconds for training workloads (0 = catalog default; negative values are invalid). Incompatible with --cert-file, including explicit 0; set a positive spec.startupStallTimeoutSeconds or spec.categories[].options.startupStallTimeoutSeconds in the Certification YAML instead.
--repeat-count0Orchestration iterations to repeat tests (0 = catalog default)
--max-restarts0Maximum checkpoint restarts for training workloads (0 = catalog default)
--storage-class—StorageClass for PVC dependencies created by catalog entries
--results-file—Write the certification report as JSON to this path (requires --wait)
--results-bundle—Write a verifiable result bundle to this directory, including per-component result rows as NDJSON (requires --wait)
--junit-file—Write the certification report as JUnit XML to this path (requires --wait)
--controller-pull-secret—Token for controller registry auth during --setup (e.g. GitHub PAT for ghcr.io) — separate from workload image credentials
--workload-registry—Registry server for workload image pull (e.g. nvcr.io, ghcr.io) — required when --workload-registry-password is set
--workload-registry-username—Registry username for workload image pull (e.g. $oauthtoken for NGC) — required when --workload-registry-password is set
--workload-registry-password—Registry password or API key — creates an nvcrectl-pull-<name> imagePullSecret in the namespace, deleted automatically when the Certification is deleted

Controller access to the run namespace

With the chart’s rbac.scope: namespaced, the controller can write only in namespaces that have a RoleBinding granting it nvcre-run-role (ADR-092). Before creating the Certification, run makes sure the run namespace has one:

  • A namespace this run created (the generated nvcrectl-<timestamp>, or a -n namespace that did not exist yet) gets the binding automatically. Deleting the namespace removes it.
  • A namespace that already existed gets it only with --grant-run-access. Without the flag, run stops before submitting anything and prints the binding, so a shared namespace never becomes a standing grant by accident. A binding --grant-run-access created is deleted by --cleanup once the Certification is fully gone and no other Certification, WorkloadRun or Workflow is left in the namespace or recently adopted the binding, because the controller’s finalizers need it until then; a binding kept for another run stays for you to delete once no run needs it. Without --cleanup it stays, and run says so.
  • A binding that already exists, from rbac.runNamespaces, another run, or applied by hand, is used and never deleted.
  • The binding is created only after the pull secret, right before the Certification, so a run that fails earlier leaves no binding behind.
  • If you cannot read the cluster-scoped nvcre-run-rolebinding and nvcre-run-role, run cannot tell which scope is installed. It submits with a warning instead of stopping, and does not create a binding whose subject it cannot read from nvcre-manager-rolebinding.
  • Adopting a binding another nvcrectl run created marks it as in use, so that run’s cleanup does not delete it before this one is submitted. If you are not allowed to mark it, which is the case with the default edit role, run warns and submits anyway; in the rare case the other run’s cleanup deletes the binding first, your run waits for access and then fails, naming the binding. A binding from rbac.runNamespaces or applied by hand is never deleted by a run’s cleanup.

Under rbac.scope: cluster, the default, none of this applies and nothing is printed. Creating the binding uses your own credentials, which need every permission in nvcre-run-role within the namespace (a namespace admin has them), or bind on clusterroles/nvcre-run-role. See RBAC requirements.

When --wait reaches its timeout, the command prints the Certification’s current report, writes it to --results-file when requested, and exits with a timeout error. Without --cleanup, the Certification continues running in the cluster; the timeout stops only the CLI watch. The timeout output includes commands to watch its progress, print an updated report, or stop it. nvcrectl certification report exits nonzero while the Certification is still running. With --cleanup, the partial report is produced before the Certification and its child resources are deleted.

Examples

nvcrectl certification run \
--cert-file certification.yaml \
--wait

Pull workload images from NGC:

nvcrectl certification run \
--category communication/nccl-all-reduce \
--workload-registry nvcr.io \
--workload-registry-username '$oauthtoken' \
--workload-registry-password "$NGC_API_KEY" \
--wait

nvcrectl certification render

Renders the Workflow manifests that would be created for a Certification, without applying them. Useful for inspecting override application and resource requests before running.

nvcrectl certification render [flags] <cert-file>

Flags

FlagDefaultDescription
--platformautoOverride platform detection (aws, gcp, azure, oci, onprem, togetherai, mistral, forge, nscale, akamai)
--gpu-archnoneGPU architecture for offline render, e.g. gb300 or the product name NVIDIA-GB300; an unknown architecture is rejected with the valid list. Use it for a DRA-only GPU stack whose nodes carry no nvidia.com/gpu.product label. Wins over the target nodeSelector’s label when set; cannot be combined with --dry-run, which detects the architecture from real nodes.
--fabricnoneNetwork fabric to render for: efa, ib, roce or tcpxo. Stands in for spec.fabric and is checked the same way: offline against the fabrics NVCRE renders on the target (AWS GB300 renders roce or efa), and under --dry-run also against the discovered nodes, where a mismatch is an error. Your kubeconfig needs list on resourceslices.resource.k8s.io for the RoCE check; when that list is refused, the value is rendered unchecked with a warning, since the controller checks it with its own service account. Unset, offline render uses the platform default (roce on AWS GB300) with one EFA device per worker on an EFA fabric, and --dry-run detects the fabric and the EFA count as the controller does. See Network fabric
--dry-runfalseValidate against the live API server without creating resources. Also discovers the target nodes, so NIC resource detection (on-prem GB200/GB300 and HGX B200/B300), GKE TCPXO network detection and TCPXO plugin version detection (GCP H100) run as they do in the controller and report what they found on stderr. So does OCI RDMA network detection for a Workflow that attaches that network. It lists NetworkAttachmentDefinitions in every namespace; if that list is refused, or if --platform oci is given for nodes that are not on OCI, it warns and renders network-operator/sriov-net, and any other detection failure fails the render. Plugin version detection lists kube-system pods, so it needs that permission.
--outputyamlOutput format: yaml or json

A Certification that sets spec.gangScheduler has that applied to the rendered output too: the scheduler name and the queue label (gangScheduler.queueLabelKey, kai.scheduler/queue when unset; runai/queue on a Run:ai cluster) appear in the rendered manifests on the submitted workload object, on the Job template, and on the pod template metadata, so what you inspect matches what the controller creates. There is no flag for it; the field is set in the Certification YAML.

Each rendered Workflow carries annotations that record how overrides were matched: nvcrectl.nvidia.com/detected-platform, nvcrectl.nvidia.com/detected-gpu-architecture, and nvcrectl.nvidia.com/applied-overrides, a JSON list of the overrides that matched, omitted when none did. nvcrectl.nvidia.com/detected-fabric records the resolved fabric where it chose the render: when spec.fabric or --fabric is set, or the target is AWS GB300. Offline, the platform and architecture come from --platform, --gpu-arch and the target nodeSelector; without --platform the render detects onprem and applies the on-prem overrides, or forge when the nodeSelector carries a Forge marker (nke.nvidia.com/site-name, or a kubernetes.io/hostname containing forge), which --platform onprem does not override. Pass --platform to preview a cloud target. With --dry-run they are detected from the discovered nodes, and --platform still wins over the detected platform.

nvcrectl certification report

Fetches a completed Certification from the cluster and generates a pass/fail report. Multiple names can be provided to combine them into a single report.

nvcrectl certification report <name> [<name>...] [flags]

Flags

FlagDefaultDescription
--results-file—Write the report as JSON to this file path
--results-bundle—Write a verifiable result bundle to this directory, including per-component result rows as NDJSON
--junit-file—Write the report as JUnit XML to this file path

--results-file and --junit-file must name different files. run rejects any of the three export flags without --wait, and on both run --wait and report, failing to write a requested file fails the command, so a zero exit means every requested file was written.

--results-bundle

A bundle is a directory, not a single document, and it exists so that per-component results can leave the cluster. Those rows are stored as gzipped NDJSON inside ConfigMaps, sharded to stay under the API server’s object size limit; nvcrectl resolves them, decompresses them, and writes plain files, so nothing downstream has to know that shape.

<dir>/
results.json the same document --results-file writes
components/<run>-<domain>-<variant>-<workflow>.ndjson one result row per line
truncation.json anything that was lost, and why
schema/component-row.schema.json a JSON Schema for one row
manifest.json written last: a sha256 per file, and a file count

manifest.json is what makes the directory verifiable, and it is written last so its presence means the write finished. A reader must refuse a bundle with no manifest rather than reading the directory anyway, must treat a manifest that does not parse or that disagrees with what is on disk as an error rather than a degraded read, and must hash every file it lists. The file count alone cannot catch a value edited in place, which is what the digests are for.

The command refuses to write a bundle at all when the shards it resolves do not match the counts the run sealed. A bundle short of its rows would still carry a manifest certifying it as whole, so a short result set has to fail the command rather than produce a smaller artifact. nvcrectl verifies the bundle it has just written before reporting success.

A final: false entry in the manifest means that category was still producing rows when the bundle was taken, and a non-zero truncatedRowCount means rows were lost before reaching a shard. Both are legitimate and both are reported on the command’s output, because neither is visible in a row count.

The JUnit file has one suite per certification and one test case per category. A succeeded category passes and a failed one is a <failure> with its reason. An unfinished category is an <error> while the certification runs, and a <failure> carrying the certification’s own failure reason once it has failed. A suite gets one extra certification case only when its categories do not show the result: a certification that failed before any category did, or one still finalizing after every category finished. An INCOMPLETE run, which exits 0, has no failures or errors; its suite lists excludedNodes and exclusionReason under <properties>. See ADR-108.

Bandwidth from a measurement that is not final (its Complete condition reason is anything other than JobSucceeded, for example LogsUnavailable after its Job was deleted) is shown as (provisional: <reason>) with a ? mark instead of ✓, carries provisional: true and provisionalReason in the JSON, and is never shown as passing; clique and category bandwidth show the lowest value across their groups.

nvcrectl certification list-categories

Lists all available catalog categories that can be used in a Certification.

nvcrectl certification list-categories [flags]

Flags

FlagDefaultDescription
--outputtableOutput format: table, yaml, or json