summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2012-08-06 12:17:43 -0700
committerVishvananda Ishaya <vishvananda@gmail.com>2012-08-15 14:22:05 -0700
commite44751162b09c5b57557b89db27656b5bd23341c (patch)
tree4e7e47f0596ea47513ebe504302a62c76abe6b78 /nova/openstack
parentd141e64de98f4e7eb0493d8f0a631f071b6e6dc1 (diff)
downloadnova-e44751162b09c5b57557b89db27656b5bd23341c.tar.gz
nova-e44751162b09c5b57557b89db27656b5bd23341c.tar.xz
nova-e44751162b09c5b57557b89db27656b5bd23341c.zip
Allow nova to guess device if not passed to attach
partial fix for bug 1004328 Only the xen hypervisor actually respects the device name that is passed in attach_volume. For other hypervisors it makes much more sense to automatically generate a unique name. This patch generates a non-conflicting device name if one is not passed to attach_volume. It also validates the passed in volume name to make sure another device isn't already attached there. A corresponding change to novaclient and horizon will greatly improve the user experience of attaching a volume. It moves some common code out of metadata/base so that it can be used to get a list of block devices. The code was functionally tested as well and block device name generation works properly. This adds a new method to the rpcapi to validate a device name. It also adds server_id to the volumes extension, since it was omitted by mistake. The next step is to modify the libvirt driver to match the serial number of the device to the volume uuid so that the volume can always be found at /dev/disk/by-id/virtio-<uuid>. DocImpact Change-Id: I0b9454fc50a5c93b4aea38545dcee98f68d7e511
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions