Update jenkins build slave packer script 26/11926/2
authorsankar palanivel <sankar.palanivel@est.tech>
Fri, 7 Jan 2022 10:58:01 +0000 (10:58 +0000)
committersankar palanivel <sankar.palanivel@est.tech>
Fri, 7 Jan 2022 11:15:11 +0000 (11:15 +0000)
In this change,
 - Packer image build scripts updated with below entries in order to fix an issue
   with Let's Encrypt certificate when cloning repo from gerrit.est.tech due to DST
   Root CA X3 Expiration: https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/

   1. Remove outdated certificate from system:
      # rm -rf /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
   2. Update CA certificates on the system
      # sudo update-ca-certificates --fresh --verbose

Change-Id: I7a0eebe0e3ea6b7624b89e090cac566bca47e401

infra/jenkins/slave-setup/cloud-infra/configure-image-ubuntu1804.sh
infra/jenkins/slave-setup/nordix-nsm-build-server/configure-image-ubuntu1804.sh
infra/jenkins/slave-setup/nordix-onap-jenkins-build-server/configure-image.sh
infra/jenkins/slave-setup/oransc-build-server/configure-image.sh
infra/jenkins/slave-setup/uds-build-server/configure-image.sh

index 7aebf32b4e3f093bf060dbcbb42304ea3bac33f1..ab00278922b0fd2710c1b19f7d6cc718147b3e52 100644 (file)
@@ -59,6 +59,13 @@ sudo -H -E apt upgrade -y -q=3
 # install packages
 sudo -H -E apt -y -q=3 install ${PKG_LIST[@]}
 
+# If you have a issue with Let's Encrypt certificate when cloning repo due to DST Root CA X3 Expiration:
+# https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
+# remove outdated certificate from system
+sudo rm -rf /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
+# update ca-certificates
+sudo update-ca-certificates --fresh --verbose
+
 # remove unnecessary packages
 sudo -H -E apt autoremove -y
 
index 5b2561b4ac87b0ee1cf38014f1766f068ecd9d24..038ed47433ebcbffb7e4c99745f5b40385e0df77 100644 (file)
@@ -28,6 +28,13 @@ sudo apt upgrade -y
 # install basic dependencies
 sudo apt install -y make openjdk-11-jre-headless apt-transport-https ca-certificates curl gnupg jq software-properties-common build-essential
 
+# If you have a issue with Let's Encrypt certificate when cloning repo due to DST Root CA X3 Expiration:
+# https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
+# remove outdated certificate from system
+sudo rm -rf /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
+# update ca-certificates
+sudo update-ca-certificates --fresh --verbose
+
 # set versions of various things for NSM for visibility and ease of maintenance
 DOCKER_CE_VERSION="5:20.10.5~3-0~ubuntu-bionic"
 DOCKER_CE_CLI_VERSION="5:20.10.5~3-0~ubuntu-bionic"
index a59a7e22293bb1e4941dc9b333dcaa8baa2f626c..d3b6f999eea74ed13b38e901428b372182729dda 100644 (file)
@@ -75,6 +75,13 @@ sudo add-apt-repository \
 sudo apt-get update
 sudo -H -E apt -y -q=3 --no-install-recommends install "${PKG_LIST[@]}"
 
+# If you have a issue with Let's Encrypt certificate when cloning repo due to DST Root CA X3 Expiration:
+# https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
+# remove outdated certificate from system
+sudo rm -rf /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
+# update ca-certificates
+sudo update-ca-certificates --fresh --verbose
+
 # Enable and start docker
 docker --version
 sudo systemctl enable docker
index 8ba4783a0bb521d030fb3a6f7c1e77fa70ad2d5c..66d2e54cd9f3fb057aa3e1f4ce8357ff320246e7 100644 (file)
@@ -50,6 +50,13 @@ docker --version
 sudo systemctl enable docker
 sudo systemctl start docker
 
+# If you have a issue with Let's Encrypt certificate when cloning repo due to DST Root CA X3 Expiration:
+# https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
+# remove outdated certificate from system
+sudo rm -rf /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
+# update ca-certificates
+sudo update-ca-certificates --fresh --verbose
+
 echo "Info  : Install ORANSC build dependency packages"
 sudo apt install -y  \
     diffstat \
index 5ddc68fca394e6d06da331c3c336bfaea340ce66..34e361b0da591e9667d30af1de62250eb79e3e57 100644 (file)
@@ -44,6 +44,13 @@ docker --version
 sudo systemctl enable docker
 sudo systemctl start docker
 
+# If you have a issue with Let's Encrypt certificate when cloning repo due to DST Root CA X3 Expiration:
+# https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
+# remove outdated certificate from system
+sudo rm -rf /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
+# update ca-certificates
+sudo update-ca-certificates --fresh --verbose
+
 # CREATE JENKINS USER
 # Crete homedir, add to sudo group, add entry in /etc/passwd
 sudo useradd -G sudo,docker -d /home/jenkins -m -c "jenkins user" -s /bin/bash jenkins