NVMe-oF Data Volumes for Bare Metal¶
https://bugs.launchpad.net/ironic/+bug/2160723
Operators running bare metal clouds increasingly back their storage with NVMe over Fabrics (NVMe-oF) arrays and software-defined storage reachable over TCP. Today Ironic can attach iSCSI and Fibre Channel volumes to a node, but it has no concept of an NVMe-oF initiator or volume. This spec adds the minimum data-path plumbing so that a Cinder NVMe-oF/TCP volume can be attached to a deployed bare metal node, exactly the way an iSCSI volume can be today.
This is the first change in a short, stacked series of NVMe-oF specifications, and the foundation the others build on. It is deliberately scoped to the data path only, so it can be reviewed on its own without reading ahead. Later changes in the series add, additively: a storage security model (treating the NQN as a secret, rotating it per deployment, and the ACL lifecycle); storage network isolation (the NAT-routed path from tenant to array); and boot-from-volume (diskless boot via firmware and Redfish). None of those are needed to understand or implement this change.
Note
NVMe-oF supports TCP, RDMA, and Fibre Channel transports. This spec targets TCP, which runs over standard Ethernet without a lossless fabric. The connector and target types defined here are transport-neutral; the transport is carried in the Cinder connection data.
Problem description¶
Consider an operator with a Cinder-managed NVMe-oF/TCP array (Pure
Storage, NetApp, Dell PowerStore, or LVM with nvmet). Servers boot
from local disk and have a dedicated storage NIC on the storage fabric.
After deployment the operator wants Cinder volumes attached to the
instance over NVMe-oF/TCP, the same self-service experience a virtual
machine gets.
Today this breaks at well-defined points:
Ironic’s storage interface only knows the iSCSI and Fibre Channel connector types (
iqn,wwpn,wwnn). There is no NVMe Qualified Name (nqn) connector type. The validation logic inironic/drivers/modules/storage/cinder.pyhardcodesVALID_ISCSI_TYPESandVALID_FC_TYPESand rejects anything else.Nova’s permitted storage connector types are similarly restricted.
The CinderStorage driver (in Ironic) rejects any
volume_typeother thaniscsiorfibre_channel; annvmeofvolume cannot be attached.There is no way to deliver NVMe-oF connection metadata (discovery controller address, subsystem NQN) to the deployed tenant OS, and no mechanism to make a newly-attached volume appear on a running node.
Addressing these issues alone will not resolve all of the operational and architectural security concerns that exist with direct storage array attachment; this change is just the first foundational step to build upon.
Background: Ironic’s current volume model¶
Ironic has a pluggable storage interface (CinderStorage,
ExternalStorage, NoopStorage). CinderStorage uses two objects:
VolumeConnector – the initiator identity on the node (iSCSI IQN, FC WWPN). Node-scoped.
VolumeTarget – a volume to attach, carrying
volume_type,properties(connection data from Cinder), andboot_index.
At deploy time attach_volumes() builds a connector dict from the
node’s VolumeConnectors, calls Cinder’s initialize_connection(),
and stores the returned connection data in VolumeTarget.properties.
This spec extends that existing flow; it does not replace it.
Proposed change¶
Add NVMe-oF as a first-class transport in the CinderStorage interface, following the existing iSCSI/FC pattern.
Connector and target types¶
Connector type
nqn– the NVMe Qualified Name, the NVMe-oF equivalent of an iSCSI IQN. It identifies the host (initiator) to the array, which gates volume access on it.Connector type
nvme_hostid– an additional host identifier some backends require (e.g. Dell PowerFlex). Derived from the SMBIOS system UUID (see System UUID introspection).Volume type
nvmeof– covers TCP, RDMA, and FC; the transport is in the connection data.
Changes in cinder.py:
Add
VALID_NVMEOF_TYPES = ('nqn', 'nvme_hostid')alongside the existing type lists._validate_connectors()acceptsnqnconnectors._validate_targets()accepts thenvmeofvolume type._generate_connector()emits the NVMe-oF fields Cinder expects:{ 'nqn': 'nqn.2014-08.org.nvmexpress:uuid:...', 'nvme_hostid': '<hostid-uuid-if-registered>', 'host': '<node-uuid>', 'multipath': True, }
Parse the
initialize_connection()response fornvmeof–target_nqn,portals(address/port/transport),host_nqn,vol_uuid– and store it inVolumeTarget.properties.
The VolumeConnector and VolumeTarget API schemas already accept
arbitrary type/volume_type strings, so no schema change is
required – only the validation logic and a microversion to document
the new values.
Note
Ironic is the outer orchestrator: it does not run on the node
and does not use os-brick. os-brick’s NVMe-oF connector assumes
privileged local execution on the consuming host. In the bare metal
model the actual nvme connect happens in the tenant OS (data
volumes) or in firmware (boot-from-volume). Ironic’s job is to
obtain connection data from Cinder and hand it to the right
places in order to facilitate volume attachment. The greater security
challenge is the overall array, and security controls or lack of
security controls of the array.
Enabling NVMe-oF on a node¶
NVMe-oF is an explicit operator opt-in. The operator creates an nqn
VolumeConnector on the node; its presence is what signals the node is
NVMe-oF capable:
openstack baremetal volume connector create \
--node storage-node-01 \
--type nqn \
--connector-id nqn.placeholder
The connector_id is a placeholder. This change only requires that
_generate_connector() reads the current value from the
VolumeConnector and passes it to Cinder. Treating that value as a
secret and rotating it per deployment is security hardening that the
next change in this series adds; it is not needed for the data path to
function.
Warning
The NQN value presented to an array is the most fundamental security mechanism. An array may enforce it, or scope it by logical network interface, or do neither – this depends on the vendor and the vendor’s security modeling. Simply put, this value is not generic and can never be generic.
System UUID introspection¶
Backends that require nvme_hostid expect it derived from the SMBIOS
system UUID (/sys/class/dmi/id/product_uuid) per the NVM Express
Boot Specification. Add an IPA inspection collector system-uuid
that reads this file and reports system_uuid in the inspection
data. Ironic records the value on the node (inspection_data /
extra). On the Ironic side, this value should be used to
auto-create the nvme_hostid VolumeConnector, gated by an operator
configuration option for deployments that do not want a connector
created automatically from the SMBIOS system UUID.
nvme_hostid is a stable hardware identity and is not rotated.
Note
Only a single array platform from Dell is known to require this value in addition to an NQN for volume attachments.
Tenant OS image support¶
The tenant OS must carry the NVMe-oF/TCP initiator stack (nvme-cli,
libnvme, the nvme-tcp/nvme-fabrics modules, and
nvmf-autoconnect.service). A new nvmeof-tcp diskimage-builder
element provides this. Proposed upstream as change 990417.
Context: Post-deploy volume attachment (AEN)¶
Attaching a volume to an already-running node
(openstack server add volume) has no hypervisor to hot-plug it. The
mechanism that gives a VM-like experience is NVMe-oF’s native
Asynchronous Event Notification (AEN) for Discovery Log Changes.
This is pure NVMe protocol – no agent on the node, no polling. Detachment of a volume effectively sends a similar message to remove a volume from the running host. AEN support varies by array firmware; operators should confirm it with their vendor.
With this context, an operator may be willing to load administrative credentials into a tenant’s instance to facilitate volume attachment via os-brick or similar tooling. That initial state is still far from ideal: it does not use a dedicated storage network, which can be operationally problematic and places storage I/O on the same network hardware as normal IP traffic.
Note
The major point we’re attempting to convey here is that there is a mechanism, if a connection is established, however that default state may not be ideal much less secure.
Deploy flow and teardown¶
attach_volumes() runs during prepare(), before deploy steps, so
connection data is present in VolumeTarget.properties by the time
deploy steps run. Ironic re-attaches on power-on and detaches on
power-off, keeping the storage lifecycle in sync with power state.
On undeploy the storage interface calls terminate_connection() to
remove the host NQN from the array ACLs, the same as it does for iSCSI
and FC today. Making that cleanup security-critical (and rotating the
NQN on teardown) is hardening added by the next change in this series.
Scope¶
In scope: connector/target types, connector generation, the
system-uuid collector, the DIB element, and post-deploy attachment
for data volumes on locally-booted nodes.
Out of scope, and added by later changes in this series: the NQN secret/rotation model; the storage network path and tenant isolation; and boot-from-volume.
Open item: for data volumes, delivering the discovery controller
address and host NQN into the tenant OS at deploy time has a
chicken-and-egg problem (no volume, hence no discovery address, exists
at deploy time). In the interim operators bake discovery.conf into
the image or use post-deploy automation. A future
inject_storage_configuration deploy step may resolve this in part.
Alternatives¶
iSCSI / Fibre Channel – already supported, but iSCSI has higher protocol overhead than NVMe-oF/TCP and FC needs dedicated HBAs, switches.
Post-deploy configuration only (Ansible/Puppet) – leaves a window where the node is ACTIVE but storage is unconfigured, and requires external orchestration. The connector/target plumbing here is the reusable automation. A further issue here is that to do this, the tooling ends up needing to be specific to the infrastructure operators tooling, and even then functionally becomes a layer violation because it only works where the Cloud User is the Cloud Administrator triggering the post-deploy configuration.
Data model impact¶
None, the existing database and object layer model permits additional values. The input validation is actually what needs to change instead.
State Machine Impact¶
None.
REST API impact¶
A new microversion documents nqn/nvme_hostid connector types
and the nvmeof volume type as recognized values. Endpoints are
unchanged in structure. Secret handling of connector_id for these
types is hardening added by a later change in this series.
Client (CLI) impact¶
“openstack baremetal” CLI¶
None. volume connector create / volume target create already
accept arbitrary type strings.
“openstacksdk”¶
None.
RPC API impact¶
None.
Driver API impact¶
None.
Nova driver impact¶
A minor change in nova.virt.ironic to recognize and pass through
the nqn connector type for post-deploy attachment via
get_volume_connector(). nvme_hostid is handled entirely in
Ironic’s _generate_connector() and does not flow through Nova.
Ramdisk impact¶
None for data volumes beyond the inspection collector. The nvme-tcp
work happens in the tenant OS, not the deploy ramdisk. The DIB element
targets the tenant image to ensure base dependencies are present.
Security impact¶
The host NQN gates array ACLs and must ultimately be treated as a secret and rotated per deployment; that hardening is added by the next change in this series. Tenant isolation on the storage fabric is added by the network-isolation change later in the series. This change does not weaken any existing posture: like iSCSI and FC today, it relies on the operator’s storage network and array ACLs.
Why more security needed?¶
SAN storage arrays tend to operate in a universe where the storage access is more denoted through logical direct attachments to storage networks. This means we’re relying upon storage array controls which may be in one state of capabilities, and hopefully trusting tenants don’t find each other and begin attacking each other through the elevated and what should be highly restricted Storage provider network. In other words, this specification is just a first step in a suite of capabilities.
Other end user impact¶
End users attach Cinder NVMe-oF volumes as they would any other volume
type; they appear as /dev/nvmeXnY in the tenant OS.
Scalability impact¶
None. Volume attachment is delegated to Cinder, once per deployment and on power-cycle re-attachment.
Performance Impact¶
None on the Ironic API or conductor. Storage I/O performance is a property of the backend, fabric, and NIC.
Other deployer impact¶
Operators must: run a Cinder backend with NVMe-oF support; build tenant
images with the nvmeof-tcp element; and register an nqn
VolumeConnector on NVMe-oF-capable nodes.
Developer impact¶
None.
Implementation¶
Assignee(s)¶
- Primary assignee:
Julia Kreger <TheJulia>
Work Items¶
Note
The descriptions below utilize “SWAG” terminology which is a guess at the human time effort to perform each step without interruptions.
Add
nqn/nvme_hostidconnector andnvmeoftarget types, connector generation, and connection-data parsing incinder.py. SWAG: 2-3 weeks.Ensure that the presence of an NQN is properly handled properly on the flow of volume initialization. SWAG: 1 week.
Add the
system-uuidIPA inspection collector and Ironic-side recording. SWAG: 1 week.Land the
nvmeof-tcpdiskimage-builder element (change 990417). SWAG: 1 week.Nova virt-driver pass-through of the
nqnconnector type.
Dependencies¶
Volume connection information (
specs/approved/volume-connection-information.rst).Boot from volume reference drivers (
specs/approved/boot-from-volume-reference-drivers.rst).A Cinder backend with NVMe-oF support and its os-brick connector.
Testing¶
Unit tests for connector/target validation, connector generation, and
the system-uuid collector. End-to-end attachment requires an
NVMe-oF backend and a dedicated storage NIC and is not available in
upstream CI.
Upgrades and Backwards Compatibility¶
All changes are additive and opt-in. Older clients are unaffected; the new types are simply unrecognized by them.
Documentation Impact¶
As this is initial work, some written documentation updates are expected around the individual pieces proposed in this specification, however uniform complete documentation is expected to evolve as additional phases in this effort are completed.
References¶
Ironic Cinder storage interface:
ironic/drivers/modules/storage/cinder.pyNVM Express Boot Specification (Rev 1.3): https://nvmexpress.org/specifications/
os-brick NVMe-oF connector: https://docs.openstack.org/os-brick/latest/
Linux NVMe-oF/TCP documentation: https://www.kernel.org/doc/html/latest/nvme/index.html
diskimage-builder
nvmeof-tcpelement: https://review.opendev.org/c/openstack/diskimage-builder/+/990417