diff options
| author | Christoph Thiel <cthiel@suse.com> | 2012-07-24 22:25:12 +0200 |
|---|---|---|
| committer | Christoph Thiel <cthiel@suse.com> | 2012-07-25 14:19:59 +0200 |
| commit | 8f1664416abf7aaf8e049ba26ca404ab627b7d57 (patch) | |
| tree | 9bb8ac0a04c9d600b31328dd1db8f50156be0d59 /nova/openstack | |
| parent | 9468508efe36097e422bf3b43d586ff962b8f4b2 (diff) | |
| download | nova-8f1664416abf7aaf8e049ba26ca404ab627b7d57.tar.gz nova-8f1664416abf7aaf8e049ba26ca404ab627b7d57.tar.xz nova-8f1664416abf7aaf8e049ba26ca404ab627b7d57.zip | |
libvirt driver: set driver name consistently
Add pick_disk_driver_name to utils, to be able to set driver_name
consistently across volume and imagebackend. This is mostly required for
xen.
Xen requires specifying both the driver name and type attributes when
defining disks. E.g. the following disk XML snippet
<disk type='file' device='disk'>
<driver type='qcow2'/>
<source file='/tmp/disk0.qcow2'/>
<target dev='xvda'/>
</disk>
produces incorrect configuration in the xen tools
(uname file:/tmp/disk0.qcow2)
Including the driver name fixes this
<disk type='file' device='disk'>
<driver name='tap' type='qcow2'/>
<source file='/tmp/disk0.qcow2'/>
<target dev='xvda'/>
</disk>
produces
(uname tap:qcow2:/tmp/disk0.qcow2)
Change-Id: Id984e0c431b6fc743a39e6e6f3dc3eb289fbb43a
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
