From 8ae23f9f45c8a481bec5238ecc759ac0c23538a6 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Thu, 13 Sep 2018 12:25:11 -0400 Subject: Prevent package installation failures in VNFs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add apt-get update to the user_data parts of the VNF Heat templates to prevent failures of package installation Change-Id: Iaa2e54f5dc7e88dc2891f4deddfebc0d2cde22e7 Issue-ID: INT-660 Signed-off-by: Marco Platania --- heat/vCPE_build/vbng/build_vcpe_vbng.yaml | 1 + heat/vCPE_build/vbrgemu/build_vcpe_vbrgemu.yaml | 1 + heat/vCPE_build/vgmux/build_vcpe_vgmux.yaml | 1 + heat/vCPE_build/vgw/build_vcpe_vgw.yaml | 1 + 4 files changed, 4 insertions(+) (limited to 'heat/vCPE_build') diff --git a/heat/vCPE_build/vbng/build_vcpe_vbng.yaml b/heat/vCPE_build/vbng/build_vcpe_vbng.yaml index 0822185d..85b2aac2 100644 --- a/heat/vCPE_build/vbng/build_vcpe_vbng.yaml +++ b/heat/vCPE_build/vbng/build_vcpe_vbng.yaml @@ -162,6 +162,7 @@ resources: echo "__nexus_artifact_repo__" > /opt/config/nexus_artifact_repo.txt # Download and run install script + apt-get update apt-get -y install unzip if [[ "__script_version__" =~ "SNAPSHOT" ]]; then REPO=snapshots; else REPO=releases; fi curl -k -L "__nexus_artifact_repo__/service/local/artifact/maven/redirect?r=${REPO}&g=org.onap.demo.vnf.vcpe&a=vcpe-scripts&e=zip&v=__script_version__" -o /opt/vcpe-scripts-__script_version__.zip diff --git a/heat/vCPE_build/vbrgemu/build_vcpe_vbrgemu.yaml b/heat/vCPE_build/vbrgemu/build_vcpe_vbrgemu.yaml index d49b07f4..d3d8a4fc 100644 --- a/heat/vCPE_build/vbrgemu/build_vcpe_vbrgemu.yaml +++ b/heat/vCPE_build/vbrgemu/build_vcpe_vbrgemu.yaml @@ -175,6 +175,7 @@ resources: echo "__nexus_artifact_repo__" > /opt/config/nexus_artifact_repo.txt # Download and run install script + apt-get update apt-get -y install unzip if [[ "__script_version__" =~ "SNAPSHOT" ]]; then REPO=snapshots; else REPO=releases; fi curl -k -L "__nexus_artifact_repo__/service/local/artifact/maven/redirect?r=${REPO}&g=org.onap.demo.vnf.vcpe&a=vcpe-scripts&e=zip&v=__script_version__" -o /opt/vcpe-scripts-__script_version__.zip diff --git a/heat/vCPE_build/vgmux/build_vcpe_vgmux.yaml b/heat/vCPE_build/vgmux/build_vcpe_vgmux.yaml index 8d23e173..09c22f5c 100644 --- a/heat/vCPE_build/vgmux/build_vcpe_vgmux.yaml +++ b/heat/vCPE_build/vgmux/build_vcpe_vgmux.yaml @@ -196,6 +196,7 @@ resources: echo "__compile_state__" > /opt/config/compile_state.txt # Download and run install script + apt-get update apt-get -y install unzip if [[ "__script_version__" =~ "SNAPSHOT" ]]; then REPO=snapshots; else REPO=releases; fi curl -k -L "__nexus_artifact_repo__/service/local/artifact/maven/redirect?r=${REPO}&g=org.onap.demo.vnf.vcpe&a=vcpe-scripts&e=zip&v=__script_version__" -o /opt/vcpe-scripts-__script_version__.zip diff --git a/heat/vCPE_build/vgw/build_vcpe_vgw.yaml b/heat/vCPE_build/vgw/build_vcpe_vgw.yaml index 968f157a..3660f62c 100644 --- a/heat/vCPE_build/vgw/build_vcpe_vgw.yaml +++ b/heat/vCPE_build/vgw/build_vcpe_vgw.yaml @@ -178,6 +178,7 @@ resources: echo "__compile_state__" > /opt/config/compile_state.txt # Download and run install script + apt-get update apt-get -y install unzip if [[ "__script_version__" =~ "SNAPSHOT" ]]; then REPO=snapshots; else REPO=releases; fi curl -k -L "__nexus_artifact_repo__/service/local/artifact/maven/redirect?r=${REPO}&g=org.onap.demo.vnf.vcpe&a=vcpe-scripts&e=zip&v=__script_version__" -o /opt/vcpe-scripts-__script_version__.zip -- cgit 1.2.3-korg