Skip to content

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

@waveywaves

Description

@waveywaves
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/apimachinery@v0.26.3/pkg/util/runtime/runtime.go:75 +0x99
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0xc000ea2bc8?})
        /go/pkg/mod/k8s.io/apimachinery@v0.26.3/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/apimachinery@v0.26.3/pkg/util/wait/wait.go:222 +0x1b
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x19e2108?, 0xc000126000?}, 0xc000ea2e20?)
        /go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/wait/wait.go:235 +0x57
k8s.io/apimachinery/pkg/util/wait.poll({0x19e2108, 0xc000126000}, 0x60?, 0x10242e5?, 0x28?)
        /go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/wait/wait.go:582 +0x38
k8s.io/apimachinery/pkg/util/wait.PollImmediateWithContext({0x19e2108, 0xc000126000}, 0xc000d49125?, 0xc000ea2eb0?, 0x40da67?)
        /go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/wait/wait.go:528 +0x4a
k8s.io/apimachinery/pkg/util/wait.PollImmediate(0xc000d49107?, 0x7?, 0xc000cee240?)
        /go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/wait/wait.go:514 +0x50
github.com/UffizziCloud/uffizzi-cluster-operator/controllers/uffizzicluster.(*UffizziClusterReconciler).waitForStatefulSetToScale(0xc0000c9b30, {0x19e2178?, 0xc000b1e810}, 0x1, 0x0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions