From c0bf4248333b1cf87ef2f9ae1f3d7699c82d1709 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Mon, 20 Jan 2014 13:06:17 +1300 Subject: [PATCH] Clamp MTU in TripleO instances Due to bug 1270646 using the default MTU is an utter fail performance wise. Change-Id: Ic9bd9e431a9790a992f8c3146f3e2b659240679b --- .../files/nodepool/scripts/prepare_node_tripleo.sh | 2 ++ .../files/nodepool/scripts/prepare_tripleo.sh | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/modules/openstack_project/files/nodepool/scripts/prepare_node_tripleo.sh b/modules/openstack_project/files/nodepool/scripts/prepare_node_tripleo.sh index 6d74bbe685..a43e2b7a7a 100755 --- a/modules/openstack_project/files/nodepool/scripts/prepare_node_tripleo.sh +++ b/modules/openstack_project/files/nodepool/scripts/prepare_node_tripleo.sh @@ -18,5 +18,7 @@ HOSTNAME=$1 +# Workaround bug 1270646 during node bootstrapping. +sudo ip link set mtu 1458 dev eth0 ./prepare_node.sh $HOSTNAME sudo -u jenkins -i /opt/nodepool-scripts/prepare_tripleo.sh $HOSTNAME diff --git a/modules/openstack_project/files/nodepool/scripts/prepare_tripleo.sh b/modules/openstack_project/files/nodepool/scripts/prepare_tripleo.sh index 9adcdeaeed..a2b71ec28c 100755 --- a/modules/openstack_project/files/nodepool/scripts/prepare_tripleo.sh +++ b/modules/openstack_project/files/nodepool/scripts/prepare_tripleo.sh @@ -52,6 +52,11 @@ EOF # Note that we don't bring it up during prepare - it's only needed to run # tests. +# Workaround bug 1270646 for actual slaves +sudo dd of=/etc/network/interfaces.d/eth0.cfg oflag=append conv=notrunc << EOF + post-up ip link set mtu 1458 dev eth0 +EOF + # We'll want something like this for triplo when we do dependencies # #. /etc/lsb-release