-
Notifications
You must be signed in to change notification settings - Fork 886
[release/v0.9] Handle cleanup DNS for attachable container #1999
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
Conversation
service_common.go
Outdated
| } | ||
| } | ||
|
|
||
| func (c *controller) getLBIndex(sid, nid string, ingressPorts []*PortConfig) int { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is not used by this commit. I dont think adding this new function to resolve the conflict is appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've updated the commit a75ba12 to not include getLBIndex in service_common.go
mavenugo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The conflict resolution needs some care.
Attachable containers they are tasks with no service associated their cleanup was not done properly so it was possible to have a leak of their name resolution if that was the last container on the network. Cleanupservicebindings was not able to do the cleanup because there is no service, while also the notification of the delete arrives after that the network is already being cleaned Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com> (cherry picked from commit 1c04e19) Conflicts: service_common.go Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
|
looks good now, thanks |
mavenugo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
I believe we have e2e tests for this as well that can now be run automated using testkit. @antonybichon17 |
backport:
with cherry-pick of git commits 1c04e19 52a9ab5:
conflict with file
service_common.goresolved by adding functions:func (c *controller) getLBIndex(sid, nid string, ingressPorts []*PortConfig) intfunc (c *controller) cleanupServiceDiscovery(cleanupNID string)