-
Notifications
You must be signed in to change notification settings - Fork 40k
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
unit test TestCertsTLS fails when IPV6 is disabled #47304
Comments
@CaoShuFeng There are no sig labels on this issue. Please add a sig label by: |
What version of go are you using? |
I use go version go1.8.1 linux/amd64. |
/sig auth |
When I enable IPV6, this test passes.
|
The same failures are occurring with my PR's unit tests |
I'm seeing this failure on a PR too #47999. |
This is probably what we are seeing: golang/go#18806 |
And fixed in golang, probably for 1.9: https://go-review.googlesource.com/c/45088/ |
Fixes kubernetes#47304. Workarounds golang/go#18806 (fixed in Go 1.9+).
Fixes kubernetes#47304. Workarounds golang/go#18806 (fixed in Go 1.9+).
Oh wait, I can see it in 1.7, I'll rebase now :) |
Fixes kubernetes#47304. Workarounds golang/go#18806 (fixed in Go 1.9+).
Fixes kubernetes#47304. Workarounds golang/go#18806 (fixed in Go 1.9+).
Fixes kubernetes/kubernetes#47304. Workarounds golang/go#18806 (fixed in Go 1.9+).
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Kubernetes version (use
kubectl version
):community master
Environment:
uname -a
): Linux localhost.localdomain 4.10.8-200.fc25.x86_64 Unit test coverage in Kubelet is lousy. (~30%) #1 SMP Fri Mar 31 13:20:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linuxipv6 is disabled in my environment.
net.ipv6.conf.all.disable_ipv6=0
What happened:
$ make test WHAT=k8s.io/kubernetes/federation/pkg/kubefed/init KUBE_GOFLAGS="-v" KUBE_TEST_ARGS='-run ^TestCertsTLS$' Running tests for APIVersion: v1,admissionregistration.k8s.io/v1alpha1,admission.k8s.io/v1alpha1,apps/v1beta1,authentication.k8s.io/v1,authentication.k8s.io/v1beta1,authorization.k8s.io/v1,authorization.k8s.io/v1beta1,autoscaling/v1,autoscaling/v2alpha1,batch/v1,batch/v2alpha1,certificates.k8s.io/v1beta1,extensions/v1beta1,imagepolicy.k8s.io/v1alpha1,networking.k8s.io/v1,policy/v1beta1,rbac.authorization.k8s.io/v1beta1,rbac.authorization.k8s.io/v1alpha1,settings.k8s.io/v1alpha1,storage.k8s.io/v1beta1,storage.k8s.io/v1,federation/v1beta1 +++ [0611 16:37:17] Running tests without code coverage === RUN TestCertsTLS --- FAIL: TestCertsTLS (5.11s) init_test.go:522: [0] unexpected error: dial tcp [::]:41981: connect: cannot assign requested address init_test.go:522: [1] unexpected error: dial tcp [::]:45949: connect: cannot assign requested address init_test.go:522: [2] unexpected error: dial tcp [::]:42481: connect: cannot assign requested address init_test.go:522: [3] unexpected error: dial tcp [::]:43051: connect: cannot assign requested address init_test.go:522: [4] unexpected error: dial tcp [::]:38445: connect: cannot assign requested address init_test.go:522: [5] unexpected error: dial tcp [::]:45791: connect: cannot assign requested address init_test.go:511: [6] unexpected error: want x509.HostnameError, got: *net.OpError init_test.go:511: [7] unexpected error: want x509.HostnameError, got: *net.OpError init_test.go:511: [8] unexpected error: want x509.HostnameError, got: *net.OpError init_test.go:511: [9] unexpected error: want x509.HostnameError, got: *net.OpError init_test.go:515: [10] unexpected error: want x509.UnknownAuthorityError, got: *net.OpError init_test.go:515: [11] unexpected error: want x509.UnknownAuthorityError, got: *net.OpError init_test.go:511: [12] unexpected error: want x509.HostnameError, got: *net.OpError init_test.go:511: [13] unexpected error: want x509.HostnameError, got: *net.OpError FAIL exit status 1 FAIL k8s.io/kubernetes/federation/pkg/kubefed/init 5.391s Makefile:164: recipe for target 'test' failed make: *** [test] Error 1
What you expected to happen:
Unit test should passes.
How to reproduce it (as minimally and precisely as possible):
This always happens in my environment.
Anything else we need to know:
The text was updated successfully, but these errors were encountered: