Skip to content

Commit

Permalink
cinder: Add support for virtio-scsi
Browse files Browse the repository at this point in the history
The VirtIO SCSI driver for KVM changes the way disks appear in /dev/disk/by-id.
This adds support for the new format.
  • Loading branch information
mikebryant authored and jayunit100 committed Apr 25, 2017
1 parent 3156230 commit b0ca715
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cloudprovider/providers/openstack/openstack_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,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)),
}
Expand Down

0 comments on commit b0ca715

Please sign in to comment.