test-infra: kubetest/kind: odd bug caused by enabling `--loglevel=debug` for kind
i’m seeing something very odd in the kind deployer for kubetest.
this PR: https://github.com/kubernetes/test-infra/pull/11379/files
is causing:
2019/02/20 16:00:32 kind.go:336: kind.go:IsUp() 2019/02/20 16:00:32 kind.go:457: kind.go:KubectlCommand() 2019/02/20 16:00:32 process.go:153: Running: kubectl get nodes --no-headers The connection to the server localhost:8080 was refused - did you specify the right host or port? 2019/02/20 16:00:32 process.go:155: Step ‘kubectl get nodes --no-headers’ finished in 77.854404ms
2019/02/22 05:07:22 main.go:307: Something went wrong: encountered 2 errors: [error starting kubectl --match-server-version=false version: exec: already started error during kubectl --match-server-version=false get nodes -oyaml: exit status 1]
https://gubernator.k8s.io/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-kubeadm-kind-master/311
can be reproduced locally using:
./kubetest --provider=skeleton --deployment=kind --kind-binary-version=build --kind-config-path=./../../k8s.io/kubeadm/tests/e2e/kind/single-cp/single-cp.yaml --build=bazel --up --check-version-skew=false --ginkgo-parallel --timeout=30m
investigating…
/area kubetest /kind bug /assign cc @BenTheElder @krzyzacy
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (16 by maintainers)
yeah, tryUntil also needs us to fix commands possibly hanging indefinitely. (another thing I want to change at the exec package level). thanks for hunting this down and patching it 🙏
this issue is in the path after all:
debug adds extra output and pollutes the config path.
this patch fixes the bug that i’m seeing with
--loglevel=debug.this is the weird part. the problem was introduced with PR https://github.com/kubernetes/test-infra/pull/11379/files
i reproduce this locally.
the user mentioned that toggling log level fixes a cluster creation bug.
sounds like a race / memory corruption / something else. i will now build custom kind binary and try to feed it in a custom kubetest to check something.
yes.
i’ve added this call to double check:
but i’m seeing this, which looks like a mix between kind and kubetest output.