DRAC RAID specific methods
ironic.drivers.modules.drac.raid.
DracRAID
[source]¶Bases: ironic.drivers.modules.drac.raid.DracWSManRAID
Class alias of class DracWSManRAID.
This class provides ongoing support of the deprecated ‘idrac’ RAID interface implementation entrypoint.
All bug fixes and new features should be implemented in its base class, DracWSManRAID. That makes them available to both the deprecated ‘idrac’ and new ‘idrac-wsman’ entrypoints. Such changes should not be made to this class.
ironic.drivers.modules.drac.raid.
DracWSManRAID
[source]¶Bases: ironic.drivers.base.RAIDInterface
apply_configuration
(task, raid_config, create_root_volume=True, create_nonroot_volumes=False, delete_existing=True)[source]¶Applies RAID configuration on the given node.
Parameters: |
|
---|---|
Raises: | InvalidParameterValue, if the RAID configuration is invalid. |
Returns: | states.DEPLOYWAIT if RAID configuration is in progress asynchronously or None if it is complete. |
create_configuration
(task, create_root_volume=True, create_nonroot_volumes=True, delete_existing=False)[source]¶Create the RAID configuration.
This method creates the RAID configuration on the given node.
Parameters: |
|
---|---|
Returns: | states.CLEANWAIT (cleaning) or states.DEPLOYWAIT (deployment) if creation is in progress asynchronously or None if it is completed. |
Raises: | MissingParameterValue, if node.target_raid_config is missing or empty. |
Raises: | DracOperationError on an error from python-dracclient. |
delete_configuration
(task)[source]¶Delete the RAID configuration.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Returns: | states.CLEANWAIT (cleaning) or states.DEPLOYWAIT (deployment) if deletion is in progress asynchronously or None if it is completed. |
Raises: | DracOperationError on an error from python-dracclient. |
ironic.drivers.modules.drac.raid.
abandon_config
(node, raid_controller)[source]¶Deletes all pending changes on a RAID controller.
Parameters: |
|
---|---|
Raises: | DracOperationError on an error from python-dracclient. |
ironic.drivers.modules.drac.raid.
change_physical_disk_state
(node, mode=None, controllers_to_physical_disk_ids=None)[source]¶Convert disks RAID status
This method converts the requested physical disks from RAID to JBOD or vice versa. It does this by only converting the disks that are not already in the correct state.
Parameters: |
|
---|---|
Returns: | a dictionary containing: - conversion_results, a dictionary that maps controller ids to the conversion results for that controller. The conversion results are a dict that contains: - The is_commit_required key with the value always set to True indicating that a config job must be created to complete disk conversion. - The is_reboot_required key with a RebootRequired enumerated value indicating whether the server must be rebooted to complete disk conversion. |
Raises: | DRACOperationError on an error from python-dracclient. |
ironic.drivers.modules.drac.raid.
clear_foreign_config
(node, raid_controller)[source]¶Free up the foreign drives.
Parameters: |
|
---|---|
Returns: | a dictionary containing - The is_commit_required needed key with a boolean value indicating whether a config job must be created for the values to be applied. - The is_reboot_required key with a RebootRequired enumerated value indicating whether the server must be rebooted to clear foreign configuration. |
Raises: | DracOperationError on an error from python-dracclient. |
ironic.drivers.modules.drac.raid.
commit_config
(node, raid_controller, reboot=False, realtime=False)[source]¶Apply all pending changes on a RAID controller.
Parameters: |
|
---|---|
Returns: | id of the created job |
Raises: | DracOperationError on an error from python-dracclient. |
ironic.drivers.modules.drac.raid.
create_virtual_disk
(node, raid_controller, physical_disks, raid_level, size_mb, disk_name=None, span_length=None, span_depth=None)[source]¶Create a single virtual disk on a RAID controller.
The created virtual disk will be in pending state. The DRAC card will do
the actual configuration once the changes are applied by calling the
commit_config
method.
Parameters: |
|
---|---|
Returns: | a dictionary containing the commit_needed key with a boolean value indicating whether a config job must be created for the values to be applied. |
Raises: | DracOperationError on an error from python-dracclient. |
ironic.drivers.modules.drac.raid.
delete_virtual_disk
(node, virtual_disk)[source]¶Delete a single virtual disk on a RAID controller.
The deleted virtual disk will be in pending state. The DRAC card will do
the actual configuration once the changes are applied by calling the
commit_config
method.
Parameters: |
|
---|---|
Returns: | a dictionary containing the commit_needed key with a boolean value indicating whether a config job must be created for the values to be applied. |
Raises: | DracOperationError on an error from python-dracclient. |
ironic.drivers.modules.drac.raid.
list_physical_disks
(node)[source]¶List the physical disks of the node.
Parameters: | node – an ironic node object. |
---|---|
Returns: | a list of PhysicalDisk objects from dracclient. |
Raises: | DracOperationError on an error from python-dracclient. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.