-
Bug
-
Resolution: Done-Errata
-
Normal
-
4.15
-
No
-
Hypershift Sprint 245
-
1
-
False
-
-
N/A
-
Release Note Not Required
Description of problem:
A stack trace is output when creating a hosted cluster via the hypershift CLI
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
1. Run hypershift create cluster aws ... to create a hosted cluster
Actual results:
The output will contain: [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed. Detected at: > goroutine 1 [running]: > runtime/debug.Stack() > /opt/homebrew/Cellar/go/1.21.4/libexec/src/runtime/debug/stack.go:24 +0x64 > sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot() > /Users/xinjiang/Codes/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/log/log.go:60 +0xa0 > sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithName(0x14000845480, {0x10321d605, 0x14}) > /Users/xinjiang/Codes/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/log/deleg.go:147 +0x34 > github.com/go-logr/logr.Logger.WithName({{0x10490a710, 0x14000845480}, 0x0}, {0x10321d605, 0x14}) > /Users/xinjiang/Codes/hypershift/vendor/github.com/go-logr/logr/logr.go:336 +0x5c > sigs.k8s.io/controller-runtime/pkg/client.newClient(0x1400097a900, {0x0, 0x140004a42a0, {0x0, 0x0}, 0x0, {0x0, 0x0}, 0x0}) > /Users/xinjiang/Codes/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/client/client.go:122 +0xf8 > sigs.k8s.io/controller-runtime/pkg/client.New(0x14000ef98c0, {0x0, 0x140004a42a0, {0x0, 0x0}, 0x0, {0x0, 0x0}, 0x0}) > /Users/xinjiang/Codes/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/client/client.go:103 +0x78 > github.com/openshift/hypershift/cmd/util.GetClient() > /Users/xinjiang/Codes/hypershift/cmd/util/client.go:50 +0x4f4 > github.com/openshift/hypershift/cmd/cluster/core.apply({0x104906d88, 0x140008dfb80}, {{0x10490acf8, 0x140009dd410}, 0x0}, 0x14000ef9200, 0x0, 0x0) > /Users/xinjiang/Codes/hypershift/cmd/cluster/core/create.go:324 +0xc8 > github.com/openshift/hypershift/cmd/cluster/core.CreateCluster({0x104906d88, 0x140008dfb80}, 0x1400056f600, 0x1048c4360) > /Users/xinjiang/Codes/hypershift/cmd/cluster/core/create.go:461 +0x264 > github.com/openshift/hypershift/cmd/cluster/aws.CreateCluster({0x104906d88, 0x140008dfb80}, 0x1400056f600) > /Users/xinjiang/Codes/hypershift/cmd/cluster/aws/create.go:79 +0x78 > github.com/openshift/hypershift/cmd/cluster/aws.NewCreateCommand.func1(0x14000d1ac00, {0x14000a6cf70, 0x0, 0xd}) > /Users/xinjiang/Codes/hypershift/cmd/cluster/aws/create.go:65 +0x148 > github.com/spf13/cobra.(*Command).execute(0x14000d1ac00, {0x1400014c040, 0xd, 0xe}) > /Users/xinjiang/Codes/hypershift/vendor/github.com/spf13/cobra/command.go:940 +0x90c > github.com/spf13/cobra.(*Command).ExecuteC(0x14000c91800) > /Users/xinjiang/Codes/hypershift/vendor/github.com/spf13/cobra/command.go:1068 +0x770 > github.com/spf13/cobra.(*Command).Execute(0x14000c91800) > /Users/xinjiang/Codes/hypershift/vendor/github.com/spf13/cobra/command.go:992 +0x30 > github.com/spf13/cobra.(*Command).ExecuteContext(0x14000c91800, {0x104906d88, 0x140008dfb80}) > /Users/xinjiang/Codes/hypershift/vendor/github.com/spf13/cobra/command.go:985 +0x70 > main.main() > /Users/xinjiang/Codes/hypershift/main.go:70 +0x46c 2023-11-15T18:24:26+08:00 INFO Applied Kube resource {"kind": "Namespace", "namespace": "", "name": "clusters"}
Expected results:
No stack trace is output
Additional info:
The function is not affected, the cluster still creates.