]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
vmware: check datastore availability during create
authorSubramanian Neelakantan <subramanian.neelakantan@gmail.com>
Fri, 24 Jan 2014 05:57:43 +0000 (11:27 +0530)
committerSubramanian Neelakantan <subramanian.neelakantan@gmail.com>
Mon, 3 Mar 2014 05:38:26 +0000 (11:08 +0530)
commitf8b5c5fc4cba671467b58d698b266dcc956b7b5c
tree91b3359eb8103e8fab6d0b18a72601d0672122fb
parent848ef0043f60795db680afe8f67b633459eaf52c
vmware: check datastore availability during create

The vmdk driver does a lazy creation of the volume's backing vmdk
only at attach time. This is done to save on the huge copy cost
if the vmdk needs to be moved 'closer' to the VM instance at
attach time.

Still during a create volume call the driver needs to verify
availability of a suitable datastore that matches the given
storage profile as well as capacity to accommodate the given
volume size. This check needs to happen at three places - create
volume, create volume from snapshot and create volume from another
source volume.

Implements: blueprint vmdk-storage-policy-volume-type
Change-Id: I327bbc4930b4ab4e81627ac7bc48c2048e2078ee
cinder/tests/test_vmware_vmdk.py
cinder/volume/drivers/vmware/vmdk.py