DRAC RAID specific methods
ironic.drivers.modules.drac.raid.DracRAID[source]¶Bases: ironic.drivers.base.RAIDInterface
create_configuration(**kwargs)[source]¶Create the RAID configuration.
This method creates the RAID configuration on the given node.
| Parameters: |
|
|---|---|
| Returns: | states.CLEANWAIT 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(**kwargs)[source]¶Delete the RAID configuration.
| Parameters: | task – a TaskManager instance containing the node to act on. |
|---|---|
| Returns: | states.CLEANWAIT 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.commit_config(node, raid_controller, reboot=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.