ironic/ironic/tests/unit/drivers/modules/drac
Rachit7194 cedb2ad0ea DRAC: Fix a failure to create virtual disk bug
Certain RAID controllers (PERC H730P) require physical disks
to be switched from non-RAID (JBOD) mode to RAID mode to be
included in a virtual disk.  When this conversion happens,
the available free space on the physical disk is reduced due
to some space being allocated to RAID mode housekeeping.
If the user requests a virtual disk (a RAID 1 for example)
with a size close to the max size of the physical disks when
they are in JBOD mode, then creation of the virtual disk
following conversion of the physical disks from JBOD to RAID
mode will fail since there is not enough space due to the
space used by RAID mode housekeeping.
This patch works around this issue by recalculating the RAID
volume size after physical disk conversion has completed and
the free space on the converted drives is known.  Note that
this may result in a virtual disk that is slightly smaller
than the requested size, but still the max size that the
drives can support.

Conflicts:
	ironic/tests/unit/drivers/modules/drac/test_raid.py

Change-Id: I720ab15e811f498aa15b88bfe8bb35fc49df292b
Story: 2007359
Task: 38912
(cherry picked from commit 84e8b11a6d)
2020-10-06 22:31:31 +00:00
..
__init__.py Move unit tests to correct directory 2015-09-30 17:47:19 -07:00
test_bios.py Remove the remaining fake drivers 2018-06-18 18:52:04 +02:00
test_common.py Removing deprecated drac_host property 2019-01-31 08:14:30 +01:00
test_inspect.py Set boot_mode in node properties during OOB Introspection 2019-03-16 05:15:22 -04:00
test_job.py Add iDRAC RAID deploy steps 2019-09-22 20:48:26 +01:00
test_management.py DRAC: Fix a bug for clear_job_queue clean step with non-BIOS pending job 2019-10-14 05:49:17 +00:00
test_periodic_task.py Fix RAID configuration with idrac-wsman interface 2020-04-23 08:00:31 +00:00
test_power.py Fix issue where server fails to reboot 2020-04-21 15:14:17 +00:00
test_raid.py DRAC: Fix a failure to create virtual disk bug 2020-10-06 22:31:31 +00:00
utils.py Add first idrac HW type Redfish interface support 2019-09-16 07:19:17 -04:00