Ironic SeaMicro interfaces.
Provides basic power control of servers in SeaMicro chassis via python-seamicroclient.
Provides vendor passthru methods for SeaMicro specific functionality.
Bases: ironic.drivers.base.ManagementInterface
Get the current boot device for the task’s node.
Returns the current boot device of the node. Be aware that not all drivers support this.
| Parameters: | task – a task from TaskManager. | ||||
|---|---|---|---|---|---|
| Returns: | a dictionary containing:
  | 
Get sensors data method.
Not implemented by this driver. :param task: a TaskManager instance.
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 the task’s node.
Set the boot device to use on next reboot of the node.
| Parameters: | 
  | 
|---|---|
| Raises: | InvalidParameterValue if an invalid boot device is specified or if a seamicro parameter is invalid.  | 
| Raises: | IronicException on an error from seamicro-client.  | 
| Raises: | MissingParameterValue when a required parameter is missing  | 
Check that ‘driver_info’ contains SeaMicro 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 when a required parameter is missing | 
Bases: ironic.drivers.base.PowerInterface
SeaMicro Power Interface.
This PowerInterface class provides a mechanism for controlling the power state of servers in a seamicro chassis.
Get the current power state of the task’s node.
Poll the host for the current power state of the node.
| Parameters: | task – a TaskManager instance containing the node to act on. | 
|---|---|
| Raises: | ServiceUnavailable on an error from SeaMicro Client. | 
| Raises: | InvalidParameterValue if a seamicro parameter is invalid. | 
| Raises: | MissingParameterValue when a required parameter is missing | 
| Returns: | power state. One of ironic.common.states. | 
Cycles the power to the task’s node.
| Parameters: | task – a TaskManager instance containing the node to act on. | 
|---|---|
| Raises: | InvalidParameterValue if a seamicro parameter is invalid. | 
| Raises: | MissingParameterValue if required seamicro parameters are missing. | 
| Raises: | PowerStateFailure if the final state of the node is not POWER_ON. | 
Turn the power on or off.
Set the power state of a node.
| Parameters: | 
  | 
|---|---|
| Raises: | InvalidParameterValue if an invalid power state was specified or a seamicro parameter is invalid.  | 
| Raises: | MissingParameterValue when a required parameter is missing  | 
| Raises: | PowerStateFailure if the desired power state couldn’t be set.  | 
Bases: ironic.drivers.base.ConsoleInterface
A ConsoleInterface that uses telnet and shellinabox.
Get the type and connection information about the console.
| Raises: | MissingParameterValue if required seamicro parameters are missing | 
|---|---|
| Raises: | InvalidParameterValue if required parameter are invalid. | 
Start a remote console for the node.
| Parameters: | task – a task from TaskManager | 
|---|---|
| Raises: | MissingParameterValue if required seamicro parameters are missing | 
| Raises: | ConsoleError if the directory for the PID file cannot be created | 
| Raises: | ConsoleSubprocessFailed when invoking the subprocess failed | 
| Raises: | InvalidParameterValue if required parameter are invalid. | 
Bases: ironic.drivers.base.VendorInterface
SeaMicro vendor-specific methods.
Attach a volume to a node.
Attach volume from SeaMicro storage pools for ironic to node. If kwargs[‘volume_id’] not given, Create volume in SeaMicro storage pool and attach to node.