]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Check that volume is at least minDisk size.
authorDermot Tynan <tynan@hp.com>
Thu, 2 May 2013 10:02:05 +0000 (11:02 +0100)
committerDermot Tynan <tynan@hp.com>
Fri, 3 May 2013 10:27:40 +0000 (11:27 +0100)
commitd0b5b93fe7611b35a8c6a9b09f46641f4fb859f4
treef80243d0cdd450e8d6bd9b1a4977d1dac0318d31
parent11a949c14806c2891e114cd21c08b5b7557862f1
Check that volume is at least minDisk size.

The Image service (such as Glance) provides a minDisk parameter to
indicate the minimum required disk size for the image. This change
ensures that the guidance is followed in the case of bootable
volumes.

Added unit test and fixed PEP8 issue.

Fixed issue with docstring.

Added a comment.

Fixes Bug #1175532

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