From 2e6358a61a4b83b038759300f5307aabcf51788d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Jens=C3=A5s?= Date: Thu, 26 Sep 2019 14:50:07 +0200 Subject: [PATCH] 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 ff31fe18ec028e6d187de2c3fda539d28caf0a27) --- ...ass-mtu-option-inspector-dnsmasq-7c2f9d7d358ace07.yaml | 8 ++++++++ tripleoclient/v1/undercloud_config.py | 1 + 2 files changed, 9 insertions(+) create mode 100644 releasenotes/notes/fix-pass-mtu-option-inspector-dnsmasq-7c2f9d7d358ace07.yaml diff --git a/releasenotes/notes/fix-pass-mtu-option-inspector-dnsmasq-7c2f9d7d358ace07.yaml b/releasenotes/notes/fix-pass-mtu-option-inspector-dnsmasq-7c2f9d7d358ace07.yaml new file mode 100644 index 000000000..5150348eb --- /dev/null +++ b/releasenotes/notes/fix-pass-mtu-option-inspector-dnsmasq-7c2f9d7d358ace07.yaml @@ -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 + `_. + diff --git a/tripleoclient/v1/undercloud_config.py b/tripleoclient/v1/undercloud_config.py index df2f58b3c..67e8f3a76 100644 --- a/tripleoclient/v1/undercloud_config.py +++ b/tripleoclient/v1/undercloud_config.py @@ -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