rook / rook

Storage Orchestration for Kubernetes
https://rook.io
Apache License 2.0
12.33k stars 2.69k forks source link

rook operator in panic state #14246

Closed parth-gr closed 1 month ago

parth-gr commented 4 months ago

Is this a bug report or feature request?

Deviation from expected behavior: Apply filesystem svgs, and the operator got in panic state

024-05-21 12:13:32.884085 I | ceph-cosi-controller: successfully started
2024-05-21 12:13:32.884167 I | operator: starting the controller-runtime manager
2024-05-21 12:13:33.003013 I | ceph-spec: parsing mon endpoints: a=10.104.6.197:6789
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
    panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1e9eb85]

goroutine 622 [running]:
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
    /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.2/pkg/internal/controller/controller.go:116 +0x1e5
panic({0x21d5d40?, 0x3f20610?})
    /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/panic.go:914 +0x21f
github.com/rook/rook/pkg/operator/ceph/file/subvolumegroup.(*ReconcileCephFilesystemSubVolumeGroup).reconcile(0xc000467b00, {{{0xc0001b4a60?, 0x1873cc4?}, {0xc0001b4a50?, 0x0?}}})
    /home/runner/work/rook/rook/pkg/operator/ceph/file/subvolumegroup/controller.go:240 +0x7a5
github.com/rook/rook/pkg/operator/ceph/file/subvolumegroup.(*ReconcileCephFilesystemSubVolumeGroup).Reconcile(0xc000806280?, {0x0?, 0x0?}, {{{0xc0001b4a60, 0x9}, {0xc0001b4a50, 0x9}}})
    /home/runner/work/rook/rook/pkg/operator/ceph/file/subvolumegroup/controller.go:118 +0x48
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x2bfc7c0?, {0x2bf7c60?, 0xc0011339b0?}, {{{0xc0001b4a60?, 0xb?}, {0xc0001b4a50?, 0x0?}}})
    /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.2/pkg/internal/controller/controller.go:119 +0xb7
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc000929680, {0x2bf7c98, 0xc0007908c0}, {0x22cfe20?, 0xc0010fcd80?})
    /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.2/pkg/internal/controller/controller.go:316 +0x3cc
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc000929680, {0x2bf7c98, 0xc0007908c0})
    /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.2/pkg/internal/controller/controller.go:266 +0x1af
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
    /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.2/pkg/internal/controller/controller.go:227 +0x79
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2 in goroutine 106
    /home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.2/pkg/internal/controller/controller.go:223 +0x565
[rider@localhost examples]$ kubectl get pods -nrook-ceph

Expected behavior:

How to reproduce it (minimal and precise):

File(s) to submit:

Logs to submit:

Cluster Status to submit:

Environment:

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 month ago

This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation.