ec2_asg module does not check instance health status #186
Labels
affects_2.10
bug
This issue/PR relates to a bug
easyfix
Good for new comers and easy to start with contribution
module
module
plugins
plugin (any type)
waiting_on_contributor
Needs help. Feel free to engage to get things unblocked
SUMMARY
Due to the ASG grace period, it appears it is possible for an EC2 to report a lifecycle state of "InService" on the ASG while still reporting an instance status of "Unhealthy" on the ASG. The ec2_asg module proceeds successfully in this scenario even though registering and debugging the result shows the following:
I believe this is due to the fact that there is no check of the health status here
ISSUE TYPE
COMPONENT NAME
ec2_asg
ANSIBLE VERSION
OS / ENVIRONMENT
Xenial EC2
STEPS TO REPRODUCE
Deploy a broken AMI via an autoscaling group using the ec2_asg module, a classic load balancer, and ELB health checks on the ASG
EXPECTED RESULTS
The module should wait until the instance is healthy and fail if the instance does not become healthy before the timeout
ACTUAL RESULTS
The module waited for the instance to enter lifecycle state "InService" and then proceeded with the deploy despite the fact that the instance health status was still "Unhealthy"
The text was updated successfully, but these errors were encountered: