-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
adding missed lifecycles in elb code #4154
adding missed lifecycles in elb code #4154
Conversation
f7e6088
to
1b6b45c
Compare
/assign @robinpercy |
@almariah we missed adding lifecycle to the ELB, and now I am getting odd errors with the unit test. Any ideas? /hold |
@chrislovecnm - The error is
The integration test contains a nice specific case: where you have additional and similar security groups for API ELB and instance group, which cause tasks with same name. If you noticed: they have the same task name. I suggest changing the task name. For api_loadbalancer.go:
and for autoscalinggroup.go
Also AdditionalSecurityGroups in autoscalinggroup.go does not have |
That is going to cause problems. I will make the autoscaling task an ensure task. Thanks for the catch on the missing lifecycle. Will add that. |
@almariah thanks for the assist btw!! |
@chrislovecnm For both autoscaling group and ELB the additional security groups are ensure tasks. The problem happened because of same security group ID for ELB and ASG which cause the same task name (task name is the configured to be same as ID). But for either ELB or ASG you are not allowed to have multiple security group with the same ID and consequently no repeated task name for iteration over the list of security groups. This iteration happened twice because the test case was adding the same list for both ELB and ASG and that for example our case in our own deployment for the cluster. |
@chrislovecnm I don't know why ensure task does not work in that case; may be because it uses |
@chrislovecnm I have tested it by adding Also you should add |
Thanks, @almariah, exceptionally helpful! I am putting in the changes and testing. |
1b6b45c
to
88baba3
Compare
/hold cancel @justinsb @geojaz @andrewsykim PTAL |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test pull-kops-e2e-kubernetes-aws |
Fixing missed lifecycles in two different places