![Mark Goddard](/assets/img/avatar_default.png)
The bootloader used to boot Ironic nodes in UEFI boot mode during inspection when iPXE is enabled has been changed from ipxe.efi to snponly.efi. This is in line with the default UEFI iPXE bootloader used in Ironic since the Xena release. The bootloader may be changed via ironic_dnsmasq_uefi_ipxe_boot_file. Note that snponly.efi was not available via in the ironic-pxe image prior to I79e78dca550262fc86b092a036f9ea96b214ab48. Related-Bug: #1959203 Change-Id: I879db340769cc1b076e77313dff15876e27fcac4
43 lines
1.4 KiB
Django/Jinja
43 lines
1.4 KiB
Django/Jinja
# NOTE(yoctozepto): ironic-dnsmasq is used to deliver DHCP(v6) service
|
|
# DNS service is disabled:
|
|
port=0
|
|
|
|
interface={{ ironic_dnsmasq_interface }}
|
|
bind-interfaces
|
|
|
|
dhcp-range={{ ironic_dnsmasq_dhcp_range }}
|
|
dhcp-sequential-ip
|
|
|
|
{% if api_address_family == 'ipv6' %}
|
|
{# TODO(yoctozepto): IPv6-only support - DHCPv6 PXE support #}
|
|
{# different options must be used here #}
|
|
{% else %}{# ipv4 #}
|
|
{% if ironic_dnsmasq_default_gateway is not none %}
|
|
dhcp-option=3,{{ ironic_dnsmasq_default_gateway }}
|
|
{% endif %}
|
|
dhcp-option=option:tftp-server,{{ api_interface_address }}
|
|
dhcp-option=option:server-ip-address,{{ api_interface_address }}
|
|
dhcp-option=210,/tftpboot/
|
|
{% if enable_ironic_ipxe | bool %}
|
|
dhcp-match=ipxe,175
|
|
dhcp-match=set:efi,option:client-arch,7
|
|
dhcp-match=set:efi,option:client-arch,9
|
|
# Client is already running iPXE; move to next stage of chainloading
|
|
dhcp-option=tag:ipxe,option:bootfile-name,{{ ironic_ipxe_url }}/inspector.ipxe
|
|
# Client is PXE booting over EFI without iPXE ROM,
|
|
# send EFI version of iPXE chainloader
|
|
dhcp-option=tag:efi,tag:!ipxe,option:bootfile-name,{{ ironic_dnsmasq_uefi_ipxe_boot_file }}
|
|
{% endif %}
|
|
dhcp-option=option:bootfile-name,{{ ironic_dnsmasq_boot_file }}
|
|
{% endif %}{# ipv6/ipv4 #}
|
|
|
|
log-async
|
|
log-facility=/var/log/kolla/ironic/dnsmasq.log
|
|
{% if ironic_logging_debug | bool %}
|
|
log-dhcp
|
|
{% endif %}
|
|
|
|
{% if ironic_inspector_pxe_filter == 'dnsmasq' %}
|
|
dhcp-hostsdir=/etc/dnsmasq/dhcp-hostsdir
|
|
{% endif %}
|