]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix volume limit exceeded exception
authorVipin Balachandran <vbala@vmware.com>
Tue, 4 Aug 2015 06:33:25 +0000 (12:03 +0530)
committerVipin Balachandran <vbala@vmware.com>
Wed, 5 Aug 2015 05:54:36 +0000 (11:24 +0530)
commit1d0695bf86c5bdd12db235b8a2634f3404132977
tree8b66cd67d61485245241b6d7e0a3329e4302418a
parente1e33286ce2f2ed1028423691bc29b89df3da5d2
Fix volume limit exceeded exception

The VolumeLimitExceeded exception contains the wrong limit when
the number of volumes exceeds the quota corresponding to a volume
type. It always contains the limit of quota 'volumes'. This patch
fixes the limit in both exception and log message. It also adds
the quota name to exception and log message for better clarity.

Change-Id: I3e2d4fa00fe49f64b2153930e901fccd8015483e
Closes-Bug: #1481182
cinder/exception.py
cinder/tests/unit/api/contrib/test_backups.py
cinder/tests/unit/api/contrib/test_volume_transfer.py
cinder/tests/unit/test_quota.py
cinder/volume/flows/api/create_volume.py