]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware: Take the volume size from the user input
authorVincent Hou <sbhou@cn.ibm.com>
Wed, 4 Dec 2013 08:51:20 +0000 (03:51 -0500)
committerVincent Hou <sbhou@cn.ibm.com>
Tue, 11 Mar 2014 01:50:24 +0000 (21:50 -0400)
commit015555acb75ee4d9298915951d2bfaf0d19d2b02
treeee181d6e6de20d47ac8f11ac1310572d02bc871d
parent7c2d6fed70b83f79ae58b89b49678516e4ebab26
VMware: Take the volume size from the user input

When we create a volume from an image or a snapshot, we need to
take the size of the volume from the user input and validate whether
the size is appropriate instead of taking the image size as the
volume size directly.

Change-Id: If09933d8ffa989c4dacc0860c19ea332bc21092a
Closes-Bug: #1237557
cinder/tests/test_vmware_vmdk.py
cinder/tests/test_vmware_volumeops.py
cinder/volume/drivers/vmware/vmdk.py
cinder/volume/drivers/vmware/volumeops.py