PUT /os-services/force-down won't work with non-boolean forced_down field
Bug #1697497 reported by
Matt Riedemann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Ken'ichi Ohmichi | ||
Newton |
Fix Committed
|
Medium
|
Matt Riedemann | ||
Ocata |
Fix Committed
|
Medium
|
Matt Riedemann |
Bug Description
This API's docs says it takes a boolean for the forced_down field:
But the schema uses the boolean parameter type:
Which is not only booleans, it's also things like 'on/off' and 'yes/no':
Which isn't converted to a boolean:
That's just passed through to update the service object:
Which is expecting a boolean, so 'yes' or 'on' is going to result in an error.
Changed in nova: | |
assignee: | Ken'ichi Ohmichi (oomichi) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Ken'ichi Ohmichi (oomichi) |
To post a comment you must log in.
We should probably be using oslo_utils. strutils. bool_from_ string:
https:/ /github. com/openstack/ oslo.utils/ blob/master/ oslo_utils/ strutils. py#L113