summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulia Kreger <juliaashleykreger@gmail.com>2019-09-21 17:16:58 -0700
committerDmitry Tantsur <dtantsur@protonmail.com>2019-10-23 11:09:25 +0200
commit4dab3dde694da0f6327ec92e3e56e4f9d47ef54e (patch)
tree661dcfcaf47d7101e03f5a678e967a86dcf589aa
parentf7caa625c72801e3c2b53be9e7014ef3f968501f (diff)
downloadironic-4dab3dde694da0f6327ec92e3e56e4f9d47ef54e.tar.gz
Change MTU logic to allow for lower MTUs automatically
Conflicts: zuul.d/ironic-jobs.yaml Change-Id: I40d357e716b589585493824cfd963fd5f579bd81 (cherry picked from commit cf074202e50426365c761326c8d2ccfcce4ad916)
-rw-r--r--devstack/settings6
-rw-r--r--zuul.d/ironic-jobs.yaml2
2 files changed, 5 insertions, 3 deletions
diff --git a/devstack/settings b/devstack/settings
index 9783efdd6..cafa85384 100644
--- a/devstack/settings
+++ b/devstack/settings
@@ -9,4 +9,8 @@ source $DEST/ironic/devstack/common_settings
local_mtu=$(ip link show | sed -ne 's/.*mtu \([0-9]\+\).*/\1/p' | sort -n | head -1)
# 50 bytes is overhead for vxlan (which is greater than GRE
# allowing us to use either overlay option with this MTU.
-PUBLIC_BRIDGE_MTU=${OVERRIDE_PUBLIC_BRIDGE_MTU:-$((local_mtu - 50))}
+# However, if traffic is flowing over IPv6 tunnels, then
+# The overhead is essentially another 100 bytes. In order to
+# handle both cases, lets go ahead and drop the maximum by
+# 100 bytes.
+PUBLIC_BRIDGE_MTU=${OVERRIDE_PUBLIC_BRIDGE_MTU:-$((local_mtu - 100))}
diff --git a/zuul.d/ironic-jobs.yaml b/zuul.d/ironic-jobs.yaml
index 128c55c3c..ca6b0c6f4 100644
--- a/zuul.d/ironic-jobs.yaml
+++ b/zuul.d/ironic-jobs.yaml
@@ -29,7 +29,6 @@
DEFAULT_INSTANCE_TYPE: baremetal
FORCE_CONFIG_DRIVE: True
INSTALL_TEMPEST: False # Don't install a tempest package globaly
- OVERRIDE_PUBLIC_BRIDGE_MTU: 1400
TEMPEST_PLUGINS: "{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-tempest-plugin"
VIRT_DRIVER: ironic
BUILD_TIMEOUT: 720
@@ -364,7 +363,6 @@
IRONIC_VM_LOG_DIR: '{{ devstack_base_dir }}/ironic-bm-logs'
IRONIC_VM_SPECS_RAM: 384
OS_TEST_TIMEOUT: 2400
- OVERRIDE_PUBLIC_BRIDGE_MTU: 1400
OVS_BRIDGE_MAPPINGS: 'mynetwork:brbm,public:br-infra'
OVS_PHYSICAL_BRIDGE: brbm
PHYSICAL_NETWORK: mynetwork