Skip to navigation

NVIDIA Infra Controller v2.4 — unreleased

These changes are merged into main and collected for v2.4. They are not included in v2.3.0. Review the compatibility and upgrade requirements below before deploying a build that includes them.

Expected Switch NVOS declarations

REST API compatibility exception

The Expected Switch primary-port change tracked in issue #7310 intentionally tightens the REST create and replace-all contracts:

  • POST /v2/org/{org}/nico/expected-switch requires a non-empty nvosInterfaces array.
  • PUT /v2/org/{org}/nico/expected-switch/all requires a non-empty nvosInterfaces array in every expectedSwitches entry. An empty top-level expectedSwitches array still clears the inventory.

Omitting a port set or supplying an empty one returns HTTP 400. This is a breaking-change exception: zero-port declarations cannot initialize successfully because Site Explorer no longer fills or overwrites operator-declared NVOS ports. Existing zero-port records are not repaired automatically.

Before deploying this change, update clients and inventory templates to send nvosInterfaces entries with macAddress and select the primary (eth0) port with isPrimary: true. REST defaults the first entry to primary if none is marked; a single port is always primary. For example, the port field can be:

{
"nvosInterfaces": [
{ "macAddress": "02:00:00:00:00:01", "isPrimary": true }
]
}

The deprecated nvosMacAddresses request field remains accepted but ignored regardless of its JSON value; it does not satisfy the new requirement. This also breaks clients that relied on that field to configure ports. Sending both fields is allowed, but only nvosInterfaces takes effect. PATCH requests may omit nvosInterfaces to preserve stored ports; an explicit empty array is rejected.

Client and inventory-file migration

Update automation that uses the old NVOS names:

SurfaceOld nameReplacement and behavior
REST requestsnvosMacAddressesUse nvosInterfaces objects with macAddress and isPrimary. The old field is ignored, including on PATCH; an otherwise valid legacy-only PATCH can succeed without changing ports.
REST responsesnvosMacAddressesRead nvosInterfaces for primary selection. Responses still include the deprecated flat nvosMacAddresses list; it has not been removed.
nico-admin-cli expected-switch add and update--nvos-mac-addressUse repeated --nvos-interface MAC[,primary] flags. Append ,primary to the eth0 MAC. The old flag has no alias and is rejected.
nico-admin-cli expected-switch replace-all JSONnvos_mac_addressesUse nvos_interfaces objects with mac_address and is_primary. An old-only file is rejected for missing nvos_interfaces before the replacement RPC is sent; it does not clear stored ports.

The CLI replacement file uses snake_case, not the REST API’s camelCase. Its top-level object contains an expected_switches array. Each entry requires bmc_mac_address, bmc_username, bmc_password, switch_serial_number, and a non-empty nvos_interfaces array. For example:

{
"expected_switches": [
{
"bmc_mac_address": "02:00:00:00:00:10",
"bmc_username": "admin",
"bmc_password": "REPLACE_WITH_BMC_PASSWORD",
"switch_serial_number": "SWITCH-001",
"nvos_interfaces": [
{ "mac_address": "02:00:00:00:00:01", "is_primary": true },
{ "mac_address": "02:00:00:00:00:02", "is_primary": false }
]
}
]
}

Protect this file because it contains credentials. is_primary defaults to false; if no entry is marked, the CLI selects the first port. More than one marked primary is rejected. The optional top-level expected_switches_count must equal the array length when supplied. Replacement removes records omitted from the file; {"expected_switches": []} clears the entire expected-switch inventory.

DPF provisioning: Site Explorer suppression

PR #7775 pauses periodic Site Explorer scans during DPF provisioning. Report-refresh requests are saved and return the cached report marked as pending. Periodic scans and queued refreshes run after all Site Explorer suppressions are cleared. Re-exploration requests are rejected rather than queued; operators must retry them after suppression clears.

Upgrade compatibility

Older nico-api binaries cannot decode suppression rows with source dpf_provisioning. While these rows exist, an older replica fails its Site Explorer suppression read and cannot complete exploration cycles.

Upgrade every nico-api replica before starting DPF provisioning. At sites already using DPF, plan an API maintenance window: stop all old replicas before starting updated replicas. The default rolling update can overlap old and new binaries and does not meet this requirement.

When upgrading from a version without this feature, machines already provisioning are not retroactively suppressed. Suppression is created when a managed host transitions from having no DPU in WaitingForReady or HandleReboot to having at least one DPU in either state. Existing suppression rows remain effective across restarts.

Downgrading to a binary without DPF suppression support

Stop all updated nico-api replicas first, so their controllers cannot recreate the suppression rows. Then run this statement against the NICo Core database before starting older replicas:

DELETE FROM bmc_suppressions
WHERE source = 'dpf_provisioning';

This preserves suppression rows owned by other workflows. Removing these rows clears the DPF exploration pause; it does not stop provisioning by the DPF operator.

NVLink partitioning remains opt-in, but a site deployed with the nico-api Helm chart now needs only nvlink_config.enabled = true. When the NMX-C TLS keys are unset, nico-api uses the client certificate that the chart mounts at /var/run/secrets/nvswitch-client, ca.crt from that Secret or else /var/run/secrets/nico-roots/ca.crt, and initial_domain_name as the TLS authority. For the authority default to work, initial_domain_name must match a DNS SAN of the certificate NMX-C presents; on RMS-managed switches that is RMS’s apiServer.dnsDomain.

Before upgrading

Certificate monitor now follows partitioning

nvlink_config.nmx_c_certificate_rotation.enabled previously defaulted to false. When it is unset, it now follows nvlink_config.enabled. A site that already sets nvlink_config.enabled = true without setting nmx_c_certificate_rotation.enabled starts the NMX-C certificate monitor after upgrading, and the monitor can request full-rack ConfigureNmxCluster maintenance when a served certificate enters its rotation window. To keep the previous behavior, set nvlink_config.nmx_c_certificate_rotation.enabled = false before upgrading.

NMX-C client certificate issued by default

The nico-api chart now enables nvSwitchTls.nicoClient by default and mounts its Secret into the nico-api Pod, so the Pod does not start until cert-manager issues the certificate. The certificate uses nvSwitchTls.issuerRef, which now defaults to global.certificate.issuerRef. The issuer and any cert-manager approver policy must allow the client auth usage and the URI SAN spiffe://<global.spiffe.trustDomain>/<namespace>/sa/nico-nmxc. To skip the certificate, set nico-api.nvSwitchTls.nicoClient.enabled: false.

REST API compatibility exception

The Site capability nvLinkPartition is now owned by Site configuration inventory, like flow and vpcSlaac:

  • PATCH /v2/org/{org}/nico/site/{siteId} rejects capabilities.nvLinkPartition with HTTP 400. Remove the field from Site update requests. It is no longer part of SiteCapabilitiesUpdateRequest in the OpenAPI spec or the Go SDK.
  • Core reports its effective nvlink_config.enabled setting, and the REST service copies it into the Site’s nvLinkPartition capability on each Site configuration inventory. An older Core that does not report the setting leaves the stored value unchanged, so existing Sites keep their current value.
  • New Sites start with nvLinkPartition = false until their Core reports the setting. A new Site managed by a Core without this change stays false, so NVLink logical partitions and VPC NVLink settings are rejected until Core is upgraded.
SettingChange
nvlink_config.allow_insecureDefaults to false when omitted instead of being required in [nvlink_config].
nvlink_config.nmx_c_certificate_rotation.enabledOptional. Unset follows nvlink_config.enabled; set it to run or stop the certificate monitor independently.
nvlink_config.nmx_c_tls_ca_cert_pathWhen unset and NMX-C is reached over HTTPS, defaults to the mounted client certificate’s ca.crt or else /var/run/secrets/nico-roots/ca.crt, regardless of the other TLS keys.
nvlink_config.nmx_c_tls_client_cert_path, nmx_c_tls_client_key_path, nmx_c_tls_authorityWhen allow_insecure is false and none of the four nmx_c_tls_* keys is set, default to the mounted client certificate and initial_domain_name. Setting any nmx_c_tls_* key disables these defaults.
nico-api chart nvlink.enabledNew. When set, rendered as nvlink_config.enabled in the base configuration; the site configuration takes precedence.
nico-api chart nvSwitchTls.nicoClient.enabledNow true by default. Empty uris derive the SPIFFE URI SAN from the trust domain and namespace.
nico-api chart nvSwitchTls.issuerRefEmpty by default; falls back to global.certificate.issuerRef.

Enabling NVLink partitioning on a rack with running instances removes the NMX-C default partition on the first monitor pass, so those instances lose NVLink connectivity until tenants configure NVLink partitions through NICo.

KMIP KEK provider

nico-api can wrap the data-encryption keys of its PostgreSQL credential store with a key held in a KMIP 1.4 server, as an alternative to Vault/OpenBao Transit. A kmip provider under [secrets.kms.providers] names the server endpoint, the mutual-TLS files, and the server key behind each kek_id. The key never leaves the server: nico-api sends only the per-record key to the server’s Encrypt and Decrypt operations, and at startup it verifies the protocol version, the operations, each key’s state and attributes, and a wrap and unwrap round trip. Rotation and migration from Transit use the existing routing and nico-admin-cli secrets re-wrap flow. No KMIP server product is qualified yet; qualification is tracked in issue #8658. Refer to KMIP KEK Provider.

New and changed configuration

SettingChange
[secrets.kms.providers.<name>] with type = "kmip"New provider type with endpoint, ca_bundle, client_cert, client_key, and keys, plus optional server_name, connect_timeout (5s, at most 60s), and request_timeout (10s, at most 120s).
nico-api chart extraVolumes, extraVolumeMountsNew, empty by default. Mount the Secret holding the KMIP client TLS material, or a file-backed Integrated key.
helm-prereqs NICO_KMIP_CLIENT_DIRNew, optional. setup.sh creates the nico-system/nico-kmip-client Secret from ca.pem, client.pem, and client.key in that directory before deploying Core, and preflight checks that a kmip provider’s TLS paths fall under a mounted Secret that exists, while a path under one of the chart’s own mounts, such as the site CA, is accepted as is. The TOML check needs Python 3.11 or later, or the tomli package.

Vault-free installation

Running helm-prereqs/setup.sh --skip-vault, or setting NICO_SKIP_VAULT=true, installs a site without HashiCorp Vault. Vault stays the default, and a site that installs it sees no change. The flag skips the Vault install and unseal phases, renders the nico-prereqs chart without its Vault resources, and deploys NICo Core, RMS, Flow, and the site-agent with certificates from the site-issuer ClusterIssuer, a cert-manager CA issuer backed by the same site-root CA that Vault PKI signs with.

For Core it pins global.certificate.issuerRef to name site-issuer, kind ClusterIssuer, and group cert-manager.io, so a values file that selected a namespaced Issuer cannot reference a non-existent Issuer/site-issuer, and sets global.certificate.useCertManager=true, global.certificate.useCertManagerUfm=true, and nico-api.vault.enabled=false, so nico-api requests machine and UFM certificates through cert-manager and starts without Vault connection settings. Flow, the site-agent, and RMS (under certificates.issuerRef) get the same pinned name, kind, and group.

The site config must keep credentials in Postgres: [secrets] with no vault backend, writer, or import source, and no Transit KEK provider; the integrated KEK provider requires separate production qualification, and no KMIP server product is qualified yet (#8658). Preflight checks the Core values against that contract, with the full list of rules in Installing without Vault, and names the field in each error; it warns when a Vault StatefulSet is still running, and it reports an error while legacy PSM/NSM hook resources exist, because their cleanup needs Vault. These errors stop setup.sh even with --ignore-preflight-errors. The check needs Python 3.11 or later, or the tomli package.

On a site that runs Vault, the flag is a configuration change that requires the credential migration first, and it never uninstalls Vault. While any consumer still references Vault (a Deployment in nico-system whose environment has VAULT_ADDR, or a cert-manager Certificate issued by vault-nico-issuer), the run keeps the nico-prereqs Vault resources and re-syncs the release without them at the end of the run, after no consumer remains; a partial run (--skip-core, --skip-rest, --skip-rms, or a declined Core deployment) keeps them and lists the remaining consumers, and preflight warns up front, naming the consumers the run will not redeploy. The flag is passed on every later run of such a site, and --install-vault rolls back, overriding NICO_SKIP_VAULT=true from the environment. Refer to Installing without Vault.

New and changed configuration

SettingChange
setup.sh --skip-vault, --install-vault, NICO_SKIP_VAULT, NICO_INSTALL_VAULTNew. Vault installs by default; --skip-vault or NICO_SKIP_VAULT=true opts out, and NICO_INSTALL_VAULT=false is honored too. The standalone preflight.sh run accepts the same flags. While any Deployment in nico-system or any cert-manager Certificate still references Vault, the release’s Vault resources stay in nico-prereqs; they are removed at the end of the run that leaves no such consumer.
helm-prereqs vault.enabledNew, true by default. Setting it to false renders none of the chart’s Vault resources: vault-nico-issuer, the cert-manager Vault-auth ServiceAccount, the vault-pki-config Job, the nico-vault-token and nico-vault-approle-tokens Secrets, the vault-cluster-info ConfigMap, and the Vault TLS bootstrap Certificates.
helm-prereqs certManager.siteIssuer.createNew, true by default. The site-issuer ClusterIssuer moved from templates/vault-tls-certs.yaml to templates/site-issuer.yaml with the same hook annotations, so an upgrade recreates it as before. On a Vault site it renders only while vault.tls.create is also true, as before; with vault.enabled: false it renders regardless of vault.tls.create.
nico-api chart vault.enabledNew, true by default. Setting it to false removes the VAULT_* environment variables from the nico-api Deployment, and the chart rejects a non-empty vaultClusterInfo.
health-check.shDetects the NICo namespace from the nico-system-nico-database-config ConfigMap. Checks Vault health while the vault StatefulSet exists, and fails when only its namespace exists or when the StatefulSet is absent while NICo is still integrated with Vault. NICo counts as integrated while any Deployment in the NICo namespace references VAULT_ADDR or any cert-manager Certificate in any namespace is issued by vault-nico-issuer (the installer’s consumer rule, so a partially migrated site keeps its Vault checks), or, before Core is installed, while vault-cluster-info exists; otherwise the Vault integration checks (vault-pki-config, vault-nico-issuer, the two Vault Secrets, and the ConfigMap keys) are reported as skipped with not configured (--skip-vault was used), and a Vault site missing the ConfigMap fails those checks. Warns when Vault still runs on a site switched to --skip-vault.