The ironic.drivers.modules.drac.raid Module

DRAC RAID specific methods

class ironic.drivers.modules.drac.raid.DracRAID[source]

Bases: ironic.drivers.base.RAIDInterface

create_configuration(task, create_root_volume=True, create_nonroot_volumes=True)[source]

Create the RAID configuration.

This method creates the RAID configuration on the given node.

Parameters:
  • task – a TaskManager instance containing the node to act on.
  • create_root_volume – If True, a root volume is created during RAID configuration. Otherwise, no root volume is created. Default is True.
  • create_nonroot_volumes – If True, non-root volumes are created. If False, no non-root volumes are created. Default is True.
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(task)[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.
get_logical_disks(task)[source]

Get the RAID configuration of the node.

Parameters:task – a TaskManager instance containing the node to act on.
Returns:A dictionary of properties.
Raises:DracOperationError on an error from python-dracclient.
get_properties()[source]

Return the properties of the interface.

Project Source

This Page