-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fix IPv6 address handling in LAN <-> WAN join flooder #22226
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
base: main
Are you sure you want to change the base?
Fix IPv6 address handling in LAN <-> WAN join flooder #22226
Conversation
When `advertise_addr` is an IPv6 address, Consul WAN federation breaks and we get a constant stream of warnings: ``` [WARN] agent.server.memberlist.wan: memberlist: Failed to resolve i-02a3c94b46768b01f.aws-eu-west-1/2a05:d018:18a3:f202:64d9:1621:ab22:df45:8302: lookup 2a05:d018:18a3:f202:64d9:1621:ab22:df45:8302: no such host ``` The LAN <-> WAN join flooder creates IPv6 addresses without square brackets with `fmt.Sprintf("%s:%d", addr, s.WanJoinPort)`, which confuses `net.SplitHostPort` in `memberlist.resolveAddr`. Fixes hashicorp#22225
It would be great to get this fix in, or at least get some feedback on the state of #22225. Can anyone comment on how fixes are being prioritized? |
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.
Please add a changelog as per this doc
Hi @tkren, We'll also need you to accept the CLA by clicking on the |
Hi @tanmay17061, sorry for my ignorance, but how do I do that? I did it before here: #22226 (comment), see https://cla.hashicorp.com/hashicorp/consul?pullRequest=22226 All I can see is this: |
Sorry, I missed that you've already accepted the CLA. |
@tanmay17061 I found a way: https://cla.hashicorp.com/check/hashicorp/consul?pullRequest=22226 will perform a re-check for this PR; |
When
advertise_addr
is an IPv6 address, Consul WAN federation breaks and we get a constant stream of warnings:The LAN <-> WAN join flooder creates IPv6 addresses without square brackets with
fmt.Sprintf("%s:%d", addr, s.WanJoinPort)
, which confusesnet.SplitHostPort
inmemberlist.resolveAddr
.Fixes #22225