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] reconfigure painc when updating file #5675

Closed
sophon-zt opened this issue Oct 30, 2023 · 0 comments · Fixed by #5679
Closed

[BUG] reconfigure painc when updating file #5675

sophon-zt opened this issue Oct 30, 2023 · 0 comments · Fixed by #5679
Assignees
Labels
bug kind/bug Something isn't working
Milestone

Comments

@sophon-zt
Copy link
Contributor

sophon-zt commented Oct 30, 2023

$ kbcli cluster edit-config td5 --config-file=taos.cfg --replace --config-spec=tdengine-taos-config

2023-10-30T08:50:02.700Z	INFO	Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference	{"controller": "opsrequest", "controllerGroup": "apps.kubeblocks.io", "controllerKind": "OpsRequest", "OpsRequest": {"name":"td5-reconfiguring-tvxtv","namespace":"default"}, "namespace": "default", "name": "td5-reconfiguring-tvxtv", "reconcileID": "adf6d204-dc50-47c2-933e-57f599b1d2a8"}
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=0x0 pc=0x16f58e0]

goroutine 598 [running]:
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:115 +0x1a4
panic({0x19c3520?, 0x3367e50?})
	/usr/local/go/src/runtime/panic.go:914 +0x218
github.com/apecloud/kubeblocks/controllers/apps/operations.constructReconfiguringConditions({0x0, 0x0, 0x0, 0x0, {0x0, 0x0}}, 0x4002004e10, 0x400242bb00)
	/src/controllers/apps/operations/reconfigure_util.go:248 +0x40
github.com/apecloud/kubeblocks/controllers/apps/operations.(*reconfigureAction).Action(0x199d2a0?, {{0x21df200, 0x4002004d50}, {{{0x400226f8b0, 0x7}, {0x4001a6b0b0, 0x17}}}, {{0x21e40f8, 0x4002004db0}, 0x0}, ...}, ...)
	/src/controllers/apps/operations/reconfigure.go:201 +0x4ec
github.com/apecloud/kubeblocks/controllers/apps/operations.(*OpsManager).Do(0x40000cd080?, {{0x21df200, 0x4002004d50}, {{{0x400226f8b0, 0x7}, {0x4001a6b0b0, 0x17}}}, {{0x21e40f8, 0x4002004db0}, 0x0}, ...}, ...)
	/src/controllers/apps/operations/ops_manager.go:96 +0x448
github.com/apecloud/kubeblocks/controllers/apps.(*OpsRequestReconciler).doOpsRequestAction(0x4000af7590, {{0x21df200, 0x4002004d50}, {{{0x400226f8b0, 0x7}, {0x4001a6b0b0, 0x17}}}, {{0x21e40f8, 0x4002004db0}, 0x0}, ...}, ...)
	/src/controllers/apps/opsrequest_controller.go:247 +0xd4
github.com/apecloud/kubeblocks/controllers/apps.(*OpsRequestReconciler).handleOpsRequestByPhase(0x4000af7590?, {{0x21df200, 0x4002004d50}, {{{0x400226f8b0, 0x7}, {0x4001a6b0b0, 0x17}}}, {{0x21e40f8, 0x4002004db0}, 0x0}, ...}, ...)
	/src/controllers/apps/opsrequest_controller.go:148 +0x290
github.com/apecloud/kubeblocks/controllers/apps.(*opsControllerHandler).Handle(0x4002004d80?, {{0x21df200, 0x4002004d50}, {{{0x400226f8b0, 0x7}, {0x4001a6b0b0, 0x17}}}, {{0x21e40f8, 0x4002004db0}, 0x0}, ...}, ...)
	/src/controllers/apps/opsrequest_controller.go:361 +0xb8
github.com/apecloud/kubeblocks/controllers/apps.(*OpsRequestReconciler).Reconcile(0x4000af7590, {0x21df200, 0x4002004d50}, {{{0x400226f8b0, 0x7}, {0x4001a6b0b0, 0x17}}})
	/src/controllers/apps/opsrequest_controller.go:72 +0x2a8
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x21df200?, {0x21df200?, 0x4002004d50?}, {{{0x400226f8b0?, 0x1887c20?}, {0x4001a6b0b0?, 0x4000ec7608?}}})
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:118 +0x8c
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0x4000699c20, {0x21df238, 0x400021cc30}, {0x1aa7960?, 0x40003ee020?})
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:314 +0x29c
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0x4000699c20, {0x21df238, 0x400021cc30})
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:265 +0x198
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:226 +0x74
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2 in goroutine 47
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:222 +0x43c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants