Bug 1699479

Summary: An invalid ipv6 subnet is being added to /etc/ironic-inspector/dnsmasq.conf by the inspector_dnsmasq_http.erb puppet module
Product: Red Hat OpenStack Reporter: Andrew Mercer <amercer>
Component: puppet-ironicAssignee: Harald Jensås <hjensas>
Status: CLOSED DUPLICATE QA Contact: mlammon
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: bfournie, dbecker, jjoyce, jschluet, mburns, morazi, rosingh, slinaber, tvignaud
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-10 12:34:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***