Open pschirch opened 1 month ago
@pschirch , I cannot reproduce this. Using the same version of Ubuntu, cloud-init, and your user data, I get:
# cloud-init status --wait --long
......status: error
extended_status: error - done
boot_status_code: enabled-by-generator
last_update: Thu, 01 Jan 1970 00:00:06 +0000
detail: DataSourceLXD
errors:
- ('scripts_user', RuntimeError('Runparts: 1 failures (runcmd) in 1 attempted commands'))
recoverable_errors:
WARNING:
- Failed to run module scripts_user (scripts in /var/lib/cloud/instance/scripts)
- Running module scripts_user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) failed
Can you run cloud-init collect-logs
on an affected instance and upload them?
Bug report
You usually use set -e to exit a script on error.
cloud-init status
should beerror
now. Butcloud-init
continues and ends up with statusdone
.cloud-init status --long
Steps to reproduce the problem
Environment details
24.3.1-0ubuntu0~24.04.2
Ubuntu 24.04.1 LTS
hcloud
cloud-init logs