404 messages could be more user-friendly

Bug #1050922 reported by Arathi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Wishlist
Arathi

Bug Description

curl -i http://15.184.68.80:8774/v2/fcca6518ee314a9789f966609d84adcb/servers/643117c/action -X POST -H "X-Auth-Project-Id: arathi_tenant" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 7af9a0a85a9a4fefa818c1afcbb62488" -d '{"createImage": {"name": "test", "metadata": {}}}'
HTTP/1.1 404 Not Found
Content-Length: 78
Content-Type: application/json; charset=UTF-8
X-Compute-Request-Id: req-7fb8dae1-1cca-4c9e-80dc-5abe19f264ef
Date: Fri, 14 Sep 2012 11:54:21 GMT

{"itemNotFound": {"message": "The resource could not be found.", "code": 404}}

curl -i http://15.184.68.80:8774/v2/fcca6518ee314a9789f966609d84adcb/servers/643117e8/action -X POST -H "X-Auth-Project-Id: arathi_tenant" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 7af9a0a85a9a4fefa818c1afcbb62488" -d '{"reboot": {"name": "test", "type": "soft"}}'
HTTP/1.1 404 Not Found
Content-Length: 78
Content-Type: application/json; charset=UTF-8
X-Compute-Request-Id: req-a1527d8a-0dac-4663-b3cb-5ab26daead52
Date: Fri, 14 Sep 2012 13:14:08 GMT

{"itemNotFound": {"message": "The resource could not be found.", "code": 404}}arathi1@nv-aw1rde1-schedule0000:~$ curl -i http://15.184.68.80:8Auth-Project-Id: arathi_tenant" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 7af9a0a85a9a4fefa818c1afcbb62488" -d '{"createImage": {"name": "test", "metadata": {}}}'
HTTP/1.1 404 Not Found
Content-Length: 78
Content-Type: application/json; charset=UTF-8
X-Compute-Request-Id: req-011826a2-b40d-4833-b62d-a998a7e1b5e7
Date: Fri, 14 Sep 2012 13:14:42 GMT

{"itemNotFound": {"message": "The resource could not be found.", "code": 404}}

Changed in nova:
assignee: nobody → Arathi (arathi-darshanam)
summary: - User friendly message is not displayed when server actions are requested
- through curl commands
+ User friendly message is not displayed when server actions for non-
+ existent ids are requested through curl commands
Thierry Carrez (ttx)
summary: - User friendly message is not displayed when server actions for non-
- existent ids are requested through curl commands
+ 404 messages could be more user-friendly
Changed in nova:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/13024

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/13024
Committed: http://github.com/openstack/nova/commit/007a1856dd8b5a781a3abe312a023344995162d6
Submitter: Jenkins
Branch: master

commit 007a1856dd8b5a781a3abe312a023344995162d6
Author: Arathi <email address hidden>
Date: Fri Sep 14 19:43:32 2012 +0530

    Modified 404 error response for server actions

    User-friendly messages are returned if any server action
    is requested on non-existent servers

    Fixes bug 1050922

    Change-Id: I884285fcb62225acd9078d16191398d844a227cb

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-1 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.