-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
cluster: Only pass a join address when in the process of joining a cluster #33361
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 <aaron.lehmann@docker.com>
LGTM |
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
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?)
No, no idea why it doesn't work, I think I've seen the same on some PR's. Let me try through Slack |
Yup, works through slack. Odd |
All 3 Janky errors seem unrelated:
going to restart it for good mesure. |
Alright, it passed, merging. The other are flaky test. the |
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 toJoinAddr
when a node is already part of a cluster, so passing in the random value needs to be avoided.Fixes #32980
cc @tonistiigi