Fix error handling in set_provision_state/set_power_state workflows
Currently these workflows succeed in any case, since we don't have
any condition to fail. This change makes them fail if the resulting
state does not match the expected one.
It also handles the case when a node goes into one of the failure
states, so that we don't wait until timeout. Proper error message
is returned to avoid confusing operators.
Finally, it reduces the traffic between mistral and ironic by only
requesting the required fields.
Reviewed: https:/ /review. openstack. org/559314 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=27b2ef1d723 65c105be7bc03eb 1f67986688dfe7
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 27b2ef1d72365c1 05be7bc03eb1f67 986688dfe7
Author: Dmitry Tantsur <email address hidden>
Date: Wed Mar 14 14:20:15 2018 +0100
Fix error handling in set_provision_ state/set_ power_state workflows
Currently these workflows succeed in any case, since we don't have
any condition to fail. This change makes them fail if the resulting
state does not match the expected one.
It also handles the case when a node goes into one of the failure
states, so that we don't wait until timeout. Proper error message
is returned to avoid confusing operators.
Finally, it reduces the traffic between mistral and ironic by only
requesting the required fields.
Conflicts: baremetal. yaml
workbooks/
Partial-Bug: #1755754 80b0337bc02a6cc ee4a81411b5 914b783282c544b 5233af0260)
Closes-Bug: #1667776
Change-Id: Ice19306d4c4a20
(cherry picked from commit d97cd4a00556457