ironicclient should display the faultstring returned from api
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Invalid
|
Undecided
|
jiangfei | ||
python-ironicclient |
Fix Released
|
Medium
|
jiangfei |
Bug Description
ironic-api
curl -i -X GET http://
HTTP/1.0 404 Not Found
Date: Tue, 16 Dec 2014 03:01:05 GMT
Server: WSGIServer/0.1 Python/2.7.6
Content-Type: application/json
Content-Length: 153
{"error_message": "{\"debuginfo\": null, \"faultcode\": \"Client\", \"faultstring\": \"Node 1278a5d7-
when ironicclient use the HTTPClient, ironic node-show invalid uuid of node. we get the bleow message:
~/ironic# ironic node-show 6cabe4d8-
Node 6cabe4d8-
but when ironicclient use SessionClient, we get the bleow message:
# ironic node-show a938513a-
Not Found (HTTP 404)
ironic should return the faultstring to user.
Changed in ironic: | |
assignee: | nobody → jiangfei (jiangfei0622) |
Changed in ironic: | |
status: | New → Triaged |
status: | Triaged → Invalid |
Changed in python-ironicclient: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in python-ironicclient: | |
assignee: | nobody → jiangfei (jiangfei0622) |
Changed in python-ironicclient: | |
status: | Triaged → In Progress |
Changed in python-ironicclient: | |
milestone: | none → 0.7.0 |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/142021 /git.openstack. org/cgit/ openstack/ python- ironicclient/ commit/ ?id=9f919eed63a 95ecbc8d43929c4 e81c9f0693ddfb
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9f919eed63a95ec bc8d43929c4e81c 9f0693ddfb
Author: jiangfei <email address hidden>
Date: Tue Dec 16 15:35:53 2014 +0800
ironicclient handle faultstring when using SessionClient
When the ironic-api returns an error code 400-600 when,
SessionClient faultstring did not return to the user,
it should return a detailed error message to the user,
not simply bad request.
we use the ironic node-show aa938513a- 216a-49dc- b801-08119ebc2b 21 216a-49dc- b801-08119ebc2b 21 could not be
SessionClient will get the below message:
"Not Found (HTTP 404)" -->
"Node a938513a-
found. (HTTP 404)"
Change-Id: If57fd938cdb29d 0349b923ca5dc1a 804f1accd9d
Closes-Bug: #1402893