ironic/ironic/tests
Christopher Dearborn f8a6682575 Fix issue where server fails to reboot
The iDRAC will return a "The command failed to set RequestedState" error
if the server is powered off and a reboot is requested.  In this
situation, convert the requested reboot into a power on to avoid this
error.

To minimize the chance of a race condition, it is critical to do this
check immediately before sending the power state change command.  This
keeps the window during which the server could change power states
without us knowing about it as small as possible.

Note that this error is returned in other scenarios as well.

Conflicts:
      ironic/drivers/modules/drac/power.py

Change-Id: I4c95959090423ff1929700f0fce596510447ac1c
Story: 2007487
Task: 39206
(cherry picked from commit 95a3e1bdfd)
2020-04-22 13:36:09 +03:00
..
functional Prepare for functional testing 2015-09-28 21:27:01 +00:00
unit Fix issue where server fails to reboot 2020-04-22 13:36:09 +03:00
__init__.py Prepare for functional testing 2015-09-28 21:27:01 +00:00
base.py Add rescue related methods to network interface 2018-01-22 11:37:32 -05:00