From: Mike Marchetti Date: Wed, 17 May 2017 22:34:16 +0000 (+0200) Subject: Merge "add osmclient build" X-Git-Tag: v2.0.1~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=46cac1a1f0dbdf2d6c2d7e0089d3cc099019f4a0;hp=65fdf23091cd954229c23a0257f79f53d2a4243e;p=osm%2Fdevops.git Merge "add osmclient build" --- diff --git a/jenkins/SO/install b/jenkins/SO/install index 357310f9..948e8f87 100755 --- a/jenkins/SO/install +++ b/jenkins/SO/install @@ -55,7 +55,7 @@ fi # Set up repo and version PLATFORM_REPOSITORY=${1:-OSM} -PLATFORM_VERSION=${2:-4.4.2.1.60552} +PLATFORM_VERSION=${2:-4.4.2.1.61839} ############################################################################### # Main block diff --git a/jenkins/VCA/start_build b/jenkins/VCA/start_build index 45b0e94c..d6ccfd8c 100755 --- a/jenkins/VCA/start_build +++ b/jenkins/VCA/start_build @@ -56,6 +56,16 @@ EOF systemctl enable lxd-bridge systemctl start lxd-bridge +DEFAULT_INTERFACE=$(route -n | awk '$1~/^0.0.0.0/ {print $8}') +DEFAULT_MTU=$( ip addr show $DEFAULT_INTERFACE | perl -ne 'if (/mtu\s(\d+)/) {print $1;}') + +INFO "Setting lxdbr0 MTU to $DEFAULT_MTU" +ifconfig lxdbr0 mtu $DEFAULT_MTU + +# Make the MTU change persistent between reboots +sed -i '/ifconfig lxdbr0 mtu/d' /etc/rc.local +sed -i "$ i ifconfig lxdbr0 mtu $DEFAULT_MTU" /etc/rc.local + INFO "Pre-caching Ubuntu:16.04 image (this may take several minutes)..." # Setup a daily cron to update the cached image