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
ipv6: Fix joining IP and port number #2916
Conversation
I found a couple other instances with
|
Maybe this one too? installer/cmd/openshift-install/gather.go Line 121 in 9e23231
|
PR changes look right but maybe add unit tests? All of the places @stbenjam pointed out also look like they need updating. (For the ones with no port the simplest fix would be to explicitly specify port 80 so you can use |
I've updated this PR to address more places where similar problems existed. I haven't added unit tests though, since the changes seem pretty trivial. I'll add them if someone insists, though. :-) |
/lgtm |
/assign @fabianofranz |
LGTM, reassigning for approval |
/label platform/baremetal (For metal3 CI) |
Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/1424/ |
Build FAILURE, see build http://10.8.144.11:8080/job/dev-tools/1425/ |
/retest |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sdodson The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
You can't just manually join an IP and port because that will break with an IPv6 address. net.JoinHostPort() will do the right thing and add square brackets around an IPv6 address. Anywhere we may be using an IPv6 address in a URL needs similar handling. We need to ensure the IPv6 address always has square brackets in this case. An easy way to do this is to always specify the port number explicitly so we can use net.JoinHostPort(). Reported-by: Steven Hardy <shardy@redhat.com>
/lgtm |
/lgtm |
/retest Please review the full test history for this PR and help us cut down flakes. |
Build SUCCESS, see build http://10.8.144.11:8080/job/dev-tools/1435/ |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@russellb: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/cherry-pick release-4.3 |
@russellb: #2916 failed to apply on top of branch "release-4.3":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
4.3 backport is here: #2977 |
You can't just manually join an IP and port because that will break
with an IPv6 address. net.JoinHostPort() will do the right thing and
add square brackets around an IPv6 address.
Reported-by: Steven Hardy shardy@redhat.com