← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1697403] [NEW] get API call for service raises ResourceNotFound error

 

Public bug reported:

As of now get service API (show) is not present and it returns the 404 ResourceNotFound error.
As per api-wg guidelines [1] it should return 405 Method Not Allowed.

Steps to reproduce:

1. Use curl command to show service details.
   $ curl -g -i -X GET http://10.232.48.201:8774/v2.1/os-services/5 -H "OpenStack-API-Version: compute 2.46" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.46" -H "X-Auth-Token: f7acf40a4fd848bf885de53e606fa12c"

Output:

HTTP/1.1 404 Not Found
Content-Length: 112
Content-Type: application/json
X-Openstack-Request-Id: req-e8682adf-1013-4ff5-8903-16dc3a26984d
X-Compute-Request-Id: req-e8682adf-1013-4ff5-8903-16dc3a26984d
Date: Mon, 12 Jun 2017 09:49:24 GMT

{"message": "The resource could not be found.<br /><br />\n\n\n",
"code": "404 Not Found", "title": "Not Found"}

Expected output:

If a request is made to a known resource URI, but the HTTP method used
for the request is not supported for that resource, the return code
should be 405 Method Not Allowed.

[1] https://specs.openstack.org/openstack/api-wg/guidelines/http.html
#failure-code-clarifications

** Affects: nova
     Importance: Undecided
     Assignee: Abhishek Kekane (abhishek-kekane)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Abhishek Kekane (abhishek-kekane)

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

Title:
  get API call for service raises ResourceNotFound error

Status in OpenStack Compute (nova):
  New

Bug description:
  As of now get service API (show) is not present and it returns the 404 ResourceNotFound error.
  As per api-wg guidelines [1] it should return 405 Method Not Allowed.

  Steps to reproduce:

  1. Use curl command to show service details.
     $ curl -g -i -X GET http://10.232.48.201:8774/v2.1/os-services/5 -H "OpenStack-API-Version: compute 2.46" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.46" -H "X-Auth-Token: f7acf40a4fd848bf885de53e606fa12c"

  Output:

  HTTP/1.1 404 Not Found
  Content-Length: 112
  Content-Type: application/json
  X-Openstack-Request-Id: req-e8682adf-1013-4ff5-8903-16dc3a26984d
  X-Compute-Request-Id: req-e8682adf-1013-4ff5-8903-16dc3a26984d
  Date: Mon, 12 Jun 2017 09:49:24 GMT

  {"message": "The resource could not be found.<br /><br />\n\n\n",
  "code": "404 Not Found", "title": "Not Found"}

  Expected output:

  If a request is made to a known resource URI, but the HTTP method used
  for the request is not supported for that resource, the return code
  should be 405 Method Not Allowed.

  [1] https://specs.openstack.org/openstack/api-wg/guidelines/http.html
  #failure-code-clarifications

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