ironic/ironic/tests/unit
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
..
api Do not try to return mock as JSON in unit tests 2019-05-20 14:26:21 +00:00
cmd Allow data migrations to accept options 2018-01-25 16:51:42 +00:00
common Filter security group list on the ID's we expect 2019-07-30 10:46:03 +00:00
conductor Fix updating nodes with removed or broken drivers 2019-01-10 11:38:24 +01:00
conf Remove legacy auth loading 2017-06-06 10:20:54 +00:00
db Migration step to update objects to latest version 2018-10-26 14:06:51 +02:00
dhcp Use adapters for neutronclient 2017-12-14 13:36:03 +02:00
drivers Fix issue where server fails to reboot 2020-04-22 13:36:09 +03:00
objects Support nested objects and object lists in as_dict 2018-02-22 09:41:51 +00:00
__init__.py Setup logging in unit tests 2017-04-13 20:47:10 +03:00
policy_fixture.py Add keystone policy support to Ironic 2016-08-04 12:43:20 +00:00
raid_constants.py Fix for Unable to create RAID1 on Dell BOSS card 2018-08-17 14:02:14 +00:00
stubs.py Handle case when a glance image contains no data 2018-02-07 13:45:55 +01:00