-
Notifications
You must be signed in to change notification settings - Fork 992
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
base: develop
Are you sure you want to change the base?
Conversation
@@ -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 |
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.
Like others: should we prefer IPv6 over IPv4? Users will appreciate it if we're consistent and I'd lean to preferring IPv4.
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.
So in current implementation we do implement IPv4, this way it's less surprising.
I tend to go with less surprises too
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.
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
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.
So if I understand you correctly, the current implementation is OK? IPv4, then IPv6 and then FQDN.
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.
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
869c841
to
9594022
Compare
Reordered the selection. Now IPv6 i preferred (if it's set) |
We should also use IPv6 if available for ssh orchestration.