[18.03] Adding logic to restore networks in order#2656
Merged
Conversation
This commits adds a fix for restore case where there might a mix of allocated and unallocated network in raft. During restore the allocator was going over the networks lexicographically which would mean that there might be a chance for an unallocated network say net1 o be allocated the same vxlan id or subnet pool that was allocated to another networki net2. Because of this during restoring, when allocator tries to allocate the reallocate network net2, it would fail because it allocated network resources to net1 during restore. This would mean services,tasks and network itself would be in a messed up state. Signed-off-by: Abhinandan <abhi@docker.com> (cherry picked from commit 7f9db67) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Member
Author
|
Got a failure in CI: |
Member
Author
|
ping @abhi @fcrisciani @dperny @anshulpundir PTAL could use some help verifying if the failure is related or not |
Member
Author
|
Restarted CI |
Codecov Report
@@ Coverage Diff @@
## bump_v18.03 #2656 +/- ##
===============================================
+ Coverage 61.68% 61.68% +<.01%
===============================================
Files 134 134
Lines 21781 21795 +14
===============================================
+ Hits 13436 13445 +9
+ Misses 6913 6904 -9
- Partials 1432 1446 +14 |
Contributor
|
Thanks @thaJeztah . LGTM |
Collaborator
|
We don't strictly have enough maintainer LGTMs but like Who's Line, everything is made up and the points don't matter. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cherry-pick of #2571 for the 18.03 branch
no conflicts, cherry-pick was clean
This commits adds a fix for restore case where
there might a mix of allocated and unallocated
network in raft. During restore the allocator
was going over the networks lexicographically which
would mean that there might be a chance for an
unallocated network say net1 o be allocated the same vxlan
id or subnet pool that was allocated to another networki net2.
Because of this during restoring, when allocator tries
to allocate the reallocate network net2, it would fail
because it allocated network resources to net1 during restore.
This would mean services,tasks and network itself would be in a
messed up state.
Signed-off-by: Abhinandan abhi@docker.com
(cherry picked from commit 7f9db67)
Signed-off-by: Sebastiaan van Stijn github@gone.nl
- What I did
- How I did it
- How to test it
- Description for the changelog