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

Intermittent Logging Setup Not Called and Timeout Error during vcluster list #2195

Open
CB122023 opened this issue Oct 1, 2024 · 0 comments
Labels

Comments

@CB122023
Copy link

CB122023 commented Oct 1, 2024

What happened?

Here’s the full error message I received during vcluster list:

% vcluster list

[controller-runtime] log.SetLogger(...) was never called; logs will not be displayed.
Detected at:
	>  goroutine 1 [running]:
	>  runtime/debug.Stack()
	>  	runtime/debug/stack.go:24 +0x64
	>  sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot()
	>  	sigs.k8s.io/[email protected]/pkg/log/log.go:60 +0xf4
	>  sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithName(0x1400035ca40, {0x105ee15c8, 0x9})
	>  	sigs.k8s.io/[email protected]/pkg/log/deleg.go:147 +0x34
	>  github.com/go-logr/logr.Logger.WithName(...)
	>  	github.com/go-logr/[email protected]/logr.go:345
	>  github.com/loft-sh/vcluster/pkg/util/loghelper.New({0x105ee15c8?, 0x14000901500?})
	>  	github.com/loft-sh/vcluster/pkg/util/loghelper/loghelper.go:24 +0x58
	>  github.com/loft-sh/vcluster/pkg/telemetry.newCLICollector()
	>  	github.com/loft-sh/vcluster/pkg/telemetry/collect_cli.go:54 +0x34
	>  github.com/loft-sh/vcluster/pkg/telemetry.StartCLI(0x1400052cc00?)
	>  	github.com/loft-sh/vcluster/pkg/telemetry/collect_cli.go:42 +0x68
	>  github.com/loft-sh/vcluster/cmd/vclusterctl/cmd.BuildRoot.NewRootCmd.func1(0x1400052cc00?, {0x108273520?, 0x4?, 0x105ed76f0?})
	>  	github.com/loft-sh/vcluster/cmd/vclusterctl/cmd/root.go:46 +0xfc
	>  github.com/spf13/cobra.(*Command).execute(0x140003a5208, {0x108273520, 0x0, 0x0})
	>  	github.com/spf13/[email protected]/command.go:961 +0x6e4
	>  github.com/spf13/cobra.(*Command).ExecuteC(0x140003a4908)
	>  	github.com/spf13/[email protected]/command.go:1115 +0x344
	>  github.com/spf13/cobra.(*Command).Execute(...)
	>  	github.com/spf13/[email protected]/command.go:1039
	>  github.com/spf13/cobra.(*Command).ExecuteContext(...)
	>  	github.com/spf13/[email protected]/command.go:1032
	>  github.com/loft-sh/vcluster/cmd/vclusterctl/cmd.Execute()
	>  	github.com/loft-sh/vcluster/cmd/vclusterctl/cmd/root.go:78 +0xd0
	>  main.main()
	>  	github.com/loft-sh/vcluster/cmd/vclusterctl/main.go:17 +0x30

  
    NAME | NAMESPACE | STATUS | VERSION | CONNECTED | AGE  
  -------+-----------+--------+---------+-----------+------
  

What did you expect to happen?

The vcluster list command should display a list of virtual clusters without logging errors or timeouts.

How can we reproduce it (as minimally and precisely as possible)?

Not sure if it could be reproducible

Anything else we need to know?

While this issue doesn't happen all the time, it does occur occasionally. I’m sharing the logs in hopes that they might point to an underlying problem.

Host cluster Kubernetes version

$ kubectl version
# Client Version: v1.31.1
Kustomize Version: v5.4.2
Server Version: v1.30.3-gke.1969001

vcluster version

$ vcluster --version
# vcluster version 0.20.1-beta.2

VCluster Config

# My vcluster.yaml / values.yaml here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant