block_devices = (disk, link, uri)
authorDimitris Aragiorgis <dimara@grnet.gr>
Wed, 9 Oct 2013 14:45:25 +0000 (17:45 +0300)
committerThomas Thrainer <thomasth@google.com>
Thu, 24 Oct 2013 09:27:16 +0000 (11:27 +0200)
commit66d3d195bde911a8f85345b6256467a80c910008
treed1ede043644fa2ee6756255309ece6d2a3cb4b48
parentaf5db30c1ad0eec4116244d527227028ae98b999
block_devices = (disk, link, uri)

Do not pass BlockDev instance to hypervisor. Instead calculate the
drive_uri (if any) in backend level and pass only the string to
hypervisor.

Hypervisor should not be aware of the entire block device but only
the final path it can be reached.

This is done also for easy manipulation of block devices inside
runtime files since hotplug support enforces separate entry and
BlockDev is not serializable.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
lib/backend.py
lib/hypervisor/hv_kvm.py