Skip to content
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

Fixes #38057 - Use ipv6 too for ssh provisioning #10395

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ShimShtein
Copy link
Member

We should also use IPv6 if available for ssh orchestration.

@@ -99,6 +99,6 @@ def validate_ssh_provisioning

def provision_host
# usually cloud compute resources provide IPs but virtualization do not
provision_interface.ip || provision_interface.fqdn
provision_interface.ip || provision_interface.ip6 || provision_interface.fqdn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like others: should we prefer IPv6 over IPv4? Users will appreciate it if we're consistent and I'd lean to preferring IPv4.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So in current implementation we do implement IPv4, this way it's less surprising.

I tend to go with less surprises too

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DNS lookups typically also prefer IPv6 (which AFAIK is the non-IP option we already implement). For admins it's more consistent with how the world does it. If needed we can add a release note

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if I understand you correctly, the current implementation is OK? IPv4, then IPv6 and then FQDN.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, IPv6 first and then IPv4 is what I'd prefer. We should start treating IPv4 as legacy just like the rest of the industry

@ShimShtein
Copy link
Member Author

Reordered the selection. Now IPv6 i preferred (if it's set)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants