Skip to content

Comments

Remove non-service cluster info on sbLeave#2175

Merged
ctelfer merged 1 commit intomoby:bump_17.06from
ctelfer:remove-net-attach-info-17.06
May 31, 2018
Merged

Remove non-service cluster info on sbLeave#2175
ctelfer merged 1 commit intomoby:bump_17.06from
ctelfer:remove-net-attach-info-17.06

Conversation

@ctelfer
Copy link
Contributor

@ctelfer ctelfer commented May 31, 2018

Libnetwork should remove cluster service info including networkDB entries and DNS entries for container endpoints that are not part of a service as well as those that are part of a service. This used to be the normal mode of operation. However cluster info removal moved to sandbox.DisableService() in an effort to more gracefully handle endpoint removal from a service (which proved insufficient). Subsequent changes that did peroperly handle graceful endpoint removal unfortunately also got rid of the newly-mandatory call to sandbox.DisableService() preventing proper cleanup for non-service container endpoints.

Signed-off-by: Chris Telfer [email protected]

The system should remove cluster service info including networkDB
entries and DNS entries for container endpoints that are not part of a
service as well as those that are part of a service.  This used to be
the normal sequence of operations but it moved to
sandbox.DisableService() in an effort to more gracefully handle endpoint
removal from a service (which proved insufficient).  Unfortunately
subsequent changes also removed the newly-mandetory call to
sandbox.DisableService() preventing proper cleanup for non-service
container endpoints.

Signed-off-by: Chris Telfer <[email protected]>
Copy link

@fcrisciani fcrisciani left a comment

Choose a reason for hiding this comment

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

LGTM

@ctelfer ctelfer merged commit f0a50cd into moby:bump_17.06 May 31, 2018
@ctelfer ctelfer deleted the remove-net-attach-info-17.06 branch May 31, 2018 19:49
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.

2 participants