ironic/ironic/tests/unit/drivers
Christopher Dearborn 1ccda02740 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:08:50 +03:00
..
modules Fix issue where server fails to reboot 2020-04-22 13:08:50 +03:00
__init__.py Prepare for functional testing 2015-09-28 21:27:01 +00:00
boot.ipxe Convert iPXE boot script to Jinja template 2016-11-21 18:44:38 +02:00
elilo_efi_pxe_config.template Do not pass ipa-driver-name as kernel parameter 2016-11-11 17:16:20 +02:00
ipxe_config.template Adds ramdisk deploy driver 2018-07-26 17:22:47 +00:00
ipxe_config_boot_from_volume_extra_volume.template Adds ramdisk deploy driver 2018-07-26 17:22:47 +00:00
ipxe_config_boot_from_volume_no_extra_volumes.template Adds ramdisk deploy driver 2018-07-26 17:22:47 +00:00
ipxe_config_timeout.template Adds ramdisk deploy driver 2018-07-26 17:22:47 +00:00
pxe_config.template Adds ramdisk deploy driver 2018-07-26 17:22:47 +00:00
pxe_grub_config.template grub configuration should use user kernel & ramdisk 2019-10-08 13:52:34 +00:00
test_base.py Deploy steps - conductor & drivers 2018-07-11 16:18:59 +00:00
test_cisco.py Add I202 to flake ignore list 2017-10-25 14:32:52 +03:00
test_drac.py Remove the iDRAC classic drivers 2018-06-26 14:29:37 +02:00
test_fake_hardware.py Adds boot mode support to ManagementInterface 2018-06-15 15:19:41 +00:00
test_generic.py Add the noop management interface to the manual-management hardware type 2019-04-02 14:47:19 +00:00
test_ilo.py iLO BIOS interface implementation 2018-07-20 17:52:46 +05:30
test_ipmi.py Add "noop" management and use it in the "ipmi" hardware type 2018-08-07 13:25:50 +00:00
test_irmc.py Follow-up changes to iRMC bios interface. 2018-07-18 08:12:45 +00:00
test_oneview.py Remove the OneView classic drivers 2018-06-26 14:30:27 +02:00
test_redfish.py Add redfish driver 2017-04-21 11:06:24 +01:00
test_snmp.py Switch the "snmp" hardware type to "noop" management 2018-08-07 15:40:29 +00:00
test_utils.py Completely stop using the "fake" classic driver in unit tests 2018-06-06 16:10:43 +02:00
test_xclarity.py tox.ini: flake8: Remove I202 from ignore list 2018-02-26 09:00:42 -08:00
third_party_driver_mock_specs.py DRAC: Fix OOB introspection to use pxe_enabled flag in idrac driver 2019-08-15 23:38:59 +00:00
third_party_driver_mocks.py Fix issue where server fails to reboot 2020-04-22 13:08:50 +03:00