From 8d3b1402536f3adbcb82d0e2040fa30ac90b2761 Mon Sep 17 00:00:00 2001 From: Mark Beierl Date: Tue, 25 Oct 2022 11:22:45 -0400 Subject: [PATCH] Bug 2184: Wait for cloud init Adds an explicit wait for cloud-init to finish before proceeding with installation Change-Id: I76ec924b07a42f8d267acc8dd34920c032a37769 Signed-off-by: Mark Beierl --- jenkins/ci-pipelines/ci_stage_3.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 50effe07..1474f89d 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -447,6 +447,8 @@ node("${params.NODE}") { logLevel: 'INFO', 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-get update' -- 2.17.1