From: Mark Beierl Date: Tue, 25 Oct 2022 15:27:47 +0000 (-0400) Subject: Bug 2185: Wait for cloud init X-Git-Tag: v10.1.3~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F12611%2F1;p=osm%2Fdevops.git Bug 2185: Wait for cloud init Adds an explicit wait for cloud-init to finish before proceeding with installation Change-Id: Iafe6f838f278439c5e73655d5ce58bf56d2cad55 Signed-off-by: Mark Beierl --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index eb5bd138..98acd29a 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -456,6 +456,9 @@ node("${params.NODE}") { remote.logLevel = 'INFO' remote.pty = true + // 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 update