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

Power off immediately if cloud-init fails #638

Merged
merged 1 commit into from Oct 23, 2019

Conversation

dbaggerman
Copy link
Contributor

This appears to fix #572 for us.

We see occasional failures from cloud-init failing to communicate with the EC2 metadata endpoint. These appear in systemd as a failure of the cloud-final service. By adding OnFailure=poweroff.target, the instance will power itself off when this occurs and allow the ASG to replace it instead of hanging around in a hung state forever.

@lox
Copy link
Contributor

lox commented Oct 23, 2019

Darn, sorry I missed this @dbaggerman!

@lox
Copy link
Contributor

lox commented Oct 23, 2019

This seems like a great idea.

@lox lox merged commit 70a6590 into buildkite:master Oct 23, 2019
lox added a commit that referenced this pull request Nov 4, 2019
Power off immediately if cloud-init fails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS EC2 instance never comes up - ASG reports 1 instance, but stuck in pending
2 participants