Cinder quota reached, improve error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
Fix Released
|
Medium
|
Lin Yang |
Bug Description
Description of problem: While testing cinder list command (APIv1) in my case happened to be with more than 1000 volumes had run into this error:
# for i in {1..500}; do cinder create 1;
>> done
>> ERROR: Request Entity Too Large (HTTP 413) (Request-ID:
>> req-df25ba27-
Cinder "Volumes" quota was set at: 10000.
I had forgotten to update "Total Size of Volumes and Snapshots (GB)" quota which defaults to 1000GB, each of my volumes was 1Gb hence an error notice is/was due.
The bug refers to uninformative error message which should be improved to better hint at possible fix/reason. BTW same error happens if volumes count rather than volumes total size is reached.
Bug can be reproduced with less/smaller volumes, just set quota to lower settings.
Version-Release number of selected component (if applicable):
RHEl 7.1
python-
python-
openstack-
How reproducible:
Every time
Steps to Reproduce:
1. Install setup, in my case configured CEPH as cinder backend, needed for thin provisioning of volumes, isn't a must or related to the bug and would probably happen with any Cinder backend driver.
2. Check both quota figures, number of volumes and total volume size.
3. Create cinder volumes such that you pass one of the quota limits.
4. Notice error message.
Actual results:
Getting error: >> ERROR: Request Entity Too Large (HTTP 413
Expected results:
A descriptive error would be more helpful something like: Error Cinder create failed due to volume/or size quota limit..
See below cinder api.logs sections indicate failure reason, why not return reasons to user?
Additional info:
Original logs are gone, I'd caused same error on another setup.
Cinder volume count quota exceeded:
2015-04-26 15:53:39.955 93965 WARNING cinder.
2015-04-26 15:53:39.956 93965 WARNING cinder.volume.api [req-10239fa5-
2015-04-26 15:53:39.956 93965 TRACE cinder.volume.api Traceback (most recent call last):
2015-04-26 15:53:39.956 93965 TRACE cinder.volume.api File "/usr/lib/
2015-04-26 15:53:39.956 93965 TRACE cinder.volume.api result = task.execute(
2015-04-26 15:53:39.956 93965 TRACE cinder.volume.api File "/usr/lib/
2015-04-26 15:53:39.956 93965 TRACE cinder.volume.api raise exception.
2015-04-26 15:53:39.956 93965 TRACE cinder.volume.api VolumeLimitExce
Cinder volume size quota exceeded:
[root@mac848f69
/var/log/
/var/log/
/var/log/
Changed in python-cinderclient: | |
milestone: | none → 1.4.0 |
status: | Fix Committed → Fix Released |
Ran into this the other day with Volumes as you pointed out, forgot to log a bug though. Haven't triaged yet, but def confirmed.