ironic/ironic/conductor
John L. Villalovos 8ceaad42ff ipmitool: reboot: Don't power off node if already off
Commit ee5d4942a1 changed the existing
behavior so that if an ipmitool command fails when attempting to set
the power state it causes a failure.  The problem with that approach
is that on some systems if the system is already in the desired power
state, an error will be generated when ipmitool tries to change it to
the desired power state.

Now when doing a reboot command we check beforehand to see if the node
is already off, if so then don't attempt to power off the node again.

Also optimize ironic/conductor/utils.py node_power_action() so that it
only checks a node's power status if it might perform an action based
on the node's power status.

Change-Id: If838aae871753ebfbdf359e0bbe3afcc54c4b559
Closes-Bug: #1718794
2017-09-27 17:19:46 -07:00
..
__init__.py Remove copyright from empty files 2014-01-07 21:05:01 +08:00
base_manager.py Adds more exception handling for ironic-conductor heartbeat 2017-09-18 12:53:31 +00:00
manager.py Prevent changes of a resource class for an active node 2017-08-11 11:58:12 +02:00
notification_utils.py Add node console notifications 2016-12-23 08:51:54 +00:00
rpcapi.py Rolling upgrades support for create_port RPCAPI 2017-07-26 18:23:17 +01:00
task_manager.py add portgroups in the task_manager docstrings 2017-04-10 04:04:18 +00:00
utils.py ipmitool: reboot: Don't power off node if already off 2017-09-27 17:19:46 -07:00