You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
kvm: a multipath map with no paths left makes cloudstack use a dead disk #14860
On KVM with FibreChannel managed storage, a multipath map that has lost all its paths makes CloudStack use a dead disk. Attaching the volume, or creating a template from it, reads I/O errors or zeros and still reports success.
MultipathSCSIAdapterBase.isConnected() only checks that /dev/mapper/3 is a block device. A map with no paths left still passes that check, so CloudStack skips discovery. connectVolume.sh has the same gap: it sees the map exists and never rescans.
A map like that is left behind when something on the host still holds it open after the volume is disconnected. A common cause is an LVM volume group inside the guest disk that the host activated. Seen on Pure FlashArray, where it produced an empty template (see #14858).
versions
ACS 4.22.1.1, KVM on Ubuntu 24.04, multipath-tools 0.9.4, Pure FlashArray over FibreChannel. The code is the same on 4.22 and main.
The steps to reproduce the bug
Attach a FlashArray data volume to a VM, so the host maps it.
On the host, hold the map open: sleep 10800 < /dev/mapper/3<wwid> &
Detach the volume. The map cant be flushed, the array removes the host connection, and the map is left with no paths:
Activity