Fix execution of node servicing steps exposed by IPA's HardwareManager
Implement execute_service_step() in AgentBaseMixin that will
asynchronously execute service step on the agent. Without it, Ironic
will try to find <step_name> attribute on the object that implements
interface specified by the servicing step.
Example:
Step: [{"interface": "deploy", "step": "burnin_cpu"}]
Error: AttributeError: 'AgentDeploy' object has no attribute 'burnin_cpu'
Reviewed: https:/ /review. opendev. org/c/openstack /ironic/ +/922024 /opendev. org/openstack/ ironic/ commit/ 4f924f2d648712a cabcbdfeaa0733e c140e582ca
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 4f924f2d648712a cabcbdfeaa0733e c140e582ca
Author: Przemyslaw Szczerbik <email address hidden>
Date: Wed May 29 03:25:10 2024 -0700
Fix execution of node servicing steps exposed by IPA's HardwareManager
Implement execute_ service_ step() in AgentBaseMixin that will
asynchronously execute service step on the agent. Without it, Ironic
will try to find <step_name> attribute on the object that implements
interface specified by the servicing step.
Example:
Step: [{"interface": "deploy", "step": "burnin_cpu"}]
Error: AttributeError: 'AgentDeploy' object has no attribute 'burnin_cpu'
Closes-Bug: #2069430
Change-Id: Idb1d5b50656c37 65ea5c9e21b7844 946ae4cfc67
Signed-off-by: Przemyslaw Szczerbik <email address hidden>