VirtualBox Driver Modules
Bases: ironic.drivers.base.ManagementInterface
Get the current boot device for a node.
Parameters: | task – a task from TaskManager. |
---|---|
Returns: | a dictionary containing: ‘boot_device’: one of the ironic.common.boot_devices or None ‘persistent’: True if boot device is persistent, False otherwise |
Raises: | MissingParameterValue, if some required parameter(s) are missing in the node’s driver_info. |
Raises: | InvalidParameterValue, if some parameter(s) have invalid value(s) in the node’s driver_info. |
Raises: | VirtualBoxOperationFailed, if error encountered from VirtualBox operation. |
Get sensors data.
Parameters: | task – a TaskManager instance. |
---|---|
Raises: | FailedToGetSensorData when getting the sensor data fails. |
Raises: | FailedToParseSensorData when parsing sensor data fails. |
Returns: | returns a consistent format dict of sensor data grouped by sensor type, which can be processed by Ceilometer. |
Get a list of the supported boot devices.
Parameters: | task – a task from TaskManager. |
---|---|
Returns: | A list with the supported boot devices defined in ironic.common.boot_devices. |
Set the boot device for a node.
Parameters: |
|
---|---|
Raises: | MissingParameterValue, if some required parameter(s) are missing in the node’s driver_info. |
Raises: | InvalidParameterValue, if some parameter(s) have invalid value(s) in the node’s driver_info. |
Raises: | VirtualBoxOperationFailed, if error encountered from VirtualBox operation. |
Check that ‘driver_info’ contains required credentials.
Validates whether the ‘driver_info’ property of the supplied task’s node contains the required credentials information.
Parameters: | task – a task from TaskManager. |
---|---|
Raises: | MissingParameterValue, if some required parameter(s) are missing in the node’s driver_info. |
Raises: | InvalidParameterValue, if some parameter(s) have invalid value(s) in the node’s driver_info. |
Bases: ironic.drivers.base.PowerInterface
Gets the current power state.
Parameters: | task – a TaskManager instance. |
---|---|
Returns: | one of ironic.common.states |
Raises: | MissingParameterValue, if some required parameter(s) are missing in the node’s driver_info. |
Raises: | InvalidParameterValue, if some parameter(s) have invalid value(s) in the node’s driver_info. |
Raises: | VirtualBoxOperationFailed, if error encountered from VirtualBox operation. |
Reboot the node.
Parameters: | task – a TaskManager instance. |
---|---|
Raises: | MissingParameterValue, if some required parameter(s) are missing in the node’s driver_info. |
Raises: | InvalidParameterValue, if some parameter(s) have invalid value(s) in the node’s driver_info. |
Raises: | VirtualBoxOperationFailed, if error encountered from VirtualBox operation. |
Turn the current power state on or off.
Parameters: |
|
---|---|
Raises: | MissingParameterValue, if some required parameter(s) are missing in the node’s driver_info. |
Raises: | InvalidParameterValue, if some parameter(s) have invalid value(s) in the node’s driver_info OR if an invalid power state was specified. |
Raises: | VirtualBoxOperationFailed, if error encountered from VirtualBox operation. |
Check if node.driver_info contains the required credentials.
Parameters: | task – a TaskManager instance. |
---|---|
Raises: | MissingParameterValue, if some required parameter(s) are missing in the node’s driver_info. |
Raises: | InvalidParameterValue, if some parameter(s) have invalid value(s) in the node’s driver_info. |