Skip to content

Address cluster peers correctly on IPv6 - #70560

Merged
dwoz merged 2 commits into
saltstack:3008.xfrom
nsychev:fix/cluster-ipv6
Oct 28, 2026
Merged

dwoz merged 2 commits into
saltstack:3008.xfrom
nsychev:fix/cluster-ipv6

Conversation

@nsychev

@nsychev nsychev commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes two separate issues in master clusters where masters have only IPv6 connectivity.

The first issue is that peers can't open port because the IPv6 address passed in socket.bind() contains brackets.

The second issue is that masters can't connect to the peers because they always choose AF_INET when given a domain name.

What issues does this PR fix or reference?

Fixes #70559

Previous Behavior

  • If the master in a cluster has only IPv6 address, it doesn't start listening a port for the cluster pool.
  • If the master in a cluster has IPv6-only peer named by its domain name, it can't connect to this peer.

New Behavior

  • Masters in a cluster successfully listen a port on IPv6.
  • Masters in a cluster successfully connect to their peers by domain name that resolves only in IPv6 address.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@nsychev
nsychev requested a review from a team as a code owner October 26, 2026 14:07
@welcome

welcome Bot commented Oct 26, 2026

Copy link
Copy Markdown

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here's some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We're glad you've joined our community and look forward to doing awesome things with you!

@dwoz dwoz added the test:full Run the full test suite label Oct 26, 2026
@dwoz
dwoz changed the base branch from 3007.x to 3008.x October 27, 2026 07:20
@dwoz
dwoz force-pushed the fix/cluster-ipv6 branch from 02d4b69 to 7a2ac48 Compare October 27, 2026 07:29
@dwoz
dwoz merged commit a308ef3 into saltstack:3008.x Oct 28, 2026
447 checks passed

This branch was previously deployed

1 inactive deployment
ci — 3d6a8309 Deployed Oct 27, 2026 by dwoz via Build Onedir Packages / macOS (x86_64) #27939
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants