Abandon and Delete API status codes are wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Won't Fix
|
Medium
|
Jeff Peeler | ||
openstack-api-site |
Fix Released
|
Undecided
|
Jeff Peeler |
Bug Description
It seems that both stack abandon and delete return the wrong (different!) status codes:
$ curl -i -X DELETE -H 'User-Agent: python-heatclient' -H 'Content-Type: application/
HTTP/1.1 204 No Content
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Date: Thu, 27 Mar 2014 17:17:52 GMT
$ curl -i -X DELETE -H 'User-Agent: python-heatclient' -H 'Content-Type: application/
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 175
Date: Thu, 27 Mar 2014 17:18:09 GMT
So they return 204/200 when they should return 202 (HTTPAccepted) as they both start threads to do the delete asynchronously.
Changed in heat: | |
importance: | Undecided → Medium |
milestone: | none → juno-1 |
Changed in heat: | |
milestone: | juno-1 → juno-2 |
Changed in heat: | |
assignee: | nobody → Jeff Peeler (jpeeler-z) |
Changed in heat: | |
milestone: | juno-2 → juno-3 |
Changed in heat: | |
status: | Triaged → In Progress |
Changed in heat: | |
milestone: | juno-3 → none |
Related, the docs are wrong for adopt (says 204):
http:// api.openstack. org/api- ref-orchestrati on.html
Also it seems there are tests in both heatclient and tempest which expect 204 for delete