mirror of https://github.com/k3s-io/k3s
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
parent
fbc94c0896
commit
e2e924e023
|
@ -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)),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue