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

I followed the quick start but make test fails #2124

Closed
MathieuCesbron opened this issue Apr 2, 2021 · 1 comment
Closed

I followed the quick start but make test fails #2124

MathieuCesbron opened this issue Apr 2, 2021 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@MathieuCesbron
Copy link

MathieuCesbron commented Apr 2, 2021

I followed the Quickstart, generated an operator-sdk project but then running make test fails with:

mcesbron@mbp vip-provider % go test ./...
?   	gitlab.si.francetelecom.fr/hagndaas/k8s/network/vip-provider	[no test files]
?   	gitlab.si.francetelecom.fr/hagndaas/k8s/network/vip-provider/api/v1	[no test files]
Running Suite: Controller Suite
===============================
Random Seed: 1617398357
Will run 0 of 0 specs

STEP: bootstrapping test environment
2021-04-02T23:19:17.431+0200	DEBUG	controller-runtime.test-env	starting control plane	{"api server flags": []}
2021-04-02T23:19:37.434+0200	ERROR	controller-runtime.test-env	unable to start the controlplane	{"tries": 0, "error": "timeout waiting for process etcd to start"}
github.com/go-logr/zapr.(*zapLogger).Error
	/Users/mcesbron/Desktop/go/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:128
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane
	/Users/mcesbron/Desktop/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/envtest/server.go:279
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start
	/Users/mcesbron/Desktop/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/envtest/server.go:241
gitlab.si.francetelecom.fr/hagndaas/k8s/network/vip-provider/controllers.glob..func1
	/Users/mcesbron/go/src/vip-provider/controllers/suite_test.go:62
reflect.Value.call
	/opt/homebrew/Cellar/go/1.16.2/libexec/src/reflect/value.go:476
reflect.Value.Call
	/opt/homebrew/Cellar/go/1.16.2/libexec/src/reflect/value.go:337
github.com/onsi/ginkgo/internal/leafnodes.newRunner.func1
	/Users/mcesbron/Desktop/go/pkg/mod/github.com/onsi/ginkgo@v1.12.1/internal/leafnodes/runner.go:49
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runAsync.func1
	/Users/mcesbron/Desktop/go/pkg/mod/github.com/onsi/ginkgo@v1.12.1/internal/leafnodes/runner.go:86
2021-04-02T23:19:57.434+0200	ERROR	controller-runtime.test-env	unable to start the controlplane	{"tries": 1, "error": "timeout waiting for process etcd to start"}
github.com/go-logr/zapr.(*zapLogger).Error
	/Users/mcesbron/Desktop/go/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:128
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane
	/Users/mcesbron/Desktop/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/envtest/server.go:279
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start
	/Users/mcesbron/Desktop/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/envtest/server.go:241
gitlab.si.francetelecom.fr/hagndaas/k8s/network/vip-provider/controllers.glob..func1
	/Users/mcesbron/go/src/vip-provider/controllers/suite_test.go:62
reflect.Value.call
	/opt/homebrew/Cellar/go/1.16.2/libexec/src/reflect/value.go:476
reflect.Value.Call
	/opt/homebrew/Cellar/go/1.16.2/libexec/src/reflect/value.go:337
github.com/onsi/ginkgo/internal/leafnodes.newRunner.func1
	/Users/mcesbron/Desktop/go/pkg/mod/github.com/onsi/ginkgo@v1.12.1/internal/leafnodes/runner.go:49
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runAsync.func1
	/Users/mcesbron/Desktop/go/pkg/mod/github.com/onsi/ginkgo@v1.12.1/internal/leafnodes/runner.go:86
Timeout [60.001 seconds]
[BeforeSuite] BeforeSuite 
/Users/mcesbron/go/src/vip-provider/controllers/suite_test.go:52

  Timed out

  /Users/mcesbron/go/src/vip-provider/controllers/suite_test.go:52
------------------------------


Ran 0 of 0 Specs in 60.001 seconds
FAIL! -- 0 Passed | 0 Failed | 0 Pending | 0 Skipped
--- FAIL: TestAPIs (60.00s)
FAIL
FAIL	gitlab.si.francetelecom.fr/hagndaas/k8s/network/vip-provider/controllers	60.633s
FAIL

My kubebuilder version, also I am on a Mac with the m1 chip.

mcesbron@mbp vip-provider % kubebuilder version
Version: version.Version{KubeBuilderVersion:"1.0.8", KubernetesVendor:"1.13.1", GitCommit:"1adf50ed107f5042d7472ba5ab50d5e1d357169d", BuildDate:"2019-01-25T23:14:29Z", GoOs:"unknown", GoArch:"unknown"}

/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 2, 2021
@Adirio
Copy link
Contributor

Adirio commented Apr 2, 2021

Go version? 1.16 is not supported

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

No branches or pull requests

3 participants