]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware:Support for attaching disk to backing
authorVipin Balachandran <vbala@vmware.com>
Sun, 29 Jun 2014 13:30:04 +0000 (19:00 +0530)
committerVipin Balachandran <vbala@vmware.com>
Fri, 1 Aug 2014 08:58:41 +0000 (14:28 +0530)
commit15a93312641bb6121d20c7749481104a1ab34bd0
tree06e8afa6c3d792814e67ea20ec021fcd1cb1ca4d
parentd189ce467eaefc9e83df79b527a4175b69e60445
VMware:Support for attaching disk to backing

This change adds support for attaching a virtual disk to an existing
backing VM. Currently volume creation from preallocated/sparse image doesn't
honour the disk type in the volume extra spec and adapter type in the image
meta-data. The workflow to address these issues requires the above mentioned
method. This change also sets the disk size of backing to at least 1MB which
is the minimum required by VIM APIs.

Closes-Bug: #1340315
Partial-Bug: #1284284
Partial-Bug: #1287185
Partial-Bug: #1287176

Change-Id: Icdb1f26d5c8eaa42408a14c57c7394d96dda078f
cinder/tests/test_vmware_volumeops.py
cinder/volume/drivers/vmware/volumeops.py