ironic.common.pxe_utils.
clean_up_pxe_config
(task)[source]¶Clean up the TFTP environment for the task’s node.
Parameters: | task – A TaskManager instance. |
---|
ironic.common.pxe_utils.
create_ipxe_boot_script
()[source]¶Render the iPXE boot script into the HTTP root directory
ironic.common.pxe_utils.
create_pxe_config
(task, pxe_options, template=None)[source]¶Generate PXE configuration file and MAC address links for it.
This method will generate the PXE configuration file for the task’s node under a directory named with the UUID of that node. For each MAC address or DHCP IP address (port) of that node, a symlink for the configuration file will be created under the PXE configuration directory, so regardless of which port boots first they’ll get the same PXE configuration. If elilo is the bootloader in use, then its configuration file will be created based on hex form of DHCP IP address. If grub2 bootloader is in use, then its configuration will be created based on DHCP IP address in the form nn.nn.nn.nn.
Parameters: |
|
---|
ironic.common.pxe_utils.
dhcp_options_for_instance
(task)[source]¶Retrieves the DHCP PXE boot options.
Parameters: | task – A TaskManager instance. |
---|
ironic.common.pxe_utils.
get_kernel_ramdisk_info
(node_uuid, driver_info, mode='deploy')[source]¶Get href and tftp path for deploy or rescue kernel and ramdisk.
Parameters: |
|
---|---|
Returns: | a dictionary whose keys are deploy_kernel and deploy_ramdisk or rescue_kernel and rescue_ramdisk and whose values are the absolute paths to them. |
Note: driver_info should be validated outside of this method.
ironic.common.pxe_utils.
get_path_relative_to_tftp_root
(file_path)[source]¶Return file relative path to CONF.pxe.tftp_root
Parameters: | file_path – full file path to be made relative path. |
---|---|
Returns: | The path relative to CONF.pxe.tftp_root |
ironic.common.pxe_utils.
get_pxe_config_file_path
(node_uuid)[source]¶Generate the path for the node’s PXE configuration file.
Parameters: | node_uuid – the UUID of the node. |
---|---|
Returns: | The path to the node’s PXE configuration file. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.