Class for PXE bare-metal nodes.
Bases: nova.virt.baremetal.base.NodeDriver
PXE bare metal driver.
Configure PXE boot loader for an instance
Kernel and ramdisk images are downloaded by cache_tftp_images, and stored in /tftpboot/{uuid}/
This method writes the instances config file, and then creates symlinks for each MAC address in the instance.
By default, the complete layout looks like this:
Wait for PXE deployment to complete.
Prepare all the images for this instance.
Delete PXE bootloader images and config.
Delete instance’s image file.
Build the PXE config file for a node
This method builds the PXE boot configuration file for a node, given all the required parameters.
The resulting file has both a “deploy” and “boot” label, which correspond to the two phases of booting. This may be extended later.
Generate the dir for an instances disk.
Generate the full path for an instances disk.
Generate the path for an instances PXE config file.
Convert a MAC address into a PXE config file name.
Generate the paths for tftp files for this instance
Raises NovaException if - instance does not contain kernel_id or ramdisk_id - deploy_kernel_id or deploy_ramdisk_id can not be read from
instance_type[‘extra_specs’] and defaults are not set