ironic_python_agent.extensions.deploy module

class ironic_python_agent.extensions.deploy.DeployExtension(agent=None)[source]

Bases: ironic_python_agent.extensions.base.BaseAgentExtension

execute_deploy_step(step, node, ports, deploy_version=None, **kwargs)[source]

Execute a deploy step.

Parameters
  • step – A deploy step with ‘step’, ‘priority’ and ‘interface’ keys

  • node – A dict representation of a node

  • ports – A dict representation of ports attached to node

  • deploy_version – The deploy version as returned by hardware.get_current_versions() at the beginning of deploying.

  • kwargs – The remaining arguments are passed to the step.

Returns

a CommandResult object with command_result set to whatever the step returns.

get_deploy_steps(node, ports)[source]

Get the list of deploy steps supported for the node and ports

Parameters
  • node – A dict representation of a node

  • ports – A dict representation of ports attached to node

Returns

A list of deploy steps with keys step, priority, and reboot_requested