From 312d77550b925791fac5f8bf87955982d7b70fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Oberl=C3=A9?= Date: Thu, 12 Nov 2020 23:34:59 +0100 Subject: [PATCH] Added full cinder ID to candidateDeviceNodes --- pkg/volumes/openstack/volumes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/volumes/openstack/volumes.go b/pkg/volumes/openstack/volumes.go index 11d75ad7..3179fc79 100644 --- a/pkg/volumes/openstack/volumes.go +++ b/pkg/volumes/openstack/volumes.go @@ -335,8 +335,10 @@ func findDevicePath(volumeID string) (string, error) { candidateDeviceNodes := []string{ // KVM fmt.Sprintf("virtio-%s", volumeID[:20]), + fmt.Sprintf("virtio-%s", volumeID), // KVM virtio-scsi fmt.Sprintf("scsi-0QEMU_QEMU_HARDDISK_%s", volumeID[:20]), + fmt.Sprintf("scsi-0QEMU_QEMU_HARDDISK_%s", volumeID), // ESXi fmt.Sprintf("wwn-0x%s", strings.Replace(volumeID, "-", "", -1)), }