]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Handle OverQuota exception during volume transfer
authorLisaLi <xiaoyan.li@intel.com>
Wed, 17 Feb 2016 05:24:50 +0000 (13:24 +0800)
committerLisaLi <xiaoyan.li@intel.com>
Fri, 19 Feb 2016 05:34:28 +0000 (13:34 +0800)
commitb5aef3add5df286821de02a5417f07ac5f1101c4
tree81aac83935c41d0c56668b863ae1f0631f7318e0
parentb77835b23a53eacca93855782b883b829c37ea7b
Handle OverQuota exception during volume transfer

Cinder doesn't correctly handle OverQuota during volume
transfer. It only checks quota volumes and gigabytes,
and ignores quotas in volume type. As a result, when it
exceeds volumes and gigabytes of a volume type, Cinder doesn't
raise exception and allows accept move on.

This patch is to check every over quota in overs and fixes the
problem.

Change-Id: I02ef576ecb3052724bc14a3bd2df842bec554e0d
Closes-bug: #1539459
cinder/tests/unit/test_volume_transfer.py
cinder/transfer/api.py