Skip to content

Handle cleanup DNS for attachable container - #1985

Merged
mavenugo merged 1 commit into
moby:masterfrom
fcrisciani:fix-attachable-cnt
Oct 18, 2017
Merged

Handle cleanup DNS for attachable container#1985
mavenugo merged 1 commit into
moby:masterfrom
fcrisciani:fix-attachable-cnt

Conversation

@fcrisciani

Copy link
Copy Markdown

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

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>

@mavenugo mavenugo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mavenugo
mavenugo merged commit b5cc5c5 into moby:master Oct 18, 2017
@mghazizadeh

Copy link
Copy Markdown

there are no tests attached to this PR.

fcrisciani pushed a commit to fcrisciani/libnetwork that referenced this pull request Oct 19, 2017
Unit test for the cleanupServiceDiscovery,
follow up of PR: moby#1985

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
@fcrisciani

Copy link
Copy Markdown
Author

@mghazizadeh added test in the #1991 PR

pradipd pushed a commit to pradipd/libnetwork that referenced this pull request Nov 4, 2017
Unit test for the cleanupServiceDiscovery,
follow up of PR: moby#1985

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
thaJeztah pushed a commit to thaJeztah/libnetwork that referenced this pull request Nov 20, 2017
Unit test for the cleanupServiceDiscovery,
follow up of PR: moby#1985

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
(cherry picked from commit 52a9ab5)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
thaJeztah pushed a commit to thaJeztah/libnetwork that referenced this pull request Nov 20, 2017
Unit test for the cleanupServiceDiscovery,
follow up of PR: moby#1985

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
(cherry picked from commit 52a9ab5)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@fcrisciani
fcrisciani deleted the fix-attachable-cnt branch November 20, 2017 22:27
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.

3 participants