Bases: ironic.drivers.base.DeployInterface
PXE Deploy Interface for deploy-related actions.
Clean up the deployment environment for the task’s node.
Unlinks TFTP and instance images and triggers image cache cleanup. Removes the TFTP configuration files for this node. As a precaution, this method also ensures the keystone auth token file was removed.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|
Start deployment of the task’s node.
Fetches instance image, creates a temporary keystone token file, updates the DHCP port options for next boot, and issues a reboot request to the power driver. This causes the node to boot into the deployment ramdisk and triggers the next phase of PXE-based deployment via VendorPassthru.pass_deploy_info().
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Returns: | deploy state DEPLOYWAIT. |
Prepare the deployment environment for this task’s node.
Generates the TFTP configuration for PXE-booting both the deployment and user images, fetches the TFTP image from Glance and add it to the local cache.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|
Bases: ironic.drivers.modules.agent_base_vendor.BaseAgentVendor
Interface to mix IPMI and PXE vendor-specific interfaces.
Method invoked when deployed with the IPA ramdisk.
This method is invoked during a heartbeat from an agent when the node is in wait-call-back state. This deploys the image on the node and then configures the node to boot according to the desired boot option (netboot or localboot).
Parameters: |
|
---|---|
Raises: | InstanceDeployFailure, if it encounters some error during the deploy. |
Accepts the results of bootloader installation.
This method acts as a vendor passthru and accepts the result of the bootloader installation. If bootloader installation was successful, then it notifies the bare metal to proceed to reboot and makes the instance active. If the bootloader installation failed, then it sets provisioning as failed and powers off the node.
Parameters: |
|
---|
Continues the deployment of baremetal node over iSCSI.
This method continues the deployment of the baremetal node over iSCSI from where the deployment ramdisk has left off.
Parameters: |
|
---|---|
Raises: | InvalidState |
Validates the inputs for a vendor passthru.
If invalid, raises an exception; otherwise returns None.
Valid methods: * pass_deploy_info * pass_bootloader_install_info
Parameters: |
|
---|---|
Raises: | InvalidParameterValue if any parameters is invalid. |