Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.

Commit 312d775

Browse files
authored
Added full cinder ID to candidateDeviceNodes
1 parent 622c454 commit 312d775

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/volumes/openstack/volumes.go

+2
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,10 @@ func findDevicePath(volumeID string) (string, error) {
335335
candidateDeviceNodes := []string{
336336
// KVM
337337
fmt.Sprintf("virtio-%s", volumeID[:20]),
338+
fmt.Sprintf("virtio-%s", volumeID),
338339
// KVM virtio-scsi
339340
fmt.Sprintf("scsi-0QEMU_QEMU_HARDDISK_%s", volumeID[:20]),
341+
fmt.Sprintf("scsi-0QEMU_QEMU_HARDDISK_%s", volumeID),
340342
// ESXi
341343
fmt.Sprintf("wwn-0x%s", strings.Replace(volumeID, "-", "", -1)),
342344
}

0 commit comments

Comments
 (0)