]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Prevent create volume from snapshot with bad size
authorJean-Baptiste RANSY <jean-baptiste.ransy@alyseo.com>
Sat, 30 Mar 2013 14:25:29 +0000 (15:25 +0100)
committerJean-Baptiste RANSY <jean-baptiste.ransy@alyseo.com>
Thu, 4 Apr 2013 14:37:25 +0000 (16:37 +0200)
commitcabca4fd3046503bcd917eba0cdd400491ba89cd
treebc34d6bbf22a057852756ea3210ae0496e404344
parentb7986d03c53c36023824951299076d9f79dc33aa
Prevent create volume from snapshot with bad size

Prevent to create a volume from a snapshot with a volume size less
than the snapshot size.

Check if a volume size is specified that it is less than
the snapshot size.

Raise a exception if it's lesser.

Fixes bug 1161841

Change-Id: Ic1afbfb025ce0b3906c35c6c50a71734d74a9851
cinder/tests/test_volume.py
cinder/volume/api.py