-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shell provisioner with cloud-init fails on Ubuntu 24.04 #186
Comments
Hello, I had the same problem and spent yesterday the whole day trying to figure out why it just wouldn't work. In the cloud-init issue tracker on GitHub, I found something interesting from a Canonical employee. They mentioned that the return value of Fortunately, the return value is not fixed in Packer, and you can set your own value(s): {
"type": "shell",
"inline": [
"cloud-init status --wait"
],
"valid_exit_codes": [0, 2]
} With this small fix now everything works again. I plan to update and convert the whole droplet-1-clicks repository to the new Readability
Maintainability
Functionality
Versioning and Changes
This is a game changer and i hope somone from digitalocean will accept my pull request. Best regards |
in case its not clear, canonical/cloud-init@a061e81 is a workaround, but the reason the error code is 2 is due to strict validation errors somewhere with noble's cloud-init. so likely also a bug on their end. the output of |
Yes but the published images from DO itself have the same error:
Error: Invalid schema: vendor-data, network-config And this happens on ubuntu 22.04 so i think this is not the problem |
I'm also seeing the same thing as @ThinkBIG-Company in the release pipeline for Dokku. Link here. Is this a bug in the generated cloud config, or a bug in cloud-init? |
A change in cloud-init and/or the Ubuntu image provided by Digitalocean causes builds to fail due to cloud-init status exiting 2. The error is ignorable. See digitalocean/marketplace-partners#186 for more details.
The first shell provisioner fails with
cloud-init status --wait
onubuntu-24-04-x64
image, but runs fine with theubuntu-22-04-x64
image.The text was updated successfully, but these errors were encountered: