Skip to content
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

cloud-init runcmd keeps running even when a command fails #222

Open
cmd-ntrf opened this issue Sep 16, 2022 · 1 comment
Open

cloud-init runcmd keeps running even when a command fails #222

cmd-ntrf opened this issue Sep 16, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@cmd-ntrf
Copy link
Member

All commands in MC's cloud-init are essential to the puppet configuration that follows on next boot.

While these commands work in normal conditions, sometime cloud-init is executed in abnormal conditions, like without an internet connection. This results in some of the commands failing and puppet being unable to run properly at next boot.

runcmd should probably stop on first error and a re-run of cloud-init should be triggered.

@cmd-ntrf cmd-ntrf added the enhancement New feature or request label Sep 16, 2022
@cmd-ntrf cmd-ntrf self-assigned this Sep 16, 2022
@cmd-ntrf
Copy link
Member Author

Examples of error handling in a bash script:
https://intoli.com/blog/exit-on-errors-in-bash-scripts/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant