summaryrefslogtreecommitdiff
path: root/ironic/drivers/modules/ilo/deploy.py
diff options
context:
space:
mode:
Diffstat (limited to 'ironic/drivers/modules/ilo/deploy.py')
-rw-r--r--ironic/drivers/modules/ilo/deploy.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ironic/drivers/modules/ilo/deploy.py b/ironic/drivers/modules/ilo/deploy.py
index 14542b329..792e51d26 100644
--- a/ironic/drivers/modules/ilo/deploy.py
+++ b/ironic/drivers/modules/ilo/deploy.py
@@ -690,6 +690,11 @@ class IloVirtualMediaAgentDeploy(base.DeployInterface):
def prepare_cleaning(self, task):
"""Boot into the agent to prepare for cleaning."""
+
+ # Powering off the Node before initiating boot for node cleaning.
+ # If node is in system POST, setting boot device fails.
+ manager_utils.node_power_action(task, states.POWER_OFF)
+
# Create cleaning ports if necessary
provider = dhcp_factory.DHCPFactory().provider