ironic.drivers.modules.irmc.common module¶
Common functionalities shared between different iRMC modules.
-
ironic.drivers.modules.irmc.common.
get_irmc_client
(node)[source]¶ Gets an iRMC SCCI client.
Given an ironic node object, this method gives back a iRMC SCCI client to do operations on the iRMC.
- Parameters
node – An ironic node object.
- Returns
scci_cmd partial function which takes a SCCI command param.
- Raises
InvalidParameterValue on invalid inputs.
- Raises
MissingParameterValue if some mandatory information is missing on the node
- Raises
IRMCOperationError if iRMC operation failed
-
ironic.drivers.modules.irmc.common.
get_irmc_report
(node)[source]¶ Gets iRMC SCCI report.
Given an ironic node object, this method gives back a iRMC SCCI report.
- Parameters
node – An ironic node object.
- Returns
A xml.etree.ElementTree object.
- Raises
InvalidParameterValue on invalid inputs.
- Raises
MissingParameterValue if some mandatory information is missing on the node.
- Raises
scci.SCCIInvalidInputError if required parameters are invalid.
- Raises
scci.SCCIClientError if SCCI failed.
-
ironic.drivers.modules.irmc.common.
parse_driver_info
(node)[source]¶ Gets the specific Node driver info.
This method validates whether the ‘driver_info’ property of the supplied node contains the required information for this driver.
- Parameters
node – An ironic node object.
- Returns
A dict containing information from driver_info and default values.
- Raises
InvalidParameterValue if invalid value is contained in the ‘driver_info’ property.
- Raises
MissingParameterValue if some mandatory key is missing in the ‘driver_info’ property.