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

setup-envtest is stuck and fails to download any k8s version #2841

Closed
nascarsayan opened this issue May 25, 2024 · 2 comments
Closed

setup-envtest is stuck and fails to download any k8s version #2841

nascarsayan opened this issue May 25, 2024 · 2 comments

Comments

@nascarsayan
Copy link

Issue:

./bin/setup-envtest use never completes and is stuck while trying to fetch some yaml. The regression might have occurred recently (after 23rd May).

Repro Steps:

The steps are typically the same as present in the Makefile of Kubebuilder

OS: Have tested on both darwin AARCH 64 (Mac M1) and Linux AMD64 (Ubuntu VM). The issue reproes in both OS-CPU.

  1. go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
  2. setup-envtest use 1.30.0 -v debug

And, step 2 never completes. Debug logs below:

$./bin/setup-envtest use 1.30.0 -v debug

2024-05-25T21:11:38.806+0530	DEBUG	setup	[email protected]/main.go:89	using binaries directory	{"dir": "/Users/nascarsayan/Library/Application Support/io.kubebuilder.envtest"}
2024-05-25T21:11:38.807+0530	DEBUG	setup	[email protected]/main.go:104	using HTTP client	{"index": "https://raw.githubusercontent.com/kubernetes-sigs/controller-tools/HEAD/envtest-releases.yaml"}
2024-05-25T21:11:38.807+0530	DEBUG	use	store/store.go:76	ensuring base binaries dir exists
2024-05-25T21:11:38.807+0530	DEBUG	storage-client	remote/http_client.go:187	listing versions	{"index": "https://raw.githubusercontent.com/kubernetes-sigs/controller-tools/HEAD/envtest-releases.yaml"}
2024-05-25T21:11:38.966+0530	DEBUG	fetch	env/env.go:300	writing downloaded archive	{"path": "/var/folders/dk/sqxhj3w101l3l1fmss9thqvr0000gn/T/540023570-envtest-v1.30.0-darwin-arm64.tar.gz"}
2024-05-25T21:11:38.966+0530	DEBUG	storage-client	remote/http_client.go:187	listing versions	{"index": "https://raw.githubusercontent.com/kubernetes-sigs/controller-tools/HEAD/envtest-releases.yaml"}
@nascarsayan nascarsayan changed the title setup-envtest is stuck and fails to download any envtest version setup-envtest is stuck and fails to download any k8s version May 25, 2024
@sbueringer
Copy link
Member

The change was merged here: #2811

Hm wondering if the log means that it already writes the downloaded archive. Could it be that you don't have the connectivity required to download the archive from here? https://github.com/kubernetes-sigs/controller-tools/releases/tag/envtest-v1.30.0

@nascarsayan
Copy link
Author

Hi @sbueringer , it looks like an intermittent network connectivity issue that I had encountered at that point of time. I had tried from several different networks, but it was getting stuck while downloading the file. It looks to be working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants