summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-07-09 12:42:05 +0000
committerGerrit Code Review <review@openstack.org>2020-07-09 12:42:05 +0000
commitc42656ea57ddc0aaaec6408457c72fcaea16caba (patch)
treeebf55ef93af51022a2d3dd13bf2de706da23d9b9 /doc/source
parent5d419bcccb3f30a379003fca728e252582c31cbb (diff)
parentdeec7f4a926b7e032a44a0c56ac4016bf250ef54 (diff)
downloadironic-c42656ea57ddc0aaaec6408457c72fcaea16caba.tar.gz
Merge "agent_base: support inserting in-band deploy steps"
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/admin/node-deployment.rst32
1 files changed, 26 insertions, 6 deletions
diff --git a/doc/source/admin/node-deployment.rst b/doc/source/admin/node-deployment.rst
index 39dbc28a5..03dfbfec2 100644
--- a/doc/source/admin/node-deployment.rst
+++ b/doc/source/admin/node-deployment.rst
@@ -40,15 +40,35 @@ BIOS, and RAID interfaces.
.. _node-deployment-core-steps:
-Core steps
-----------
+Agent steps
+-----------
-Certain default deploy steps are designated as 'core' deploy steps. The
-following deploy steps are core:
+All deploy interfaces based on ironic-python-agent (i.e. ``direct``, ``iscsi``
+and ``ansible`` and any derivatives) expose the following deploy steps:
-``deploy.deploy``
+``deploy.deploy`` (priority 100)
In this step the node is booted using a provisioning image, and the user
- image is written to the node's disk. It has a priority of 100.
+ image is written to the node's disk.
+``deploy.tear_down_agent`` (priority 40)
+ In this step the provisioning image is shut down.
+``deploy.switch_to_tenant_network`` (priority 30)
+ In this step networking for the node is switched from provisioning to
+ tenant networks.
+``deploy.boot_instance`` (priority 20)
+ In this step the node is booted into the user image.
+
+Accordingly, the following priority ranges can be used for custom deploy steps:
+
+> 100
+ Out-of-band steps to run before deployment.
+41 to 59
+ In-band steps to run after the image is written the bootloader is installed.
+21 to 39
+ Out-of-band steps to run after the provisioning image is shut down.
+1 to 19
+ Any steps that are run when the user instance is already running.
+
+.. note:: Priorities 60 to 99 are currently reserved and should not be used.
Writing a Deploy Step
---------------------