ironic.drivers.modules.oneview.deploy.OneViewAgentDeploy[source]¶Bases: ironic.drivers.modules.agent.AgentDeploy, ironic.drivers.modules.oneview.deploy.OneViewPeriodicTasks
Class for OneView Agent deployment driver.
get_properties()[source]¶Return the properties of the interface.
| Returns: | dictionary of <property name>:<property description> entries. |
|---|
prepare(**kwargs)[source]¶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. |
prepare_cleaning(**kwargs)[source]¶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 |
supported = False¶tear_down(**kwargs)[source]¶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. |
tear_down_cleaning(**kwargs)[source]¶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 |
validate(**kwargs)[source]¶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. |
ironic.drivers.modules.oneview.deploy.OneViewIscsiDeploy[source]¶Bases: ironic.drivers.modules.iscsi_deploy.ISCSIDeploy, ironic.drivers.modules.oneview.deploy.OneViewPeriodicTasks
Class for OneView ISCSI deployment driver.
get_properties()[source]¶Return the properties of the interface.
| Returns: | dictionary of <property name>:<property description> entries. |
|---|
prepare(**kwargs)[source]¶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. |
prepare_cleaning(**kwargs)[source]¶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. |
supported = False¶tear_down(**kwargs)[source]¶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. |
tear_down_cleaning(**kwargs)[source]¶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 |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.