Bug 1699479 - An invalid ipv6 subnet is being added to /etc/ironic-inspector/dnsmasq.conf by the inspector_dnsmasq_http.erb puppet module
Summary: An invalid ipv6 subnet is being added to /etc/ironic-inspector/dnsmasq.conf b...
Keywords:
Status: CLOSED DUPLICATE of bug 1459187
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-ironic
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Harald Jensås
QA Contact: mlammon
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-12 21:08 UTC by Andrew Mercer
Modified: 2023-03-24 14:50 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-10 12:34:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-23659 0 None None None 2023-03-24 14:50:13 UTC

Description Andrew Mercer 2019-04-12 21:08:51 UTC
Description of problem:

Customer is seeing the following error:

/sbin/dnsmasq --conf-file=/etc/ironic-inspector/dnsmasq.conf -d --log-queries
dnsmasq: bad dhcp-range at line 7 of /etc/ironic-inspector/dnsmasq.conf

Due to incorrect ipv6 subnet specified as per this line in dnsmasq.conf:

dhcp-range=set:ctlplane-subnet,2001:4888:a03:313a:c0:fe0:0:c200,2001:4888:a03:313a:c0:fe0:0:c2ff,ffff:ffff:ffff:ffff::,10m

Version-Release number of selected component (if applicable):
Red Hat OpenStack 13

How reproducible:

Each time

Steps to Reproduce:
1. /sbin/dnsmasq --conf-file=/etc/ironic-inspector/dnsmasq.conf -d --log-queries
2.
3.

Actual results:
dnsmasq: bad dhcp-range at line 7 of /etc/ironic-inspector/dnsmasq.conf

Expected results:
dnsmasq daemon starts


Additional info:
It looks like this snippet of code is the relevant bit

openstack-puppet/modules/ironic/templates/inspector_dnsmasq_http.erb
~~~
<% @dnsmasq_ip_subnets_real.each do |s| -%>
<% if s['tag'] and s['netmask'] -%>
dhcp-range=set:<%= s['tag'] -%>,<%= s['ip_range'] -%>,<%= s['netmask'] -%>,10m
<% elsif s['tag'] -%>
dhcp-range=set:<%= s['tag'] -%>,<%= s['ip_range'] -%>,10m
<% else -%>
dhcp-range=<%= s['ip_range'] -%>,10m
<% end -%>
~~~

Comment 2 Harald Jensås 2019-05-10 12:34:58 UTC
The use of IPv6 is not supported on the provisioning network:

See support matrix table in doc[1]:
"Provisioning (PXE/DHCP)" - "Interfaces on this network are IPv4 only."


I am closing this bug as a dupicate of RHBZ#1459187 - [RFE] ability to deploy overcloud using a IPv6 provisioning network


[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/html-single/ipv6_networking_for_the_overcloud/index#using_ipv6_in_red_hat_openstack_platform

*** This bug has been marked as a duplicate of bug 1459187 ***


Note You need to log in before you can comment on or make changes to this bug.