]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Move retype quota checks to API
authorNate Potter <nathaniel.potter@intel.com>
Tue, 8 Dec 2015 22:12:27 +0000 (22:12 +0000)
committerNate Potter <nathaniel.potter@intel.com>
Mon, 14 Dec 2015 15:40:25 +0000 (15:40 +0000)
commitd78399e614a90b062bcc1ff10aa00a037b158cad
treebc11b6344c21b00577cb16407300844e8635b389
parent36841fcd06947284b255c4d31f8d36c1e7f6af82
Move retype quota checks to API

Currently the retype quota check is done in the manager, where it will
raise an exception if the check fails. This patch moves the check to the
API so that the user is given feedback before the RPC cast is made.

APIImpact
Closes-bug: #1508249

Change-Id: Iba24edd8ad824837028353b52c90742df55c9173
cinder/scheduler/manager.py
cinder/tests/unit/test_volume.py
cinder/tests/unit/test_volume_rpcapi.py
cinder/volume/api.py
cinder/volume/manager.py
cinder/volume/rpcapi.py