python-dracclient/dracclient
David Paterson bef7a0a8ce 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>
2018-10-19 18:43:44 -04:00
..
resources Add change_physical_disk_state function to client 2018-10-19 18:43:44 -04:00
tests Add change_physical_disk_state function to client 2018-10-19 18:43:44 -04:00
__init__.py Initial commit 2015-08-03 10:50:50 +02:00
client.py Add change_physical_disk_state function to client 2018-10-19 18:43:44 -04:00
constants.py Add change_physical_disk_state function to client 2018-10-19 18:43:44 -04:00
exceptions.py Raise a specific exception instead of generic AttributeError 2016-11-08 18:04:42 +01:00
utils.py Fixed indentation in utils.list_settings 2018-02-19 13:38:58 -05:00
wsman.py Filter out non-ASCII characters on invalid UTF8 2018-07-09 17:40:52 -04:00