The ironic.drivers.modules.ansible.deploy Module

The ironic.drivers.modules.ansible.deploy Module

Ansible deploy interface

class ironic.drivers.modules.ansible.deploy.AnsibleDeploy[source]

Bases: ironic.drivers.modules.agent_base_vendor.HeartbeatMixin, ironic.drivers.base.DeployInterface

Interface for deploy-related actions.

clean_up(*args, **kwargs)[source]

Clean up the deployment environment for this node.

continue_deploy(*args, **kwargs)[source]
deploy(*args, **kwargs)[source]

Perform a deployment to a node.

execute_clean_step(*args, **kwargs)[source]

Execute a clean step.

Parameters:
  • task – a TaskManager object containing the node
  • step – a clean step dictionary to execute
Returns:

None

get_clean_steps(task)[source]

Get the list of clean steps from the file.

Parameters:task – a TaskManager object containing the node
Returns:A list of clean step dictionaries
get_properties()[source]

Return the properties of the interface.

prepare(*args, **kwargs)[source]

Prepare the deployment environment for this node.

prepare_cleaning(*args, **kwargs)[source]

Boot into the ramdisk 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:None or states.CLEANWAIT for async prepare.
reboot_and_finish_deploy(*args, **kwargs)[source]
reboot_to_instance(*args, **kwargs)[source]
take_over(task)[source]
tear_down(*args, **kwargs)[source]

Tear down a previous deployment on the task’s node.

tear_down_cleaning(*args, **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
validate(*args, **kwargs)[source]

Validate the driver-specific Node deployment info.

exception ironic.drivers.modules.ansible.deploy.PlaybookNotFound(message=None, **kwargs)[source]

Bases: ironic.common.exception.IronicException

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.