Merge "Deprecate enable_ironic_ipxe"

This commit is contained in:
Zuul 2022-04-11 15:57:54 +00:00 committed by Gerrit Code Review
commit c6aec10667
9 changed files with 16 additions and 10 deletions

View File

@ -653,7 +653,6 @@ enable_horizon_watcher: "{{ enable_watcher | bool }}"
enable_horizon_zun: "{{ enable_zun | bool }}" enable_horizon_zun: "{{ enable_zun | bool }}"
enable_influxdb: "{{ enable_monasca | bool or (enable_cloudkitty | bool and cloudkitty_storage_backend == 'influxdb') }}" enable_influxdb: "{{ enable_monasca | bool or (enable_cloudkitty | bool and cloudkitty_storage_backend == 'influxdb') }}"
enable_ironic: "no" enable_ironic: "no"
enable_ironic_ipxe: "yes"
enable_ironic_neutron_agent: "{{ enable_neutron | bool and enable_ironic | bool }}" enable_ironic_neutron_agent: "{{ enable_neutron | bool and enable_ironic | bool }}"
enable_ironic_pxe_uefi: "no" enable_ironic_pxe_uefi: "no"
enable_iscsid: "{{ enable_cinder | bool and enable_cinder_backend_iscsi | bool }}" enable_iscsid: "{{ enable_cinder | bool and enable_cinder_backend_iscsi | bool }}"

View File

@ -254,7 +254,9 @@ openstack_ironic_inspector_auth: "{{ openstack_auth }}"
ironic_dnsmasq_interface: "{{ api_interface }}" ironic_dnsmasq_interface: "{{ api_interface }}"
ironic_dnsmasq_dhcp_range: ironic_dnsmasq_dhcp_range:
ironic_dnsmasq_default_gateway: ironic_dnsmasq_default_gateway:
ironic_dnsmasq_boot_file: "{% if enable_ironic_ipxe | bool %}undionly.kpxe{% else %}pxelinux.0{% endif %}" # TODO(yoctozepto): Do not rely on deprecated enable_ironic_ipxe in Zed.
ironic_dnsmasq_serve_ipxe: "{{ enable_ironic_ipxe | default(\"yes\") }}"
ironic_dnsmasq_boot_file: "{% if ironic_dnsmasq_serve_ipxe | bool %}undionly.kpxe{% else %}pxelinux.0{% endif %}"
ironic_dnsmasq_uefi_ipxe_boot_file: "snponly.efi" ironic_dnsmasq_uefi_ipxe_boot_file: "snponly.efi"
ironic_cleaning_network: ironic_cleaning_network:
ironic_console_serial_speed: "115200n8" ironic_console_serial_speed: "115200n8"

View File

@ -143,7 +143,7 @@
- inventory_hostname in groups[service.group] - inventory_hostname in groups[service.group]
- service.enabled | bool - service.enabled | bool
- not enable_ironic_pxe_uefi | bool - not enable_ironic_pxe_uefi | bool
- not enable_ironic_ipxe | bool - not ironic_dnsmasq_serve_ipxe | bool
notify: notify:
- Restart ironic-tftp container - Restart ironic-tftp container
@ -183,7 +183,7 @@
- inventory_hostname in groups[service.group] - inventory_hostname in groups[service.group]
- service.enabled | bool - service.enabled | bool
- not enable_ironic_pxe_uefi | bool - not enable_ironic_pxe_uefi | bool
- not enable_ironic_ipxe | bool - not ironic_dnsmasq_serve_ipxe | bool
notify: notify:
- Restart ironic-tftp container - Restart ironic-tftp container

View File

@ -61,8 +61,8 @@
when: when:
# Only required when Ironic inspector is in use. # Only required when Ironic inspector is in use.
- groups['ironic-inspector'] | length > 0 - groups['ironic-inspector'] | length > 0
- (not enable_ironic_ipxe | bool and inventory_hostname in groups['ironic-tftp']) or - (not ironic_dnsmasq_serve_ipxe | bool and inventory_hostname in groups['ironic-tftp']) or
(enable_ironic_ipxe | bool and inventory_hostname in groups['ironic-http']) (ironic_dnsmasq_serve_ipxe | bool and inventory_hostname in groups['ironic-http'])
- not enable_ironic_pxe_uefi | bool - not enable_ironic_pxe_uefi | bool
with_items: with_items:
- "ironic-agent.kernel" - "ironic-agent.kernel"

View File

@ -18,7 +18,7 @@ dhcp-option=3,{{ ironic_dnsmasq_default_gateway }}
dhcp-option=option:tftp-server,{{ api_interface_address }} dhcp-option=option:tftp-server,{{ api_interface_address }}
dhcp-option=option:server-ip-address,{{ api_interface_address }} dhcp-option=option:server-ip-address,{{ api_interface_address }}
dhcp-option=210,/var/lib/ironic/tftpboot/ dhcp-option=210,/var/lib/ironic/tftpboot/
{% if enable_ironic_ipxe | bool %} {% if ironic_dnsmasq_serve_ipxe | bool %}
dhcp-match=ipxe,175 dhcp-match=ipxe,175
dhcp-match=set:efi,option:client-arch,7 dhcp-match=set:efi,option:client-arch,7
dhcp-match=set:efi,option:client-arch,9 dhcp-match=set:efi,option:client-arch,9

View File

@ -4,7 +4,7 @@
{ {
"command": "/usr/sbin/in.tftpd --verbose --foreground --user root --address 0.0.0.0:69 --map-file /map-file /var/lib/ironic/tftpboot", "command": "/usr/sbin/in.tftpd --verbose --foreground --user root --address 0.0.0.0:69 --map-file /map-file /var/lib/ironic/tftpboot",
"config_files": [ "config_files": [
{% if not enable_ironic_ipxe | bool and groups['ironic-inspector'] | length > 0 %} {% if not ironic_dnsmasq_serve_ipxe | bool and groups['ironic-inspector'] | length > 0 %}
{% if not enable_ironic_pxe_uefi | bool %} {% if not enable_ironic_pxe_uefi | bool %}
{ {
"source": "{{ container_config_directory }}/ironic-agent.kernel", "source": "{{ container_config_directory }}/ironic-agent.kernel",

View File

@ -85,7 +85,7 @@ plain PXE by setting the following in
.. code-block:: yaml .. code-block:: yaml
enable_ironic_ipxe: "no" ironic_dnsmasq_serve_ipxe: "no"
To revert Ironic to previous default as well, set ``pxe`` as To revert Ironic to previous default as well, set ``pxe`` as
``default_boot_interface`` in ``/etc/kolla/config/ironic.conf``: ``default_boot_interface`` in ``/etc/kolla/config/ironic.conf``:

View File

@ -336,7 +336,6 @@
#enable_horizon_zun: "{{ enable_zun | bool }}" #enable_horizon_zun: "{{ enable_zun | bool }}"
#enable_influxdb: "{{ enable_monasca | bool or (enable_cloudkitty | bool and cloudkitty_storage_backend == 'influxdb') }}" #enable_influxdb: "{{ enable_monasca | bool or (enable_cloudkitty | bool and cloudkitty_storage_backend == 'influxdb') }}"
#enable_ironic: "no" #enable_ironic: "no"
#enable_ironic_ipxe: "yes"
#enable_ironic_neutron_agent: "{{ enable_neutron | bool and enable_ironic | bool }}" #enable_ironic_neutron_agent: "{{ enable_neutron | bool and enable_ironic | bool }}"
#enable_ironic_pxe_uefi: "no" #enable_ironic_pxe_uefi: "no"
#enable_iscsid: "{{ enable_cinder | bool and enable_cinder_backend_iscsi | bool }}" #enable_iscsid: "{{ enable_cinder | bool and enable_cinder_backend_iscsi | bool }}"

View File

@ -0,0 +1,6 @@
---
deprecations:
- |
``enable_ironic_ipxe`` is deprecated in favour of
``ironic_dnsmasq_serve_ipxe`` which reflects the effect better.
``enable_ironic_ipxe`` will be removed in Zed.