]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware: Skip vSAN for preallocated image download
authorVipin Balachandran <vbala@vmware.com>
Wed, 7 Jan 2015 06:09:43 +0000 (11:39 +0530)
committerVipin Balachandran <vbala@vmware.com>
Thu, 2 Apr 2015 17:36:53 +0000 (10:36 -0700)
commit753d6a8574fcc2c0680c9f75c31e7bc9035e1534
treec8ef6624fb30572922fd705100c72ba5fc966c9a
parenta16484e88fd3573bc30b92b912f369d56a24c1a9
VMware: Skip vSAN for preallocated image download

Copying preallocated image to volume involves creating
a virtual disk using the image. The virtual disk has a
descriptor and an extent. The preallocated image is used
as the flat extent to create the virtual disk.

To create virtual disk from preallocated image, we first
create a temporary virtual disk (with a descriptor and
flat extent), then replace its flat extent with the
downloaded image. Since vSAN datastores do not support
flat extent, the above operation fails if such a datastore
is selected for virtual disk creation. This patch fixes
the problem by not selecting vSAN datastores for temporary
virtual disk creation.

Change-Id: Ib4c0fcf5c379b137e70378f137d996bf510f05b3
Closes-Bug: #1301943
cinder/tests/test_vmware_vmdk.py
cinder/tests/test_vmware_volumeops.py
cinder/volume/drivers/vmware/datastore.py
cinder/volume/drivers/vmware/vmdk.py
cinder/volume/drivers/vmware/volumeops.py