Power off new nodes when making them available, not right after enrolling
Doing it for newly enrolled nodes that didn't go through "manage" action
is wrong, because we only validate power credentials during this action.
Also, this power off request can lock nodes for substantial time, causing
the following "manage" workflow to fail with "node locked" error.
Actually, both ironic and ironic-inspector can safely handle nodes that are
powered on. However, this may be confusing for users looking at node list.
This patch moves powering off to the "provide" workflow with proper wait
and error handling.
Change-Id: Ie2e5baa10adf67148d335d6127ff1dfe45e91968
Closes-Bug: #1638281
(cherry picked from commit fee42cebe2768bf34101bcd5ebae5deaebd92e68)
Reviewed: https:/ /review. openstack. org/394541 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=5a7c0236373 300f3f9f80a3185 3b393d07bac234
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 5a7c0236373300f 3f9f80a31853b39 3d07bac234
Author: Dmitry Tantsur <email address hidden>
Date: Tue Nov 1 14:01:04 2016 +0100
Power off new nodes when making them available, not right after enrolling
Doing it for newly enrolled nodes that didn't go through "manage" action
is wrong, because we only validate power credentials during this action.
Also, this power off request can lock nodes for substantial time, causing
the following "manage" workflow to fail with "node locked" error.
Actually, both ironic and ironic-inspector can safely handle nodes that are
powered on. However, this may be confusing for users looking at node list.
This patch moves powering off to the "provide" workflow with proper wait
and error handling.
Change-Id: Ie2e5baa10adf67 148d335d6127ff1 dfe45e91968 34101bcd5ebae5d eaebd92e68)
Closes-Bug: #1638281
(cherry picked from commit fee42cebe2768bf