From: Mark Beierl Date: Fri, 23 Sep 2022 18:04:23 +0000 (-0400) Subject: Bug 2171: Wait for cloud init X-Git-Tag: release-v13.0-start~29 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fdevops.git;a=commitdiff_plain;h=8585f3369306457cb2c3918f8bb5e47d5796dd79 Bug 2171: Wait for cloud init Removes the explicit add of the GPG key from stage 3 as we no longer use that key Adds an explicit wait for cloud-init to finish before proceeding with installation Fixes bug 2171 Change-Id: I268efa1b0b322444d20ac9641745303b330bfd6a Signed-off-by: Mark Beierl --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 9b030163..a65b8b70 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -448,8 +448,8 @@ node("${params.NODE}") { pty: true ] - // Force loading of the ETSI Debian Package Signing Key - sshCommand remote: remote, command: 'sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93EC7342B1168CDB' + // Ensure the VM is ready + sshCommand remote: remote, command: 'cloud-init status --wait' // Force time sync to avoid clock drift and invalid certificates sshCommand remote: remote, command: 'sudo apt-get update' sshCommand remote: remote, command: 'sudo apt-get install -y chrony'