X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2FVCA%2Fstart_build;h=fc91aadc53272fafea00217a2224d11abaeae5ef;hb=83dff8250aebbef9e2278800ab5fbeeb468791cf;hp=45b0e94c38b953716c06ff2f523b7d2ed8ccc976;hpb=828aaf8ed201421d4d3d3fcf74f6764624c365e4;p=osm%2Fdevops.git diff --git a/jenkins/VCA/start_build b/jenkins/VCA/start_build index 45b0e94c..fc91aadc 100755 --- a/jenkins/VCA/start_build +++ b/jenkins/VCA/start_build @@ -56,6 +56,20 @@ 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" + +# This sets the MTU of lxdbr0 on the host machine without the need to recycle +# the interface or reboot the machine. +ifconfig lxdbr0 mtu $DEFAULT_MTU + +# Setting the MTU in the default profile will be applied to every lxc container. +# Existing containers will need to be restarted for the new MTU to take effect. +# This will also persist the MTU change for the host's lxdbr0 +lxc profile device set default eth0 mtu $DEFAULT_MTU + INFO "Pre-caching Ubuntu:16.04 image (this may take several minutes)..." # Setup a daily cron to update the cached image @@ -67,7 +81,7 @@ cp $HERE/update-lxd-image.sh /etc/cron.daily INFO "Bootstrapping VCA" juju bootstrap localhost osm \ --config default-series=xenial \ ---config enable-os-refresh-update=false \ +--config enable-os-refresh-update=true \ --config enable-os-upgrade=false \ --config apt-http-proxy=http://10.44.127.1:8000