-
Notifications
You must be signed in to change notification settings - Fork 246
Open
Description
Describe the bug
Kubernetes: v1.32.1-aliyun.1
KubeBlocks: 1.0.0-beta.41,0.9.4-beta.5
kbcli: 1.0.0-beta.20
To Reproduce
Steps to reproduce the behavior:
- Create mysql backup in kb094
k get backups
NAME POLICY METHOD REPO STATUS TOTAL-SIZE DURATION DELETION-POLICY CREATION-TIME COMPLETION-TIME EXPIRATION-TIME
mysql-cluster-backup mysql-cluster-mysql-backup-policy xtrabackup kb-oss Completed 2503859 19s Delete 2025-04-07T02:41:05Z 2025-04-07T02:41:23Z
-
Restore in dualOperatorsMode
kbcli cluster restore abk-cluster --backup mysql-cluster-backup --namespace default
Cluster abk-cluster created -
Scroll down to '....'
kubectl get opsrequests.operations.kubeblocks.io -n default
NAME TYPE CLUSTER STATUS PROGRESS AGE
abk-cluster Restore abk-cluster Failed -/- 96s
k get cmpd|grep mysql
apecloud-mysql mysql 8.0.30 Available 4d17h
mysql-5.7 mysql 5.7.44 Available 4d17h
mysql-5.7-1.0.0-alpha.0 mysql 5.7.44 Available 22h
mysql-8.0 mysql 8.0.33 Available 4d17h
mysql-8.0-1.0.0-alpha.0 mysql 8.0.33 Available 22h
mysql-8.4 mysql 8.4.2 Available 4d17h
mysql-8.4-1.0.0-alpha.0 mysql 8.4.2 Available 22h
mysql-mgr-8.0-1.0.0-alpha.0 mysql 8.0.33 Available 22h
mysql-mgr-8.4-1.0.0-alpha.0 mysql 8.4.2 Available 22h
mysql-orc-5.7-1.0.0-alpha.0 mysql 5.7.44 Available 22h
mysql-orc-8.0-1.0.0-alpha.0 mysql 8.0.33 Available 22h
proxysql-mysql-1.0.0-alpha.0 proxysql 2.4.4 Available 22h
- See error
2025-04-08T06:14:09.323Z INFO reconcile {"controller": "opsrequest", "controllerGroup": "operations.kubeblocks.io", "controllerKind": "OpsRequest", "OpsRequest": {"name":"abk-cluster","namespace":"default"}, "namespace": "default", "name": "abk-cluster", "reconcileID": "34a50b41-e340-4099-a9df-c2be2833ecd1", "opsRequest": {"name":"abk-cluster","namespace":"default"}, "opsRequest": {"name":"abk-cluster","namespace":"default"}}
2025-04-08T06:14:09.334Z INFO reconcile {"controller": "opsrequest", "controllerGroup": "operations.kubeblocks.io", "controllerKind": "OpsRequest", "OpsRequest": {"name":"abk-cluster","namespace":"default"}, "namespace": "default", "name": "abk-cluster", "reconcileID": "3fc1e5ed-9936-457d-a6d8-c24953217428", "opsRequest": {"name":"abk-cluster","namespace":"default"}, "opsRequest": {"name":"abk-cluster","namespace":"default"}}
2025-04-08T06:14:09.340Z INFO reconcile {"controller": "opsrequest", "controllerGroup": "operations.kubeblocks.io", "controllerKind": "OpsRequest", "OpsRequest": {"name":"abk-cluster","namespace":"default"}, "namespace": "default", "name": "abk-cluster", "reconcileID": "a8b94125-6b57-4ec3-9a00-d7be27ee616c", "opsRequest": {"name":"abk-cluster","namespace":"default"}, "opsRequest": {"name":"abk-cluster","namespace":"default"}}
2025-04-08T06:14:09.346Z INFO reconcile {"controller": "opsrequest", "controllerGroup": "operations.kubeblocks.io", "controllerKind": "OpsRequest", "OpsRequest": {"name":"abk-cluster","namespace":"default"}, "namespace": "default", "name": "abk-cluster", "reconcileID": "cd2fd0ae-9951-4d66-b50b-edd47d6ac459", "opsRequest": {"name":"abk-cluster","namespace":"default"}, "opsRequest": {"name":"abk-cluster","namespace":"default"}}
E0408 06:14:17.412716 1 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1.Role: unknown (get roles.rbac.authorization.k8s.io)
2025-04-08T06:14:30.632Z INFO no matched component definition found with componentDef "mysql-8.0-1.0.0-alpha.0" and serviceVersion "8.0.39" {"controller": "cluster", "controllerGroup": "apps.kubeblocks.io", "controllerKind": "Cluster", "Cluster": {"name":"abk-cluster","namespace":"default"}, "namespace": "default", "name": "abk-cluster", "reconcileID": "f31201e7-125c-4c31-b4aa-a61cf6521a7d", "cluster": {"name":"abk-cluster","namespace":"default"}}
2025-04-08T06:14:30.632Z ERROR Reconciler error {"controller": "cluster", "controllerGroup": "apps.kubeblocks.io", "controllerKind": "Cluster", "Cluster": {"name":"abk-cluster","namespace":"default"}, "namespace": "default", "name": "abk-cluster", "reconcileID": "f31201e7-125c-4c31-b4aa-a61cf6521a7d", "error": "no matched component definition found with componentDef \"mysql-8.0-1.0.0-alpha.0\" and serviceVersion \"8.0.39\""}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:329
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266
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:227
E0408 06:14:35.840840 1 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1.Deployment: unknown (get deployments.apps)
E0408 06:14:57.407786 1 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1.Role: unknown (get roles.rbac.authorization.k8s.io)
E0408 06:15:32.104090 1 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1.Deployment: unknown (get deployments.apps)
E0408 06:15:51.383944 1 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1.Role: unknown (get roles.rbac.authorization.k8s.io)
E0408 06:16:16.201160 1 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1.Deployment: unknown (get deployments.apps)
E0408 06:16:39.132723 1 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1.Role: unknown (get roles.rbac.authorization.k8s.io)
E0408 06:16:50.327539 1 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1.Deployment: unknown (get deployments.apps)
E0408 06:17:33.183237 1 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1.Role: unknown (get roles.rbac.authorization.k8s.io)
E0408 06:17:43.713614 1 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1.Deployment: unknown (get deployments.apps)
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working