Normal response codes of "Suspend stack" should be 200
Bug #1477109 reported by
Yutaro Iwakiri
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Triaged
|
Low
|
Unassigned | ||
openstack-api-site |
Fix Released
|
Low
|
Unassigned |
Bug Description
In http://
the normal response code for "Suspend stack" is described 201.
However, heat returns 200.
But, it should probably be 202 in both!
Changed in openstack-api-site: | |
assignee: | nobody → Yutaro Iwakiri (iwakiri-yutaro) |
Changed in heat: | |
milestone: | liberty-3 → next |
tags: | added: heat |
Changed in openstack-api-site: | |
assignee: | Yutaro Iwakiri (iwakiri-yutaro) → nobody |
To post a comment you must log in.
CLI debug log ubuntu- trusty- 64:~$ heat --debug action-suspend stack
----
stack@vagrant-
...
DEBUG (session) REQ: curl -g -i -X POST http:// xxx.xxx. xxx.xxx: 8004/v1/ 7e9157722a414d6 9b472d1b1764787 89/stacks/ stack/actions -H "Accept: application/json" -H "User-Agent: python-heatclient" -H "X-Region-Name: RegionOne" -H "X-Auth-Token: {SHA1}b0b670a34 442188f567f6ab6 e2a336a9a3803f4 f" -H "Content-Type: application/json" -H "X-Auth-Url: http:// xxx.xxx. xxx.xxx: 5000/v2. 0" -d '{"suspend": null}'
...
DEBUG (connectionpool) "POST /v1/7e9157722a4 14d69b472d1b176 478789/ stacks/ stack/19380f52- 4f41-4701- 8054-5fae1d8e8b 4d/actions HTTP/1.1" 200 4 request- id: req-01557cb0- 37f5-4fb8- b388-edfb56cabd 01
DEBUG (session) RESP: [200] date: Wed, 22 Jul 2015 03:36:04 GMT connection: keep-alive content-type: application/json; charset=UTF-8 content-length: 4 x-openstack-
RESP BODY: null
...
----