Errors to be propagated as ReST http response
Bug #1576820 reported by
Soumik Samanta
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In case of any heat error due to either bad template or error from the nova/neutron, the heat client returns a description indicating the cause of the error.
However, if ReST API is used, only 500 Internal Server Error response is returned and the consumer has no clue of the cause of the error.
Though the error is logged in the heat-api.log, it would be extremely helpful to the API consumers if a proper error message is returned in the HTTP response.
Changed in heat: | |
status: | Invalid → Won't Fix |
status: | Won't Fix → Incomplete |
To post a comment you must log in.
Hi Soumik,
I went to try to reproduce this by submitting an invalid template, but the API gave a 400 HTTP response:
RESP BODY: {"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "Property error: : resources. random_ key_name. properties. length: : \"str_replace\" params must be strings or numbers", "traceback": null, "type": "StackValidatio nFailed" }, "title": "Bad Request"}
Can you please provide some steps on how to reproduce?
Jason