Inconsistence in what is returned by the Ironic API when setting the power or provision states
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Medium
|
Lucas Alvares Gomes |
Bug Description
There's an incosistence in the Ironic API when the user is setting the power and provision state of a node.
- By setting the node's provision state, the Ironic api would return 202 _without_ a body message.
- By setting the node's power state, the Ironic api would return 202 _with_ a body mesage containing the current and target states of that node from the db.*
* The information returned is not updated, it's retuning the same values in the db of when the method was called.
I think that the right thing to do would be to just return 202 without a body message, and in the Location header of the resposne we would include a link to the /nodes/
ps*: Currently returning the Header Location is not supported by WSME, see: https:/
Changed in ironic: | |
importance: | Undecided → Medium |
Changed in ironic: | |
milestone: | none → icehouse-3 |
Changed in ironic: | |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
milestone: | icehouse-3 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/67506
Review: https:/