Merge "Template inspector.ipxe"

This commit is contained in:
Zuul 2018-08-30 16:47:48 +00:00 committed by Gerrit Code Review
commit f97582c41d
5 changed files with 24 additions and 0 deletions

View File

@ -189,6 +189,9 @@ kolla_ironic_pxe_append_params: []
# Free form extra configuration to append to ironic.conf. # Free form extra configuration to append to ironic.conf.
kolla_extra_ironic: kolla_extra_ironic:
# Enable iPXE support in Ironic
kolla_enable_ironic_ipxe:
############################################################################### ###############################################################################
# Ironic inspector configuration. # Ironic inspector configuration.

View File

@ -31,6 +31,7 @@
- { src: neutron.conf.j2, dest: neutron.conf, enabled: "{{ kolla_enable_neutron }}" } - { src: neutron.conf.j2, dest: neutron.conf, enabled: "{{ kolla_enable_neutron }}" }
- { src: nova.conf.j2, dest: nova.conf, enabled: "{{ kolla_enable_nova }}" } - { src: nova.conf.j2, dest: nova.conf, enabled: "{{ kolla_enable_nova }}" }
- { src: pxelinux.default.j2, dest: ironic/pxelinux.default, enabled: "{{ kolla_enable_ironic }}" } - { src: pxelinux.default.j2, dest: ironic/pxelinux.default, enabled: "{{ kolla_enable_ironic }}" }
- { src: inspector.ipxe.j2, dest: ironic/inspector.ipxe, enabled: "{{ kolla_enable_ironic_ipxe }}" }
- { src: sahara.conf.j2, dest: sahara.conf, enabled: "{{ kolla_enable_sahara }}" } - { src: sahara.conf.j2, dest: sahara.conf, enabled: "{{ kolla_enable_sahara }}" }
- { src: zookeeper.cfg.j2, dest: zookeeper.cfg, enabled: "{{ kolla_enable_zookeeper }}" } - { src: zookeeper.cfg.j2, dest: zookeeper.cfg, enabled: "{{ kolla_enable_zookeeper }}" }
when: item.enabled | bool when: item.enabled | bool

View File

@ -0,0 +1,10 @@
#!ipxe
:retry_dhcp
dhcp || goto retry_dhcp
:retry_boot
imgfree
kernel --timeout 30000 {% raw %}{{ ironic_ipxe_url }}/ironic-agent.kernel{% endraw %} ipa-inspection-callback-url={% raw %}http://{{ kolla_internal_vip_address }}:{{ ironic_inspector_port }}/v1/continue{% endraw %} systemd.journald.forward_to_console=yes {{ kolla_inspector_extra_kernel_options | join(' ') }} {% raw %}BOOTIF=${mac}{% endraw %} || goto retry_boot
initrd --timeout 30000 {% raw %}{{ ironic_ipxe_url }}/ironic-agent.initramfs{% endraw %} || goto retry_boot
boot

View File

@ -70,6 +70,7 @@ kolla_openstack_custom_config:
- ironic-agent.kernel - ironic-agent.kernel
- ironic-dnsmasq.conf - ironic-dnsmasq.conf
- pxelinux.default - pxelinux.default
- inspector.ipxe
# Kafka. # Kafka.
- src: "{{ kolla_extra_config_path }}/kafka" - src: "{{ kolla_extra_config_path }}/kafka"
dest: "{{ kolla_node_custom_config_path }}/kafka" dest: "{{ kolla_node_custom_config_path }}/kafka"

View File

@ -0,0 +1,9 @@
---
fixes:
- |
Fixes an issue with introspection data not being collected
when iPXE was enabled. This meant that certain
introspection rules were not being applied. Notably, the
local_link_connection field would not be updated on the
ironic ports.