Skip to content

Commit 1feabf7

Browse files
committed
Add support for Ironic inspection through DHCP-relay
This change updates documentation, examples and tests to support Ironic inspection through DHCP-relay. The dnsmasq service should be configured with more specific format set in the variable ``ironic_dnsmasq_dhcp_range``. See the dnsmasq manual page [1]. [1] https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html Change-Id: I9488a72db588e31289907668f1997596a8ccdec6 Signed-off-by: Maksim Malchuk <[email protected]> (cherry picked from commit 37e4dba)
1 parent 829974b commit 1feabf7

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

doc/source/reference/bare-metal/ironic-guide.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ Enable Ironic in ``/etc/kolla/globals.yml``:
1717
1818
enable_ironic: "yes"
1919
20-
In the same file, define a network interface as the default NIC for dnsmasq,
21-
a range of IP addresses that will be available for use by Ironic inspector,
22-
as well as a network to be used for the Ironic cleaning network:
20+
In the same file, define a network interface as the default NIC for dnsmasq and
21+
a range of IP addresses that will be available for use by Ironic inspector.
22+
The optional netmask of the network should be provided in case when DHCP-relay
23+
is used. Finally, define a network to be used for the Ironic cleaning network:
2324

2425
.. code-block:: yaml
2526
2627
ironic_dnsmasq_interface: "eth1"
27-
ironic_dnsmasq_dhcp_range: "192.168.5.100,192.168.5.110"
28+
ironic_dnsmasq_dhcp_range: "192.168.5.100,192.168.5.110,255.255.255.0"
2829
ironic_cleaning_network: "public1"
2930
3031
In the same file, optionally a default gateway to be used for the Ironic

etc/kolla/globals.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,8 @@
592592
#############################
593593
# dnsmasq bind interface for Ironic Inspector, by default is network_interface
594594
#ironic_dnsmasq_interface: "{{ network_interface }}"
595-
# The following value must be set when enabling ironic,
596-
# the value format is "192.168.0.10,192.168.0.100".
595+
# The following value must be set when enabling ironic, the value format is
596+
# "192.168.0.10,192.168.0.100,255.255.255.0" the last being an optional netmask.
597597
#ironic_dnsmasq_dhcp_range:
598598
# PXE bootloader file for Ironic Inspector, relative to /tftpboot.
599599
#ironic_dnsmasq_boot_file: "pxelinux.0"

tests/templates/globals-default.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ enable_aodh: "yes"
9595

9696
{% if scenario == "ironic" %}
9797
enable_ironic: "yes"
98-
ironic_dnsmasq_dhcp_range: "10.42.0.2,10.42.0.254"
98+
ironic_dnsmasq_dhcp_range: "10.42.0.2,10.42.0.254,255.255.255.0"
9999
{% endif %}
100100

101101
{% if scenario == "masakari" %}

0 commit comments

Comments
 (0)