ironic/ironic/tests/unit/drivers/modules/drac
Yogesh Ramachandra 38cb614879 Fix idrac-wsman BIOS factory_reset result finding
This change fixes the idrac-wsman BIOS hardware interface
implementation's determination of the result of its factory_reset
cleaning/deploy step, and, on success, updating of the cached BIOS
settings to their defaults. It uses a deterministic means of identifying
when the reset has successfully completed and the default BIOS settings
are available to be read.

The time when the iDRAC last performed a system inventory is referred to
as Collect System Inventory on Restart (CSIOR). CSIOR updates the values
of BIOS settings that can be read from the iDRAC. The interface reads
the CSIOR and records it on the ironic bare metal node before requesting
the factory reset and rebooting the system to process the request.
Following the system reboot, the CSIOR is periodically read until its
value changes from its recorded value. If that occurs before the
configured amount of time has passed, the step succeeds and the cached
BIOS settings are updated. Otherwise, the step fails and the node is
placed in the failed state.

Story: 2008058
Task: 40739
Depends-On: https://review.opendev.org/c/openstack/python-dracclient/+/748571
Change-Id: I11b92612d6686b7133ddef67068664c9b81df30e
(cherry picked from commit 82627acadc)
(cherry picked from commit df368cbd8a)
2021-04-21 06:20:08 -04:00
..
__init__.py Move unit tests to correct directory 2015-09-30 17:47:19 -07:00
test_bios.py Fix idrac-wsman BIOS factory_reset result finding 2021-04-21 06:20:08 -04:00
test_boot.py Prevent redfish-virtual-media from being used with Dell nodes 2021-02-05 12:09:00 +01:00
test_common.py Switch to unittest mock 2020-04-30 19:04:17 +02:00
test_inspect.py DRAC : idrac-redfish inspect updates pxe port 2021-03-26 04:35:45 -04:00
test_job.py Switch to unittest mock 2020-04-30 19:04:17 +02:00
test_management.py Followup idrac configuration mold steps 2021-04-06 12:39:02 +00:00
test_periodic_task.py Fix idrac-wsman RAID step async error handling 2020-11-02 12:56:29 -05:00
test_power.py Enforce autospec in drac tests 2020-05-29 12:40:34 +00:00
test_raid.py Add Redfish RAID interface to idrac HW type 2021-03-19 12:11:50 -04:00
utils.py DRAC: Fix a failure to create virtual disk 2020-06-29 06:33:15 -04:00