Set option:mtu in inspector dnsmasq

Set the mtu for all subnets in inspector dnsmasq
config to value of 'local_mtu' in undercloud.conf.

Conflicts:
  tripleoclient/tests/v1/undercloud/test_config.py
  tripleoclient/v1/undercloud_config.py

NOTE, tripleoclient/tests/v1/undercloud/test_config.py
was named test_undercloud_config.py in rocky and the
relevant unit tests did not exist.

Closes-Bug: #1845487
Depends-On: Ic95dbf1867fb5397f1b6d8f23466910a97051cb6
Change-Id: Iafe3156ca0678f3ab3c5e688e712a9fb6b408e7b
(cherry picked from commit ff31fe18ec)
This commit is contained in:
Harald Jensås 2019-09-26 14:50:07 +02:00
parent 50c6644c07
commit 2e6358a61a
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
fixes:
- |
The MTU setting was not configured for Ironic Inspector DHCP (dnsmasq)
service. This caused inspection to fail when operating on a network with
< 1500 bytes MTU. See bug: `1845487
<https://bugs.launchpad.net/puppet-ironic/+bug/1845487>`_.

View File

@ -211,6 +211,7 @@ def _generate_inspection_subnets():
env_dict['ip_range'] = s.inspection_iprange
env_dict['netmask'] = str(netaddr.IPNetwork(s.cidr).netmask)
env_dict['gateway'] = s.gateway
env_dict['mtu'] = CONF.local_mtu
env_list.append(env_dict)
return env_list