Skip to content

Commit 84ff77c

Browse files
authored
Merge pull request #513 from stackhpc/upstream/master-2025-12-22
Synchronise master with upstream
2 parents 54e9cf6 + 1444d79 commit 84ff77c

File tree

15 files changed

+61
-6
lines changed

15 files changed

+61
-6
lines changed

ansible/inventory/group_vars/all/bifrost

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ kolla_bifrost_inspector_hooks: "{{ inspector_hooks }}"
9696
# 'active' or 'pxe'.
9797
kolla_bifrost_inspector_port_addition: "{{ inspector_add_ports }}"
9898

99+
# Which ports to keep after introspection. One of 'all', 'present', or 'added'.
100+
# Default follows Bifrost's default of 'present'.
101+
kolla_bifrost_inspector_keep_ports: "present"
102+
99103
# List of extra kernel parameters for the inspector default PXE configuration.
100104
# Default is {{ inspector_extra_kernel_options }}, defined in inspector.yml.
101105
# When customising this variable, the default extra kernel parameters should be

ansible/kolla-ansible.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
kolla_inspector_dhcp_pool_end: "{{ inspection_net_name | net_inspection_allocation_pool_end }}"
100100
kolla_inspector_netmask: "{{ inspection_net_name | net_mask }}"
101101
kolla_inspector_default_gateway: "{{ inspection_net_name | net_inspection_gateway or inspection_net_name | net_gateway }}"
102+
kolla_inspector_dns_servers: "{{ inspection_net_name | net_inspection_dns_servers }}"
102103
kolla_inspector_extra_kernel_options: "{{ inspector_extra_kernel_options }}"
103104
kolla_libvirt_tls: "{{ compute_libvirt_enable_tls | bool }}"
104105
kolla_globals_paths_static:

ansible/roles/kolla-ansible/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ kolla_inspector_netmask:
200200
# Default gateway to use for inspection network.
201201
kolla_inspector_default_gateway:
202202

203+
# DNS servers for inspection network.
204+
kolla_inspector_dns_servers: []
205+
203206
# List of extra kernel parameters for the inspector default PXE configuration.
204207
kolla_inspector_extra_kernel_options: []
205208

ansible/roles/kolla-ansible/templates/kolla/globals.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ ironic_dnsmasq_dhcp_ranges:
401401
{% if kolla_inspector_default_gateway %}
402402
routers: "{{ kolla_inspector_default_gateway }}"
403403
{% endif %}
404+
{% if kolla_inspector_dns_servers %}
405+
dns_servers: "{{ kolla_inspector_dns_servers | join(',') }}"
406+
{% endif %}
404407
{% endif %}
405408
{% if kolla_inspector_extra_kernel_options %}
406409
ironic_kernel_cmdline_extras:

ansible/roles/kolla-bifrost/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ kolla_bifrost_inspector_hooks:
4848
# 'active' or 'pxe'.
4949
kolla_bifrost_inspector_port_addition:
5050

51+
# Which ports to keep after introspection. One of 'all', 'present', or 'added'.
52+
kolla_bifrost_inspector_keep_ports:
53+
5154
# List of extra kernel parameters for the inspector default PXE configuration.
5255
kolla_bifrost_inspector_extra_kernel_options:
5356

ansible/roles/kolla-bifrost/templates/kolla/config/bifrost/bifrost.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ inspector_hooks: "{{ kolla_bifrost_inspector_hooks | join(',') }}"
3939
inspector_port_addition: "{{ kolla_bifrost_inspector_port_addition }}"
4040
{% endif %}
4141

42+
{% if kolla_bifrost_inspector_keep_ports %}
43+
# Which ports to keep after introspection. One of 'all', 'present', or 'added'.
44+
inspector_keep_ports: "{{ kolla_bifrost_inspector_keep_ports }}"
45+
{% endif %}
46+
4247
{% if kolla_bifrost_inspector_extra_kernel_options %}
4348
# Extra kernel parameters for the inspector default PXE configuration.
4449
inspector_extra_kernel_options: "{{ kolla_bifrost_inspector_extra_kernel_options if kolla_bifrost_inspector_extra_kernel_options is string else kolla_bifrost_inspector_extra_kernel_options | join(' ') }}"

ansible/roles/kolla-openstack/molecule/default/molecule.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ driver:
88
lint: |
99
yamllint .
1010
platforms:
11-
- name: centos-stream9
12-
image: quay.io/centos/centos:stream9
11+
- name: ubuntu-noble
12+
image: quay.io/opendevmirror/ubuntu:24.04
1313
network_mode: host
1414
provisioner:
1515
name: ansible

ansible/roles/kolla-openstack/molecule/enable-everything/molecule.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ driver:
88
lint: |
99
yamllint .
1010
platforms:
11-
- name: centos-stream9
12-
image: quay.io/centos/centos:stream9
11+
- name: ubuntu-noble
12+
image: quay.io/opendevmirror/ubuntu:24.04
1313
network_mode: host
1414
provisioner:
1515
name: ansible

doc/source/configuration/reference/bifrost.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ The following options configure the Ironic Inspector service in the
276276
Which MAC addresses to add as ports during introspection. One of ``all``,
277277
``active`` or ``pxe``. Default is ``{{ inspector_add_ports }}``, defined in
278278
``${KAYOBE_CONFIG_PATH}/inspector.yml``.
279+
``kolla_bifrost_inspector_keep_ports``
280+
Which ports to keep after introspection. One of ``all``, ``present`` or
281+
``added``. Default is ``present`` to align with Bifrost's defaults.
279282
``kolla_bifrost_inspector_extra_kernel_options``
280283
List of extra kernel parameters for the inspector default PXE
281284
configuration. Default is ``{{ inspector_extra_kernel_options }}``, defined

doc/source/configuration/reference/network.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ supported:
3939
IP address of the gateway for the hardware introspection network.
4040
``neutron_gateway``
4141
IP address of the gateway for a neutron subnet based on this network.
42+
``inspection_dns_servers``
43+
List of DNS servers used during hardware introspection.
4244
``vlan``
4345
VLAN ID.
4446
``mtu``
@@ -827,19 +829,22 @@ If using the overcloud to inspect bare metal workload (compute) hosts, it is
827829
necessary to define a DHCP allocation pool for the overcloud's ironic inspector
828830
DHCP server using the ``inspection_allocation_pool_start`` and
829831
``inspection_allocation_pool_end`` attributes of the workload provisioning
830-
network.
832+
network. If ``kolla_internal_fqdn`` is set, it is mandatory to also supply one
833+
or more DNS servers using ``inspection_dns_servers``.
831834

832835
.. note::
833836

834837
This example assumes that the ``example`` network is mapped to
835838
``provision_wl_net_name``.
836839

837-
To configure a network called ``example`` with an inspection allocation pool:
840+
To configure a network called ``example`` with an inspection allocation pool
841+
and inspection DNS servers:
838842

839843
.. code-block:: yaml
840844
841845
example_inspection_allocation_pool_start: 10.0.1.196
842846
example_inspection_allocation_pool_end: 10.0.1.254
847+
example_inspection_dns_servers: [10.0.1.10, 10.0.1.11]
843848
844849
.. note::
845850

0 commit comments

Comments
 (0)