Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix asadmin migration to check instance count, use autoscale terminate instead of ec2 terminate #3618

Closed
wants to merge 1 commit into from

Conversation

bandesz
Copy link

@bandesz bandesz commented Sep 27, 2016

There is a bug in the asadmin migration process which can cause to shut down two instances at once. There is a short period of time when the old instance is destroyed but the autoscaling group did not create a new one yet. This fix checks the instance count too.

Also instead of terminating the ec2 instance we should use autoscale.terminate which is safer and also leaves a more friendly message in the asg history: "instance i-xxx was taken out of service in response to a user request."

@ghost ghost closed this by deleting the head repository Oct 1, 2022
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant