← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1300975] [NEW] API set_flavor_extra_spec_with_all_invalid gives response 500 instead of 404

 

Public bug reported:

POST  v2/{tenant_id}/flavors/{flavor_id}/os-extra_specs  gives response
500 instead of 404.

With Post_Body : {"extra_specs": "ksr"}, the actual result is 
{"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}
when the expected result should be a 404.

Extra specs is suppose to be a list of keys. If I input with
{"extra_specs": {"ksr": "ksr"}}, I would get 404. However, there should
be a check to make sure the extra_specs value was a set and raised a 4xx
HTTP error when it wasn't, rather than hitting an unexpected condition
and raising 5xx

** 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/1300975

Title:
  API set_flavor_extra_spec_with_all_invalid  gives response 500 instead
  of 404

Status in OpenStack Compute (Nova):
  New

Bug description:
  POST  v2/{tenant_id}/flavors/{flavor_id}/os-extra_specs  gives
  response 500 instead of 404.

  With Post_Body : {"extra_specs": "ksr"}, the actual result is 
  {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}
  when the expected result should be a 404.

  Extra specs is suppose to be a list of keys. If I input with
  {"extra_specs": {"ksr": "ksr"}}, I would get 404. However, there
  should be a check to make sure the extra_specs value was a set and
  raised a 4xx HTTP error when it wasn't, rather than hitting an
  unexpected condition and raising 5xx

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


Follow ups

References