Bug report
When using runmd, the last command in that list will determine the result of the runcmd
step. If the last command fails, cloud-init will report an error. If the last command
succeeds, all the previous command may fail, and cloud-init still reports success.
This is an inconsistency that I couldn't find in the documentation.
Steps to reproduce the problem
Use the following cloud-init config to see cloud-init report success:
#cloud-config
runcmd:
- /bin/false
- /bin/true
Use the following cloud-init config to see cloud-init report failure:
#cloud-config
runcmd:
- /bin/true
- /bin/false
Environment details
- Cloud-init version: 26.1-0ubuntu2
- Operating System Distribution: Ubuntu 26.04
- Cloud provider, platform or installer type: lxd
cloud-init logs
Bug report
When using runmd, the last command in that list will determine the result of the runcmd
step. If the last command fails, cloud-init will report an error. If the last command
succeeds, all the previous command may fail, and cloud-init still reports success.
This is an inconsistency that I couldn't find in the documentation.
Steps to reproduce the problem
Use the following cloud-init config to see cloud-init report success:
Use the following cloud-init config to see cloud-init report failure:
Environment details
cloud-init logs