mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
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.
This commit is contained in:
parent
fbc94c0896
commit
e2e924e023
@ -176,6 +176,8 @@ func (os *OpenStack) GetDevicePath(diskId string) string {
|
|||||||
candidateDeviceNodes := []string{
|
candidateDeviceNodes := []string{
|
||||||
// KVM
|
// KVM
|
||||||
fmt.Sprintf("virtio-%s", diskId[:20]),
|
fmt.Sprintf("virtio-%s", diskId[:20]),
|
||||||
|
// KVM virtio-scsi
|
||||||
|
fmt.Sprintf("scsi-0QEMU_QEMU_HARDDISK_%s", diskId[:20]),
|
||||||
// ESXi
|
// ESXi
|
||||||
fmt.Sprintf("wwn-0x%s", strings.Replace(diskId, "-", "", -1)),
|
fmt.Sprintf("wwn-0x%s", strings.Replace(diskId, "-", "", -1)),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user