Rack Management Service (RMS) Backend v2.2 New
Rack Management Service (RMS) Backend v2.2 New
NICo delegates rack-level hardware operations to the Rack Management Service (RMS), a separate service that owns the protocols each device class speaks. NICo decides what should happen to a rack and RMS carries it out against compute trays, NVSwitch trays, and power shelves.
This page explains the shape of that integration: the service boundary, the deployed components, the transports and trust between them, and the RMS APIs NICo depends on. For the settings that turn the integration on, refer to RMS Configuration.
The Challenge
A single NVL rack presents several hardware management protocols at the same time. Compute trays, power shelves, and NVSwitch tray BMCs speak Redfish. NVSwitch trays also speak NVUE REST, the NVOS CLI over SSH, and image transfer over SFTP. A rack-wide firmware update has ordering rules between component classes, device reboots, and partial-failure states. RMS reports these as one outcome rather than as several dozen independent device calls.
Building that into NICo would put per-vendor hardware protocol handling inside the service that also owns tenancy, provisioning, and network isolation. RMS exists so that boundary stays clean: NICo keeps the site-level lifecycle, and one service behind a single gRPC API absorbs the hardware protocol surface.
How the Integration Works
Service Boundary
NICo builds an RMS client only when the site configuration supplies [rms] api_url. Without
it, NICo Core still starts, but an RMS-backed Component Manager cannot initialize. Its RPCs
return configuration errors.
Deployed Components
RMS runs as its own Deployment in its own namespace, alongside NICo rather than inside it:
rms-api-serverruns in therack-managernamespace and is reached through a ClusterIP Service of the same name. Port8801serves the gRPC API and port8802serves Prometheus metrics at/metrics. The RMS chart’sServiceMonitoris disabled by the NICo site values and enabled bysetup.shonly with--with-observability. Sites can instead configure an OpenTelemetry Collector to scrape the endpoint. When collectors run as a DaemonSet, shard the target so only one collector scrapes it and duplicate samples are not produced. The RMS API Deployment does not define Kubernetes liveness or readiness probes.- Replica count is one. RMS does not yet share state between replicas, so a load-balanced deployment can return inconsistent results.
- Runtime configuration is a single TOML file the container reads at startup from
/etc/rms/config.toml. - Persistence uses a database and user separate from NICo’s on the same PostgreSQL cluster, which keeps RMS migrations, permissions, and restore decisions independent of NICo’s.
- Certificates come from the same cert-manager issuer that signs NICo’s own certificate, which is what lets the two services complete mutual TLS without extra configuration.
Transport and Trust
Credential-bearing connections crossing a trust boundary are authenticated. The mechanism differs by hop:
NICo does not need a dedicated RMS client certificate. The RMS client library discovers NICo’s own SPIFFE certificate mount and presents it to RMS, and because the RMS server certificate is minted from the same issuer, both directions verify. Supplying explicit certificate paths is an override for sites that want different material.
RMS APIs NICo Calls
NICo uses a focused slice of the RMS API. The following table lists calls by workflow; some calls serve more than one workflow:
The RMS compute backend delegates AcPowercycle to CoreComputeTrayManager,
which uses NICo’s direct Redfish pool and the endpoint’s BMC credentials. This
applies to direct requests (including pre-ingestion) and queued compute maintenance.
The call returns command acceptance, with per-device Redfish errors and no RMS job ID;
hardware support depends on the device’s Redfish implementation. Native RMS AC
cycling is tracked in power-control support.
RMS switch and power-shelf backends reject AcPowercycle. GracefulRestart and
ForceRestart remain distinct RMS operations.
Queued compute AC cycles have dedicated maintenance phases. For hosts with managed DPUs, maintenance checks the platform before issuing the power command; a failed check retries without issuing the command. After the power command succeeds, Vera Rubin hosts with managed DPUs run ingestion’s onboard NIC sequence: enable, wait at least ten seconds, disable, then wait at least ten seconds. AC cycling re-enables these NICs, so the AC maintenance sequence restores their disabled configuration before completing. Other platforms and hosts without managed DPUs skip this sequence. While the request remains pending, BMC or NIC errors retain the persisted phase for retry without resubmitting an accepted cycle. AC maintenance uses the existing request-replacement behavior; it does not guarantee cleanup if another request replaces it. A failed power command can be retried, including when its response was lost; command acceptance and progress persistence are not atomic. Explicit direct/bypass requests retain direct dispatch and do not run this maintenance cleanup.
Firmware updates, system image updates, certificate installation, and fabric configuration run asynchronously. RMS normally returns a job identifier when it accepts the request, and NICo polls the matching status API until the job reaches a terminal state. Queued and in-progress states are nonterminal.
Component Manager also provides these passive status methods through its RMS backend:
These passive methods do not submit updates or move a firmware update to its next phase. Firmware job reads attempt to query the job identifiers recorded for each requested device. The shared deadline can prevent some queries, and repeated device entries can repeat them. These reads do not discover other RMS jobs. Neither an empty job list nor a completed job establishes that an entire firmware update finished. A missing or unreadable job does not establish update failure. Installed firmware, firmware manifest comparisons, and job status are independent observations; one does not confirm another.
Switch Update Polling
Poll GetComponentFirmwareStatus with the switch BMC MAC against the
nico-api instance that submitted the NVOS job, and avoid overlapping caller
polls. These practices do not establish whole-update or installed-firmware
completion.
For switches, get_firmware_jobs only observes known work. The updater’s get_firmware_status
poll can submit a queued firmware-object update after its NVOS image job completes.
Without that polling, the queued phase does not advance.
That polling must reach the nico-api instance that submitted the NVOS job.
The queued phase exists only in that instance’s memory; restarting it before
firmware-object submission loses the phase. A poll after restart or through another
instance can report completion from the persisted NVOS job alone.
Overlapping get_firmware_status polls can also report completion from the NVOS job alone
while the firmware-object job is still running. A poll can retain the earlier job list after
another poll submits that phase and removes its in-memory marker.
Firmware-object polling sends the tracked job ID to get_job_status with
include_child_job_states=false. NICo requires exactly one response record whose job_id
matches that ID and maps its JobExecutionState to queued, in-progress, completed, or failed.
Empty, mismatched, duplicate, unspecified, or unrecognized evidence cannot establish
completion. Rack maintenance keeps its previous device progress and polls again; ordinary
component status reads return unknown with a diagnostic; passive job reads return
StatusUnavailable.
A gRPC NOT_FOUND result means the job is absent. Shelf status reads return unknown,
switch and compute-tray status reads return failed, rack maintenance retains progress for
later polling, and passive job reads return JobNotFound. A job observed in the failed
execution state remains a valid passive observation of failure. Switch system-image polling
continues to use get_switch_system_image_job_status.
How a Firmware Manifest Reaches RMS
Firmware updates use a standardized firmware manifest. This JSON document names firmware components and the locations of their artifacts. The manifest travels from NICo configuration to RMS in four steps:
- A rack profile declares where its manifest lives, through
[rack_profiles.<id>.firmware_object] url. - When a rack begins a firmware upgrade, NICo resolves the profile for that rack. A rack
profile without a
firmware_objectsource skips the automatic firmware update rather than failing. - NICo fetches the document from its HTTPS URL within the configured timeout and confirms it parses as a JSON object. The body is capped at 16 MiB because the manifest carries metadata, not firmware binaries. NICo does not verify the manifest with a signature or digest.
- NICo sends the document body inline to RMS as the
config_jsonfield ofapply_firmware_object, alongside the rack identifier, the resolved node set, the firmware and hardware types. Automatic profile-driven maintenance has no caller token: rack firmware submits no token and the backend substitutes theNOAUTHvalue, while the NVOS path sendsNOAUTHdirectly. An explicit maintenance request instead loads and sends its stored artifact access token.
RMS then reads the artifact URLs from the manifest body that NICo forwarded and downloads the artifact payloads itself. The payloads do not pass through NICo. The artifact host must therefore be reachable from the RMS namespace.
Key Insights
- RMS is a backend, not a dependency of record. NICo remains the inventory owner. RMS is selected per component class, so a site can route compute trays through RMS while another class uses a different backend.
- The integration is config-gated at both ends. NICo builds no RMS client without
[rms] api_url, and RMS accepts no NICo traffic without matching TLS material. - Job-based updates. NICo uses the returned job identifiers to follow firmware, image,
certificate, and fabric updates until they reach a terminal state.
Delegated compute AC cycles return Redfish command acceptance without an RMS job.
Direct dispatch does not start a state-controller poller for a pre-ingestion switch.
The caller must poll
GetComponentFirmwareStatususing its BMC MAC to advance a queued firmware-object phase; passiveget_firmware_jobsreads do not advance it. - Manifests flow through NICo; artifacts do not. NICo hands RMS the document and RMS fetches the binaries, so artifact reachability is an RMS-side network requirement.
- Shared PostgreSQL, separate database. RMS persists to the same cluster as NICo under its own database and user, which keeps lifecycle decisions independent.
Related
- RMS Configuration — the NICo settings that enable and tune this integration
- Rack state machine — where rack maintenance calls into RMS
- Switch certificate configuration — the switch mTLS workflow
- RMS external architecture — RMS northbound and southbound interfaces
- RMS documentation home — deployment, operations, and hardware compatibility