NoneBases: ironic.drivers.modules.agent.AgentDeploy, ironic.drivers.modules.oneview.deploy.OneViewPeriodicTasks
Class for OneView Agent deployment driver.
OneViewAgentDeploy.get_properties()¶Return the properties of the interface.
| Returns: | dictionary of <property name>:<property description> entries. |
|---|
OneViewAgentDeploy.prepare(task)¶Prepare the deployment environment for this node.
| Parameters: | task – a TaskManager instance. |
|---|---|
| Raises: | NetworkError: if the previous cleaning ports cannot be removed or if new cleaning ports cannot be created. |
| Raises: | InvalidParameterValue when the wrong power state is specified or the wrong driver info is specified for power management. |
| Raises: | StorageError If the storage driver is unable to attach the configured volumes. |
| Raises: | other exceptions by the node’s power driver if something wrong occurred during the power action. |
| Raises: | exception.ImageRefValidationFailed if image_source is not Glance href and is not HTTP(S) URL. |
| Raises: | exception.InvalidParameterValue if network validation fails. |
| Raises: | any boot interface’s prepare_ramdisk exceptions. |
OneViewAgentDeploy.prepare_cleaning(task)¶Boot into the agent to prepare for cleaning.
| Parameters: | task – a TaskManager object containing the node |
|---|---|
| Raises: | NodeCleaningFailure, NetworkError if the previous cleaning ports cannot be removed or if new cleaning ports cannot be created. |
| Raises: | InvalidParameterValue if cleaning network UUID config option has an invalid value. |
| Returns: | states.CLEANWAIT to signify an asynchronous prepare |
OneViewAgentDeploy.tear_down(task)¶Tear down a previous deployment on the task’s node.
| Parameters: | task – a TaskManager instance. |
|---|---|
| Returns: | status of the deploy. One of ironic.common.states. |
| Raises: | NetworkError if the cleaning ports cannot be removed. |
| Raises: | InvalidParameterValue when the wrong power state is specified or the wrong driver info is specified for power management. |
| Raises: | StorageError when the storage interface attached volumes fail to detach. |
| Raises: | other exceptions by the node’s power driver if something wrong occurred during the power action. |
OneViewAgentDeploy.tear_down_cleaning(task)¶Clean up the PXE and DHCP files after cleaning.
| Parameters: | task – a TaskManager object containing the node |
|---|---|
| Raises: | NodeCleaningFailure, NetworkError if the cleaning ports cannot be removed |
OneViewAgentDeploy.validate(task)¶Validate the driver-specific Node deployment info.
This method validates whether the properties of the supplied node contain the required information for this driver to deploy images to the node.
| Parameters: | task – a TaskManager instance |
|---|---|
| Raises: | MissingParameterValue, if any of the required parameters are missing. |
| Raises: | InvalidParameterValue, if any of the parameters have invalid value. |
NoneBases: ironic.drivers.modules.iscsi_deploy.ISCSIDeploy, ironic.drivers.modules.oneview.deploy.OneViewPeriodicTasks
Class for OneView ISCSI deployment driver.
OneViewIscsiDeploy.get_properties()¶Return the properties of the interface.
| Returns: | dictionary of <property name>:<property description> entries. |
|---|
OneViewIscsiDeploy.prepare(task)¶Prepare the deployment environment for this task’s node.
Generates the TFTP configuration for PXE-booting both the deployment and user images, fetches the TFTP image from Glance and add it to the local cache.
| Parameters: | task – a TaskManager instance containing the node to act on. |
|---|---|
| Raises: | NetworkError: if the previous cleaning ports cannot be removed or if new cleaning ports cannot be created. |
| Raises: | InvalidParameterValue when the wrong power state is specified or the wrong driver info is specified for power management. |
| Raises: | StorageError If the storage driver is unable to attach the configured volumes. |
| Raises: | other exceptions by the node’s power driver if something wrong occurred during the power action. |
| Raises: | any boot interface’s prepare_ramdisk exceptions. |
OneViewIscsiDeploy.prepare_cleaning(task)¶Boot into the agent to prepare for cleaning.
| Parameters: | task – a TaskManager object containing the node |
|---|---|
| Raises: | NodeCleaningFailure – if the previous cleaning ports cannot be removed or if new cleaning ports cannot be created |
| Returns: | states.CLEANWAIT to signify an asynchronous prepare. |
OneViewIscsiDeploy.tear_down(task)¶Tear down a previous deployment on the task’s node.
Power off the node. All actual clean-up is done in the clean_up() method which should be called separately.
| Parameters: | task – a TaskManager instance containing the node to act on. |
|---|---|
| Returns: | deploy state DELETED. |
| Raises: | NetworkError if the cleaning ports cannot be removed. |
| Raises: | InvalidParameterValue when the wrong state is specified or the wrong driver info is specified. |
| Raises: | StorageError when volume detachment fails. |
| Raises: | other exceptions by the node’s power driver if something wrong occurred during the power action. |
OneViewIscsiDeploy.tear_down_cleaning(task)¶Clean up the PXE and DHCP files after cleaning.
| Parameters: | task – a TaskManager object containing the node |
|---|---|
| Raises: | NodeCleaningFailure – if the cleaning ports cannot be removed |
OneViewIscsiDeploy.validate(task)¶Validate the deployment information for the task’s node.
| Parameters: | task – a TaskManager instance containing the node to act on. |
|---|---|
| Raises: | InvalidParameterValue. |
| Raises: | MissingParameterValue |
NoneBases: object
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.