From: Kienan Stewart Date: Wed, 31 Jan 2024 14:07:45 +0000 (-0500) Subject: jjb: Allow cloud-init status to complete with an error for images X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=511446639c24245feb16c15c6d66e9a80f2cc243;p=lttng-ci.git jjb: Allow cloud-init status to complete with an error for images Change-Id: I7b63d76a9ce61a3cf19b2ab8f75742dde42e51a2 Signed-off-by: Kienan Stewart --- diff --git a/pipelines/images/imagebuild.sh b/pipelines/images/imagebuild.sh index 8d164ae..1b36a03 100644 --- a/pipelines/images/imagebuild.sh +++ b/pipelines/images/imagebuild.sh @@ -132,7 +132,10 @@ done # Wait for cloud-init to finish if [[ "${VARIANT}" == "cloud" ]] ; then - lxc exec "${INSTANCE_NAME}" -- cloud-init status -w + # It's possible for cloud-init to fail, but to still be able to continue. + # Eg., a profile asks for netplan.io on a system that doesn't have that + # package available. + lxc exec "${INSTANCE_NAME}" -- cloud-init status -w || true fi # Wait for instance to have an ip address (@TODO: is there a better approach?)