summaryrefslogtreecommitdiff
path: root/ironic/drivers/modules/ansible
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2020-03-18 09:36:30 +0100
committerDmitry Tantsur <dtantsur@protonmail.com>2020-03-25 13:00:16 +0100
commit8e472a07b533d821b0f0493b16796b9192f25af9 (patch)
tree89dc59f08c39597e4d54158ec67a2174cd832d2a /ironic/drivers/modules/ansible
parentde2d907fc34578a2a320f368aa068550ae39425e (diff)
downloadironic-8e472a07b533d821b0f0493b16796b9192f25af9.tar.gz
Raise human-friendly messages on attempt to use pre-deploy steps drivers
This is a follow up to commit 529c3ff06693d0a1aa13081acff92010fe855c50. It adds a proper exception on missing deploy steps and provides a proper deprecation for the compatibility code when trying to continue deploy for a node in the DEPLOYING state. Change-Id: I6dc176c12a913cb481164a90881bb1c3107b36eb Story: #2006963
Diffstat (limited to 'ironic/drivers/modules/ansible')
-rw-r--r--ironic/drivers/modules/ansible/deploy.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ironic/drivers/modules/ansible/deploy.py b/ironic/drivers/modules/ansible/deploy.py
index 4a1a478d8..cbecdc976 100644
--- a/ironic/drivers/modules/ansible/deploy.py
+++ b/ironic/drivers/modules/ansible/deploy.py
@@ -608,6 +608,9 @@ class AnsibleDeploy(agent_base.HeartbeatMixin, base.DeployInterface):
self.reboot_and_finish_deploy(task)
task.driver.boot.clean_up_ramdisk(task)
+ # TODO(dtantsur): remove these two calls when this function becomes a
+ # real deploy step.
+ task.process_event('wait')
manager_utils.notify_conductor_resume_deploy(task)
@METRICS.timer('AnsibleDeploy.reboot_and_finish_deploy')