cluster: Only pass a join address when in the process of joining a cluster#33361
Merged
Conversation
…uster This code currently passes a random manager address when creating a new Node. This doesn't really make sense - we should only pass a join address on the initial join, or when retrying that join. An upcoming change to swarmkit will pay attention to JoinAddr significant when a node is already part of a cluster, so passing in the random value needs to be avoided. Signed-off-by: Aaron Lehmann <[email protected]>
Member
|
LGTM |
mlaventure
approved these changes
Jun 14, 2017
mlaventure
left a comment
Contributor
There was a problem hiding this comment.
LGTM
But I'd like for the test to be re-run given this is an old PR. I don't seem to be able to do so though. (cc @thaJeztah @tiborvass any idea why not?)
Member
|
No, no idea why it doesn't work, I think I've seen the same on some PR's. Let me try through Slack |
Member
|
Yup, works through slack. Odd |
Contributor
|
All 3 Janky errors seem unrelated: going to restart it for good mesure. |
Contributor
|
Alright, it passed, merging. The other are flaky test. the |
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.
This code currently passes a random manager address when creating a new
Node. This doesn't really make sense - we should only pass a join address on the initial join, or when retrying that join. An upcoming change to swarmkit will pay attention toJoinAddrwhen a node is already part of a cluster, so passing in the random value needs to be avoided.Fixes #32980
cc @tonistiigi