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/vLB/base_vlb.yaml | 3 +++ heat/vLB/dnsscaling.yaml | 1 + 2 files changed, 4 insertions(+) (limited to 'heat/vLB') diff --git a/heat/vLB/base_vlb.yaml b/heat/vLB/base_vlb.yaml index d57f5afa..600bb103 100644 --- a/heat/vLB/base_vlb.yaml +++ b/heat/vLB/base_vlb.yaml @@ -300,6 +300,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 [[ "__install_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.vlb&a=vlb-scripts&e=zip&v=__install_script_version__" -o /opt/vlb-scripts-__install_script_version__.zip @@ -369,6 +370,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 [[ "__install_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.vlb&a=vlb-scripts&e=zip&v=__install_script_version__" -o /opt/vlb-scripts-__install_script_version__.zip @@ -438,6 +440,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 [[ "__install_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.vlb&a=vlb-scripts&e=zip&v=__install_script_version__" -o /opt/vlb-scripts-__install_script_version__.zip diff --git a/heat/vLB/dnsscaling.yaml b/heat/vLB/dnsscaling.yaml index 0d22f804..235bec84 100644 --- a/heat/vLB/dnsscaling.yaml +++ b/heat/vLB/dnsscaling.yaml @@ -206,6 +206,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 [[ "__install_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.vlb&a=vlb-scripts&e=zip&v=__install_script_version__" -o /opt/vlb-scripts-__install_script_version__.zip -- cgit 1.2.3-korg