Cinderclient Doesn't Return A Useful Error When Trying To Create A Volume Larger Than The Quota Allocation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Mike Perez | ||
Icehouse |
Fix Released
|
Undecided
|
Unassigned | ||
python-cinderclient |
Fix Released
|
Undecided
|
Mike Perez |
Bug Description
Actually, it is nearly useless. It just returns an exception that it casts from a HTTP 500.
My quota limit is 1000GB, here I try to make a volume that is 2000GB
g = cinderclient(
cinderclient connection created using token "e3fbb3c2d94949
REQ: curl -i http://
REQ BODY: {"volume": {"snapshot_id": null, "display_name": "My Vol", "volume_type": null, "display_
RESP:{'date': 'Thu, 14 Jun 2012 22:14:02 GMT', 'status': '500', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-
*** ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-316c81e2-
This is basically useless from an end-user perspective and doesn't allow us to tell users of Horizon anything useful about why this error'd. :( It should probably be a 406, not a 500, and the error message should be "Cannot create a volume of 2000GB because your quota is currently 1000GB." Or something along those lines...
description: | updated |
description: | updated |
no longer affects: | horizon |
tags: | added: python-cinderclient |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: volume |
affects: | cinder → python-cinderclient |
Changed in python-cinderclient: | |
status: | New → Confirmed |
Changed in python-cinderclient: | |
assignee: | nobody → Mike Perez (thingee) |
Changed in python-cinderclient: | |
status: | Confirmed → Fix Committed |
Changed in nova: | |
assignee: | nobody → Sergio Cazzolato (sergio-j-cazzolato) |
assignee: | Sergio Cazzolato (sergio-j-cazzolato) → nobody |
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
Changed in python-cinderclient: | |
milestone: | none → 1.3.1 |
status: | Fix Committed → Fix Released |
Talked with John about this. This is going to involve quite a bit of change. Need to communicate this more with people before I proceed.
https:/ /blueprints. launchpad. net/cinder/ +spec/clearer- api-error- responses