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

ci-kubernetes-e2e-kubeadm-kinder-discovery-latest failing #3166

Closed
pacoxu opened this issue Mar 3, 2025 · 4 comments
Closed

ci-kubernetes-e2e-kubeadm-kinder-discovery-latest failing #3166

pacoxu opened this issue Mar 3, 2025 · 4 comments
Labels
kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test.
Milestone

Comments

@pacoxu
Copy link
Member

pacoxu commented Mar 3, 2025

https://testgrid.k8s.io/sig-cluster-lifecycle-kubeadm#kubeadm-kinder-discovery-latest

time="15:01:00" level=debug msg="Running: docker exec kinder-discovery-control-plane-1 cat /etc/kubernetes/admin.conf"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8dea4f]

goroutine 1 [running]:
github.com/modern-go/reflect2.(*UnsafeMapIterator).HasNext(...)
	/home/prow/go/pkg/mod/github.com/modern-go/reflect2@v1.0.1/unsafe_map.go:125
github.com/json-iterator/go.(*sortKeysMapEncoder).IsEmpty(0x1a?, 0x1240600?)
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_map.go:334 +0x4f
github.com/json-iterator/go.(*placeholderEncoder).IsEmpty(0xc00033d880?, 0x417385?)
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:336 +0x1b
github.com/json-iterator/go.(*structFieldEncoder).IsEmpty(0xc00035aae0, 0xb2b433?)
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:118 +0x3b
github.com/json-iterator/go.(*structEncoder).Encode(0xc00035ac30, 0xc0000f4410, 0xc0000b77a0)
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:148 +0x239
github.com/json-iterator/go.(*placeholderEncoder).Encode(0xb68540?, 0xb682c0?, 0x8eac01?)
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:332 +0x1b
github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc00035aea0, 0xae5c86?, 0xc0000b77a0)
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:110 +0x4d
github.com/json-iterator/go.(*structEncoder).Encode(0xc00035af00, 0xc0000f4400, 0xc0000b77a0)
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:158 +0x3ed
github.com/json-iterator/go.(*sliceEncoder).Encode(0xc000011500, 0xc0000da1b8, 0xc0000b77a0)
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_slice.go:38 +0x277
github.com/json-iterator/go.(*structFieldEncoder).Encode(0xc00035ba10, 0xae8d36?, 0xc0000b77a0)
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:110 +0x4d
github.com/json-iterator/go.(*structEncoder).Encode(0xc00035bb00, 0xc0000da160, 0xc0000b77a0)
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_struct_encoder.go:158 +0x3ed
github.com/json-iterator/go.(*OptionalEncoder).Encode(0x0?, 0x0?, 0xc0003455c0?)
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect_optional.go:70 +0x92
github.com/json-iterator/go.(*onePtrEncoder).Encode(0xc000355060, 0xc0000da160, 0xc0000b77a0)
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:219 +0x75
github.com/json-iterator/go.(*Stream).WriteVal(0xc0000b77a0, {0xbb8860, 0xc0000da160})
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/reflect.go:98 +0xf9
github.com/json-iterator/go.(*frozenConfig).Marshal(0xc0001c1c20, {0xbb8860, 0xc0000da160})
	/home/prow/go/pkg/mod/github.com/json-iterator/go@v1.1.10/config.go:299 +0xa9
k8s.io/apimachinery/pkg/runtime/serializer/json.(*Serializer).doEncode(0x123e560?, {0xd3dde8?, 0xc0000da160?}, {0xd39080, 0xc000345560})
	/home/prow/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/runtime/serializer/json/json.go:305 +0x5f
k8s.io/apimachinery/pkg/runtime/serializer/json.(*Serializer).Encode(0xc00014b040, {0xd3dde8?, 0xc0000da160}, {0xd39080, 0xc000345560})
	/home/prow/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/runtime/serializer/json/json.go:300 +0xd2
k8s.io/apimachinery/pkg/runtime/serializer/versioning.(*codec).doEncode(0xc0001e65a0, {0xd3c008, 0xc0000b76e0}, {0xd39080, 0xc000345560})
	/home/prow/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/runtime/serializer/versioning/versioning.go:244 +0x65a
k8s.io/apimachinery/pkg/runtime/serializer/versioning.(*codec).Encode(0xc0001e65a0, {0xd3c008?, 0xc0000b76e0}, {0xd39080, 0xc000345560})
	/home/prow/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/runtime/serializer/versioning/versioning.go:184 +0xdc
k8s.io/apimachinery/pkg/runtime.Encode({0x7ff350807208, 0xc0001e65a0}, {0xd3c008, 0xc0000b76e0})
	/home/prow/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/runtime/codec.go:50 +0x5e
k8s.io/client-go/tools/clientcmd.Write(...)
	/home/prow/go/pkg/mod/k8s.io/client-go@v0.19.4/tools/clientcmd/loader.go:469
k8s.io/kubeadm/kinder/pkg/cluster/manager/actions.createDiscoveryFile(0xc0001be6c0, 0xc0001be900, {0x7ffc4c79a1f5, 0x4})
	/home/prow/go/src/k8s.io/kubeadm/kinder/pkg/cluster/manager/actions/kubeadm-config.go:433 +0x58e
k8s.io/kubeadm/kinder/pkg/cluster/manager/actions.getKubeadmConfig(_, _, {{0x7ffc4c79a1ad, 0x10}, {0xc000226360, 0x22}, {0xc000012190, 0xf}, 0x192b, {0xc0000120b1, ...}, ...}, ...)
	/home/prow/go/src/k8s.io/kubeadm/kinder/pkg/cluster/manager/actions/kubeadm-config.go:299 +0x7a5
k8s.io/kubeadm/kinder/pkg/cluster/manager/actions.writeKubeadmConfig(_, _, {{0x7ffc4c79a1ad, 0x10}, {0xc000226360, 0x22}, {0xc000012190, 0xf}, 0x192b, {0xc0000120b1, ...}, ...}, ...)
	/home/prow/go/src/k8s.io/kubeadm/kinder/pkg/cluster/manager/actions/kubeadm-config.go:204 +0x18d
k8s.io/kubeadm/kinder/pkg/cluster/manager/actions.KubeadmConfig(0xc0001be6c0, {0x0, 0x0}, {0xc2273c, 0x4}, {0x7ffc4c79a1f5, 0x4}, {0x0, 0x0}, {0x0, ...}, ...)
	/home/prow/go/src/k8s.io/kubeadm/kinder/pkg/cluster/manager/actions/kubeadm-config.go:150 +0x7cd
k8s.io/kubeadm/kinder/pkg/cluster/manager/actions.KubeadmJoinConfig(...)
	/home/prow/go/src/k8s.io/kubeadm/kinder/pkg/cluster/manager/actions/kubeadm-config.go:55
k8s.io/kubeadm/kinder/pkg/cluster/manager/actions.joinWorkers(0xc0001be6c0, 0x0, {0x7ffc4c79a1f5, 0x4}, 0x45d964b800, {0x0, 0x0}, {0x0, 0x0}, {0xc53a93, ...}, ...)
	/home/prow/go/src/k8s.io/kubeadm/kinder/pkg/cluster/manager/actions/kubeadm-join.go:178 +0x1c5
k8s.io/kubeadm/kinder/pkg/cluster/manager/actions.KubeadmJoin(0xc0001be6c0, 0x0, {0xc23307?, 0x414269dceeb4722b?}, {0x7ffc4c79a1f5, 0x4}, {0x0, 0x0}, {0x0, 0x0}, ...)
	/home/prow/go/src/k8s.io/kubeadm/kinder/pkg/cluster/manager/actions/kubeadm-join.go:34 +0x112
k8s.io/kubeadm/kinder/pkg/cluster/manager/actions.init.func4(0xc0001be6c0, 0xc0001e9590?)
	/home/prow/go/src/k8s.io/kubeadm/kinder/pkg/cluster/manager/actions/actions.go:49 +0x73
k8s.io/kubeadm/kinder/pkg/cluster/manager/actions.Run(0xc0001be6c0, {0x7ffc4c79a199, 0xc}, {0xc00004dca0, 0xb, 0x1?})
	/home/prow/go/src/k8s.io/kubeadm/kinder/pkg/cluster/manager/actions/actions.go:273 +0x10d
k8s.io/kubeadm/kinder/pkg/cluster/manager.(*ClusterManager).DoAction(0xc000218030, {0x7ffc4c79a199, 0xc}, {0xc00004dca0, 0xb, 0xb})
	/home/prow/go/src/k8s.io/kubeadm/kinder/pkg/cluster/manager/manage.go:97 +0xae
k8s.io/kubeadm/kinder/cmd/kinder/do.runE(0xc000164780, 0xb?, {0xc000116a80, 0x1, 0xc000197d10?})
	/home/prow/go/src/k8s.io/kubeadm/kinder/cmd/kinder/do/do.go:182 +0x47e
k8s.io/kubeadm/kinder/cmd/kinder/do.NewCommand.func1(0xc0001a5000?, {0xc000116a80?, 0x4?, 0xc22724?})
	/home/prow/go/src/k8s.io/kubeadm/kinder/cmd/kinder/do/do.go:64 +0x2b
github.com/spf13/cobra.(*Command).execute(0xc0001ff608, {0xc000116a20, 0x6, 0x6})
	/home/prow/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850 +0x68a
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001fa008)
	/home/prow/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958 +0x389
github.com/spf13/cobra.(*Command).Execute(...)
	/home/prow/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895
k8s.io/kubeadm/kinder/cmd/kinder.Run()
	/home/prow/go/src/k8s.io/kubeadm/kinder/cmd/kinder/kinder.go:111 +0x18
k8s.io/kubeadm/kinder/cmd/kinder.Main()
	/home/prow/go/src/k8s.io/kubeadm/kinder/cmd/kinder/kinder.go:124 +0x6a
main.main()
	/home/prow/go/src/k8s.io/kubeadm/kinder/main.go:25 +0xf
 exit status 2
@pacoxu pacoxu added the kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. label Mar 3, 2025
@neolit123 neolit123 added this to the v1.33 milestone Mar 3, 2025
@pacoxu
Copy link
Member Author

pacoxu commented Mar 3, 2025

configBytes, err = clientcmd.Write(*config)
if err != nil {

@SataQiu
Copy link
Member

SataQiu commented Mar 3, 2025

modern-go/reflect2#32

@pacoxu
Copy link
Member Author

pacoxu commented Mar 3, 2025

This is an indirect dependency:

k/k switched to kubernetes/kubernetes#105030.

@neolit123
Copy link
Member

fixed
https://testgrid.k8s.io/sig-cluster-lifecycle-kubeadm#kubeadm-kinder-discovery-latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test.
Projects
None yet
Development

No branches or pull requests

3 participants