From f71bcf0db3826b59e21a1d228f95c99d528da3ad Mon Sep 17 00:00:00 2001 From: Mark Beierl Date: Tue, 25 Oct 2022 11:27:47 -0400 Subject: [PATCH] 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 --- jenkins/ci-pipelines/ci_stage_3.groovy | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.25.1