openstacksdk/releasenotes/notes/provision-state-negotiation-0155b4d0e932054c.yaml
Dmitry Tantsur 2d844d775a Fix microversion negotiation in some bare metal node call
Using utils.pick_microversion means that the result may be None,
which is likely lower than a version negotiated for the resource.

For example, when calling set_node_provision_state(<node name>, "provide"),
it is determined that "provide" does not require a non-default microversion,
so None is used, breaking using node name.

This change switches set_node_provision_state, set_node_power_state and
patch_node to _assert_microversion_for that takes into account the
microversion negotiated for the resource.

Change-Id: Ia81d8a39ca1c8407c689e7d128ace82071b52a01
2020-03-11 12:50:16 +01:00

13 lines
354 B
YAML

---
fixes:
- |
Fixes API version negotiation in the following bare metal node calls:
* ``set_node_provision_state``
* ``set_node_power_state``
* ``patch_node``
Previously an unexpectingly low version could be negotiated, breaking
certain features, for example calling the ``provide`` provisioning action
with a node name.