yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #12279
[Bug 1298131] [NEW] improper usage of HTTP 413 status code
Public bug reported:
HTTP 413 is supposed to mean (per RFC2616) that the request entity was
too large. E.g., if you send an enormous body with the request. That is
not at all how it is being used in the server resize request example
below. The nova/api/openstack/compute/servers.py is coded to return 413
for QuotaError and PortLimitExceeded on create as well as for QuotaError
on resize, and there may be other places 413 is being returned
inappropriately.
POST https://9.5.126.113/powervc/openstack/compute/v2/6ce8fae0510349dcbf9b3965f7a20061/servers/8ebaabfc-9018-4ac1-afc6-630aee8a8ae3/action
Request body: { "resize": {
"flavor": {
"vcpus": 1,
"ram": 9999999999,
"disk": 20
}}}
Response: HTTP 413 (Request Entity Too Large)
Response body:
{
overLimit: {
message: "NV-02B1F9F Quota exceeded for ram: Requested 1410063359, but already used 6144 of 8000000 ram"
code: 413
retryAfter: "0"
}
-
}
** Affects: nova
Importance: Undecided
Status: New
--
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/1298131
Title:
improper usage of HTTP 413 status code
Status in OpenStack Compute (Nova):
New
Bug description:
HTTP 413 is supposed to mean (per RFC2616) that the request entity was
too large. E.g., if you send an enormous body with the request. That
is not at all how it is being used in the server resize request
example below. The nova/api/openstack/compute/servers.py is coded to
return 413 for QuotaError and PortLimitExceeded on create as well as
for QuotaError on resize, and there may be other places 413 is being
returned inappropriately.
POST https://9.5.126.113/powervc/openstack/compute/v2/6ce8fae0510349dcbf9b3965f7a20061/servers/8ebaabfc-9018-4ac1-afc6-630aee8a8ae3/action
Request body: { "resize": {
"flavor": {
"vcpus": 1,
"ram": 9999999999,
"disk": 20
}}}
Response: HTTP 413 (Request Entity Too Large)
Response body:
{
overLimit: {
message: "NV-02B1F9F Quota exceeded for ram: Requested 1410063359, but already used 6144 of 8000000 ram"
code: 413
retryAfter: "0"
}
-
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1298131/+subscriptions
Follow ups
References