| title | OpenStack Cinder Volume Attachment Failed | ||||||
|---|---|---|---|---|---|---|---|
| slug | openstack-cinder-volume-attachment-failed | ||||||
| technologies |
|
||||||
| severity | high | ||||||
| tags |
|
||||||
| related |
|
||||||
| last_reviewed | 2026-06-27 |
nova-compute[1843]: ERROR nova.virt.block_device [req-2c9f...] [instance: 5a7d...] \
Driver failed to attach volume 8e3b... at /dev/vdb: \
os_brick.exception.VolumeDeviceNotFound: Volume device not found at /dev/disk/by-path/\
ip-10.0.0.21:3260-iscsi-iqn.2010-10.org.openstack:volume-8e3b...-lun-1
cinder-volume[3271]: ERROR cinder.volume.manager Unable to initialize connection \
for volume 8e3b...: iSCSI target portal 10.0.0.21:3260 not reachable
Attachment failure occurs when the compute node cannot connect the Cinder volume
into the guest. The control-plane attach call may succeed (the attachment record
is created), but the data path β iSCSI/FC login, RBD map, or multipath
discovery β does not complete, so the device never appears on the host and Nova
cannot present it to the instance. The volume often ends up stuck in attaching
or reverts to available while the instance lacks the disk.
- openstack (cinder-volume, nova-compute, os-brick, iSCSI/FC/RBD transport)
high β the instance does not get its volume; boot-from-volume instances fail to start, and a host-wide transport problem blocks all attaches on that compute.
- iSCSI/FC connectivity broken β target portal unreachable, wrong VLAN, MTU mismatch, or firewall on port 3260.
- Initiator misconfiguration β missing/duplicate
initiatorname.iscsi, oriscsid/multipathdnot running on the compute node. - Multipath misconfiguration causing the device path never to settle.
- Ceph/RBD: missing keyring or
ceph.confon the compute host. - Stale or duplicate attachment record left after a prior failure.
On attach, cinder-volume runs initialize_connection() to export the volume
and returns connection info (target IQN/portal, or RBD pool/image). nova-compute
hands this to os-brick on the compute node, which performs the iSCSI login / FC
scan / RBD map and waits for the block device to appear under
/dev/disk/by-path (or /dev/rbd*). If the transport is unreachable, the
initiator is misconfigured, or multipath never converges, the device never
materializes and os-brick raises VolumeDeviceNotFound. The failure is on the
data path between compute host and storage, not in the Cinder DB.
# Attachment state and the host involved
openstack volume show <volume-id> -c status -c attachments
# nova-compute attach error
journalctl -u devstack@n-cpu --since "10 min ago" | grep -iE "attach|os_brick|by-path"
# On the compute node: is the iSCSI target reachable / logged in?
sudo iscsiadm -m session
sudo iscsiadm -m discovery -t sendtargets -p 10.0.0.21:3260
# Transport daemons running?
systemctl status iscsid multipathd
# Multipath device view
sudo multipath -ll# volume show
status | attaching # stuck β never reached 'in-use'
# iscsiadm discovery on the compute node
iscsiadm: cannot make connection to 10.0.0.21:3260 (No route to host)
A failed discovery, iscsid not running, or a missing /dev/disk/by-path device
confirms a data-path problem. A healthy attach reaches status: in-use.
- Connectivity: restore reachability to the storage portal (route, VLAN,
firewall port 3260, MTU). Verify with
iscsiadm -m discovery. - Initiator/daemons: ensure
iscsidandmultipathdare enabled and the compute node has a unique/etc/iscsi/initiatorname.iscsi. - Ceph: confirm
ceph.confand the cinder keyring exist on the compute host. - Stuck record: clean up a stale attachment, then re-attach:
openstack volume attachment list --volume <volume-id> openstack server add volume <instance> <volume-id>
openstack server add volume <instance> <volume-id> --device /dev/vdb
openstack volume show <volume-id> -c status -f value # Expect: in-use- Monitor storage-network reachability (portal ping, port 3260) from computes.
- Ensure
iscsid/multipathdare enabled on every compute node via config mgmt. - Standardize multipath.conf and initiator naming across the fleet.
- Distribute Ceph keyrings/
ceph.confconsistently to all compute hosts.
openstack Β· cinder Β· attach Β· iscsi Β· nova Β· production