python-dracclient/dracclient/tests
David Paterson e0149f1e71 Add change_physical_disk_state function to client
Build a list of controllers which had disks converted
to or from RAID/JBOD and inidicate if a reboot is required.

The following steps allow the caller to retrieve a list of
controllers that have disks comverted to the specified
RAID status:
- Examine all disks in the system and filter out any that
are not attached to a RAID/BOSS controller.
- Inspect the controllers' disks to see if there are
disks that need to be converted. If a disk is already in
the desired status the disk is ignored, otherwise
it is converted. This function also handles failed or
unknown disk status appropriately and will raise exception(s)
where needed.
- Finally a dict is returned containing a list of controller
IDs for controllers whom had any of their disks converted,
and whether a reboot is required.

Typically the caller would then create a config job for the
list of controllers returned to finalize the RAID
configuration and reboot the node if necessary.

Change-Id: I5229f7699c9ca1d5b72a54b4ddcea6313b440836
Co-Authored-By: Christopher Dearborn <Christopher.Dearborn@dell.com>
(cherry picked from commit bef7a0a8ce)
2018-10-24 14:05:32 +00:00
..
wsman_mocks Add change_physical_disk_state function to client 2018-10-24 14:05:32 +00:00
__init__.py Add tox.ini 2015-08-05 14:52:39 +02:00
base.py Replacing pywsman with a simple wsman client 2015-09-30 09:51:37 +02:00
test_bios.py Add ability to schedule jobs 2018-07-06 15:27:46 -04:00
test_client.py Allow invoke without checking the return value 2018-01-11 16:00:38 -05:00
test_idrac_card.py Adds ability to reset iDRAC 2018-10-10 20:06:37 +00:00
test_inventory.py Add UUID to System object in python-dracclient 2018-09-28 20:45:38 +00:00
test_job.py Delete Job API 2018-08-08 09:21:28 -04:00
test_lifecycle_controller.py Simplify get Lifecycle Controller version 2017-07-27 10:37:20 -04:00
test_nic.py Add support for NIC configuration 2018-07-27 15:48:07 -04:00
test_raid.py Add change_physical_disk_state function to client 2018-10-24 14:05:32 +00:00
test_system.py Enumerate operations can wait until iDRAC is ready 2017-07-25 17:27:42 -04:00
test_utils.py Separate reboot required from commit required 2018-01-22 09:36:53 -05:00
test_wsman.py Filter out non-ASCII characters on invalid UTF8 2018-07-09 17:40:52 -04:00
utils.py Adds ability to reset iDRAC 2018-10-10 20:06:37 +00:00