Skip to content

Comments

Remove non-service cluster info on sbLeave#2176

Merged
fcrisciani merged 1 commit intomoby:masterfrom
ctelfer:remove-net-attach-info
May 31, 2018
Merged

Remove non-service cluster info on sbLeave#2176
fcrisciani merged 1 commit intomoby:masterfrom
ctelfer:remove-net-attach-info

Conversation

@ctelfer
Copy link
Contributor

@ctelfer ctelfer commented May 31, 2018

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 info removal moved to sandbox.DisableService() in an effort to more gracefully handle endpoint removal from a service (which proved insufficient). Unfortunately, subsequent fixes for graceful LB removal also removed the newly-mandatory call to sandbox.DisableService() preventing proper cleanup for non-service container endpoints. This patch restores the original logic of always removing cluster info.

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]>
@ctelfer
Copy link
Contributor Author

ctelfer commented May 31, 2018

This is the same fix as on the 17.06 branch pulled here: #2175.

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

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@9ba7c0d). Click here to learn what that means.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2176   +/-   ##
=========================================
  Coverage          ?   40.57%           
=========================================
  Files             ?      139           
  Lines             ?    22486           
  Branches          ?        0           
=========================================
  Hits              ?     9123           
  Misses            ?    12032           
  Partials          ?     1331
Impacted Files Coverage Δ
endpoint.go 53.64% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ba7c0d...d8910dc. Read the comment docs.

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