Adds an explicit wait for cloud-init to finish before
proceeding with installation
Change-Id: Iafe6f838f278439c5e73655d5ce58bf56d2cad55
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
remote.logLevel = 'INFO'
remote.pty = true
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
// Force time sync to avoid clock drift and invalid certificates
sshCommand remote: remote, command: """
sudo apt update