cinder: Add support for virtio-scsi

The VirtIO SCSI driver for KVM changes the way disks appear in /dev/disk/by-id.
This adds support for the new format.
pull/6/head
Mike Bryant 2017-02-15 17:27:31 +00:00
parent fbc94c0896
commit e2e924e023
1 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,8 @@ func (os *OpenStack) GetDevicePath(diskId string) string {
candidateDeviceNodes := []string{
// KVM
fmt.Sprintf("virtio-%s", diskId[:20]),
// KVM virtio-scsi
fmt.Sprintf("scsi-0QEMU_QEMU_HARDDISK_%s", diskId[:20]),
// ESXi
fmt.Sprintf("wwn-0x%s", strings.Replace(diskId, "-", "", -1)),
}