Ansible deploy interface
ironic.drivers.modules.ansible.deploy.
AnsibleDeploy
[source]¶Bases: ironic.drivers.modules.agent_base_vendor.HeartbeatMixin
, ironic.drivers.base.DeployInterface
Interface for deploy-related actions.
execute_clean_step
(task, step)[source]¶Execute a clean step.
Parameters: |
|
---|---|
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 |
prepare_cleaning
(task)[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. |
tear_down_cleaning
(task)[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.