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

Commit

Permalink
Merge pull request #358 from goberle/master
Browse files Browse the repository at this point in the history
Added full cinder ID to candidateDeviceNodes
  • Loading branch information
justinsb authored Nov 14, 2020
2 parents 2fcbf39 + 312d775 commit 843c267
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/volumes/openstack/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,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)),
}
Expand Down

0 comments on commit 843c267

Please sign in to comment.