From 6306f51b54a2d49e337a864d844d661731d580c5 Mon Sep 17 00:00:00 2001 From: Eric Multanen Date: Thu, 26 Oct 2017 20:59:24 -0700 Subject: vCPE vG-MUX- fix auto ugrade disable configuration Move configuration of disabling auto upgrade to the 'build' phase of the install script. Also, disable the setting in the /etc/apt/apt.conf.d/20auto-upgrades file. Auto upgrade of the kernel without associated packages can cause vpp to stop working. This should help keep the demo instances running without occasional failures. Change-Id: Ief46bc7866a94d67fe2c3d2fe2d1f22bb4433aa9 Issue-ID: INT-63 Signed-off-by: Eric Multanen --- vnfs/vCPE/scripts/v_gmux_install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vnfs/vCPE/scripts/v_gmux_install.sh b/vnfs/vCPE/scripts/v_gmux_install.sh index 1907a5f1..50f754da 100644 --- a/vnfs/vCPE/scripts/v_gmux_install.sh +++ b/vnfs/vCPE/scripts/v_gmux_install.sh @@ -373,6 +373,13 @@ EOF l_version=$(echo "${l_version#*>}") mv vpp-integration/minimal-distribution/target/vpp-integration-distribution-${l_version}-hc/vpp-integration-distribution-${l_version} /opt/honeycomb sed -i 's/127.0.0.1/0.0.0.0/g' /opt/honeycomb/config/honeycomb.json + + # Disable automatic upgrades + if [[ $CLOUD_ENV != "rackspace" ]] + then + echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic + sed -i 's/\(APT::Periodic::Unattended-Upgrade\) "1"/\1 "0"/' /etc/apt/apt.conf.d/20auto-upgrades + fi fi # endif BUILD_STATE != "done" if [[ $BUILD_STATE != "build" ]] @@ -582,7 +589,6 @@ EOF sed -i "s/ens[0-9]*/eth0/g" /etc/network/interfaces.d/*.cfg sed -i "s/ens[0-9]*/eth0/g" /etc/udev/rules.d/70-persistent-net.rules echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg - echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic reboot fi -- cgit 1.2.3-korg