Clamp MTU in TripleO instances

Due to bug 1270646 using the default MTU is an utter fail performance
wise.

Change-Id: Ic9bd9e431a9790a992f8c3146f3e2b659240679b
This commit is contained in:
Robert Collins 2014-01-20 13:06:17 +13:00
parent aedcb63865
commit c0bf424833
2 changed files with 7 additions and 0 deletions

View File

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

View File

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