yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #06468
[Bug 1249222] Re: Update quota-class-set and quota-set thrown 500 error
** Changed in: nova
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1249222
Title:
Update quota-class-set and quota-set thrown 500 error
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
When update quota-class-set without the parameter "quota_class_set",the server throws a 500 error:
"The server has either erred or is incapable of performing the requested operation."
Because the server doesn't check whether the parameter "quota_class_set" is in request body,the KeyError is not catched.
for key in body['quota_class_set'].keys():
......
I think we should catch the KeyError and transfer the KeyError to 400(HTTPBadRequest) instead of 500.
Update quota-set has the same problem.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1249222/+subscriptions