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

bug: nil pointer dereference when etcd statefulset isn't up #72

Open
waveywaves opened this issue Nov 3, 2023 · 0 comments
Open

bug: nil pointer dereference when etcd statefulset isn't up #72

waveywaves opened this issue Nov 3, 2023 · 0 comments

Comments

@waveywaves
Copy link
Member

2023-11-03T13:31:50Z    INFO    Loft Helm Repo for UffizziCluster created       {"controller": "uffizzicluster", "controllerGroup": "uffizzi.com", "controllerKi
nd": "UffizziCluster", "UffizziCluster": {"name":"k8s-1-27-6745777561-1","namespace":"cluster-142"}, "namespace": "cluster-142", "name": "k8s-1-27-6745777561-1"
, "reconcileID": "4c262724-373f-4f27-9e58-018e8ed2ba16", "NamespacedName": {"namespace": "cluster-142", "name": "k8s-1-27-6745777561-1"}}
2023-11-03T13:31:50Z    INFO    UffizziCluster lastAppliedConfig has been set   {"controller": "uffizzicluster", "controllerGroup": "uffizzi.com", "controllerKi
nd": "UffizziCluster", "UffizziCluster": {"name":"k8s-1-27-6745777561-1","namespace":"cluster-142"}, "namespace": "cluster-142", "name": "k8s-1-27-6745777561-1"
, "reconcileID": "4c262724-373f-4f27-9e58-018e8ed2ba16"}
E1103 13:31:51.041955       1 runtime.go:79] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil
 pointer dereference)
goroutine 125 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0x15acea0?, 0x2508340})
        /go/pkg/mod/k8s.io/[email protected]/pkg/util/runtime/runtime.go:75 +0x99
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0xc000ea2bc8?})
        /go/pkg/mod/k8s.io/[email protected]/pkg/util/runtime/runtime.go:49 +0x75
panic({0x15acea0, 0x2508340})
        /usr/local/go/src/runtime/panic.go:884 +0x212
github.com/UffizziCloud/uffizzi-cluster-operator/controllers/uffizzicluster.(*UffizziClusterReconciler).waitForStatefulSetToScale.func1()
        /workspace/controllers/uffizzicluster/statefulset.go:52 +0x43
k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0x18, 0xc000068800})
        /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:222 +0x1b
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x19e2108?, 0xc000126000?}, 0xc000ea2e20?)
        /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:235 +0x57
k8s.io/apimachinery/pkg/util/wait.poll({0x19e2108, 0xc000126000}, 0x60?, 0x10242e5?, 0x28?)
        /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:582 +0x38
k8s.io/apimachinery/pkg/util/wait.PollImmediateWithContext({0x19e2108, 0xc000126000}, 0xc000d49125?, 0xc000ea2eb0?, 0x40da67?)
        /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:528 +0x4a
k8s.io/apimachinery/pkg/util/wait.PollImmediate(0xc000d49107?, 0x7?, 0xc000cee240?)
        /go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:514 +0x50
github.com/UffizziCloud/uffizzi-cluster-operator/controllers/uffizzicluster.(*UffizziClusterReconciler).waitForStatefulSetToScale(0xc0000c9b30, {0x19e2178?, 0xc000b1e810}, 0x1, 0x0)
@waveywaves waveywaves changed the title nil pointer dereference bug when etcd statefulset isn't up bug: nil pointer dereference when etcd` statefulset isn't up Nov 3, 2023
@waveywaves waveywaves changed the title bug: nil pointer dereference when etcd` statefulset isn't up bug: nil pointer dereference when etcd statefulset isn't up Nov 4, 2023
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

1 participant