-
Notifications
You must be signed in to change notification settings - Fork 619
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
[17.06] Delete node attachments when node is removed #2414
[17.06] Delete node attachments when node is removed #2414
Conversation
@andrewhsu the cherry-pick was clean, and done with
I passed no flags. |
@dperny if you could redo the commit with the |
7e15fe7
to
8f2402f
Compare
When a node is removed, delete all of its attachment tasks, so that any networks being used by those tasks can be successfully removed. Provides a workaround to the state where a node with attachments is somehow removed from the cluster while attached to a network, preventing the network from being removed. Does not fix many other related bugs. Includes a unit test for the function that removes node attachment tasks. Signed-off-by: Drew Erny <drew.erny@docker.com> Cherry picked with `git cherry-pick -sx`, applied cleanly. (cherry picked from commit 0c7b2fc) Signed-off-by: Drew Erny <drew.erny@docker.com>
8f2402f
to
bc87b34
Compare
@andrewhsu does this commit message look more your speed? |
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
Codecov Report
@@ Coverage Diff @@
## bump_v17.06 #2414 +/- ##
===============================================
- Coverage 59.91% 59.89% -0.03%
===============================================
Files 120 120
Lines 25106 25128 +22
===============================================
+ Hits 15043 15051 +8
- Misses 8726 8743 +17
+ Partials 1337 1334 -3 |
When a node is removed, delete all of its attachment tasks, so that any
networks being used by those tasks can be successfully removed.
Provides a workaround to the state where a node with attachments is
somehow removed from the cluster while attached to a network, preventing
the network from being removed. Does not fix many other related bugs.
Includes a unit test for the function that removes node attachment
tasks.
Signed-off-by: Drew Erny drew.erny@docker.com