404 error message can be user friendly while deleting the non-existing floating ip
Bug #1056038 reported by
Vijaya Erukala
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Wishlist
|
Vijaya Erukala |
Bug Description
while deleting the non-existent floating IP 404 exception is thrown with the generic messge.
It should show proper message rather than generic.
$curl -i http://
HTTP/1.1 404 Not Found
Content-Length: 78
Content-Type: application/json; charset=UTF-8
X-Compute-
Date: Tue, 25 Sep 2012 14:12:34 GMT
{"itemNotFound": {"message": "The resource could not be found.", "code": 404}}
Changed in nova: | |
assignee: | nobody → Vijaya Erukala (vijaya-erukala) |
description: | updated |
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Confirmed |
importance: | Low → Wishlist |
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in nova: | |
milestone: | none → grizzly-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-1 → 2013.1 |
To post a comment you must log in.
While trying to create a volume using an invalid JSON request body which doesn't contain "volume", "size" keywords then HTTP400 and HTTP422 error responses are being returned with generic error messages as follows:
$ curl -i http:// 127.0.0. 1:8776/ v1/01397f9733ea 4b7b9adb0647c18 7163e/volumes -X POST -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 3727775c56274c9 a9689bf01fe3315 93" -d'{"volume": {"snapshot_id": null, "display_name": null, "volume_type": null, "display_ description" : null, "sze": 1}}' Request- Id: req-196de57a- ea8c-4f46- bda7-8e8cf37e60 3d
HTTP/1.1 400 Bad Request
Content-Length: 141
Content-Type: application/json; charset=UTF-8
X-Compute-
Date: Tue, 25 Sep 2012 14:33:00 GMT
{"badRequest": {"message": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400}}
$ curl -i http:// 127.0.0. 1:8776/ v1/01397f9733ea 4b7b9adb0647c18 7163e/volumes -X POST -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 3727775c56274c9 a9689bf01fe3315 93" -d'{"volum": {"snapshot_id": null, "display_name": null, "volume_type": null, "display_ description" : null, "size": 1}}' Request- Id: req-e7083775- f2e1-4c85- 8f04-5f6301f19a 5a
HTTP/1.1 422 Unprocessable Entity
Content-Length: 90
Content-Type: application/json; charset=UTF-8
X-Compute-
Date: Tue, 25 Sep 2012 14:33:20 GMT
{"computeFault": {"message": "Unable to process the contained instructions", "code": 422}}openstack@ ubuntu1204: ~$
If these messages can be specific, that will be helpful to the user.