diff options
author | Eric Multanen <eric.w.multanen@intel.com> | 2017-10-26 20:59:24 -0700 |
---|---|---|
committer | Eric Multanen <eric.w.multanen@intel.com> | 2017-10-26 20:59:24 -0700 |
commit | 6306f51b54a2d49e337a864d844d661731d580c5 (patch) | |
tree | b0aff6c204dbca75ad0db92a28be4b4b5e12b205 /vnfs/vCPE | |
parent | e6b4787233b549b730e1bc4a8b099b7cf131adb1 (diff) |
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 <eric.w.multanen@intel.com>
Diffstat (limited to 'vnfs/vCPE')
-rw-r--r-- | vnfs/vCPE/scripts/v_gmux_install.sh | 8 |
1 files changed, 7 insertions, 1 deletions
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 |