From 80235d33c822251a633fba6b3186cf683026ca82 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Wed, 1 Apr 2020 11:21:45 +0200 Subject: [PATCH] UPSTREAM: 89726: Backward support for old KVM driver --- .../legacy-cloud-providers/openstack/openstack_volumes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/staging/src/k8s.io/legacy-cloud-providers/openstack/openstack_volumes.go b/staging/src/k8s.io/legacy-cloud-providers/openstack/openstack_volumes.go index 1a4dbd331a9e1..b705c1f74a342 100644 --- a/staging/src/k8s.io/legacy-cloud-providers/openstack/openstack_volumes.go +++ b/staging/src/k8s.io/legacy-cloud-providers/openstack/openstack_volumes.go @@ -496,6 +496,8 @@ func (os *OpenStack) GetDevicePathBySerialID(volumeID string) string { fmt.Sprintf("virtio-%s", volumeID[:20]), // KVM virtio-scsi fmt.Sprintf("scsi-0QEMU_QEMU_HARDDISK_%s", volumeID[:20]), + // older KVM virtio-scsi + fmt.Sprintf("scsi-0QEMU_QEMU_HARDDISK_%s", volumeID), // ESXi fmt.Sprintf("wwn-0x%s", strings.Replace(volumeID, "-", "", -1)), }