← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1472589] Re: nova quota-class-update returns wrong HTTP error code if <class> name length exceeds 255 characters

 

Updating project to 'nova'

Assigning to myself for resolution..

** Project changed: fuel => nova

** Changed in: nova
     Assignee: (unassigned) => Aniket Anikhindi (aniketanikhindi)

** Changed in: nova
       Status: New => Confirmed

-- 
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/1472589

Title:
  nova quota-class-update returns wrong HTTP error code if <class> name
  length exceeds 255 characters

Status in OpenStack Compute (Nova):
  Confirmed

Bug description:
  The quota-class-update API in Nova returns wrong HTTP error code if
  the <class> name passed to it has length more than 255 characters.

  If you pass <class> (name of the class)  parameter with more than 255
  characters to this API, it returns HTTP 500 error code whereas HTTP
  400 (HttpBadRequest) should be returned to the user.

  Run below command to reproduce this issue. 
  $ nova quota-class-update abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv --instances 2

  Expected output should have contained (HTTP 400) but actual output is:
  ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-55f9faea-f971-46f2-bf5c-0d854404f11e)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1472589/+subscriptions