Bug 2184: Wait for cloud init
[osm/devops.git] / jenkins / ci-pipelines / ci_stage_3.groovy
index 50effe0..1474f89 100644 (file)
@@ -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'