(grnet) Enable -device option for old disks upon migration
authorDimitris Aragiorgis <dimara@grnet.gr>
Thu, 28 Nov 2013 07:04:09 +0000 (09:04 +0200)
committerDimitris Aragiorgis <dimara@grnet.gr>
Tue, 17 Dec 2013 10:46:49 +0000 (12:46 +0200)
commitf44c88c743f8254677142c510d6e2031da4c7f71
tree6b939b3237bfbc8e51345865705a40c8be528d0a
parent150e31ec368fab94b9b5d244e9293dc7475797ad
(grnet) Enable -device option for old disks upon migration

Change _GenerateDeviceKVMId() to take device index as an
extra argument. In case device has uuid and pci info
we return proper device id. In case idx is given we return
a dummy id (e.g. hotdisk-0). Otherwise we raise an Exception.

This is used only by GenerateKVMBlockDevicesOptions() for
block_devices found in runtime files that have not uuid or
pci info (Ganeti 2.6.2 hotplug implementation). By returning
a dummy id we enable -device option in for paravirtual disk types.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
lib/hypervisor/hv_kvm.py