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] restart ops not working in 1.0.0-beta.23 #8873

Closed
weicao opened this issue Jan 24, 2025 · 1 comment
Closed

[BUG] restart ops not working in 1.0.0-beta.23 #8873

weicao opened this issue Jan 24, 2025 · 1 comment
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@weicao
Copy link
Contributor

weicao commented Jan 24, 2025

Describe the bug

When performing a restart operation on a cluster, the restart operation did not successfully execute and remained in the "running" state. Upon checking the logs, the following error was reported:

2025-01-24T11:49:24.674Z ERROR Reconciler error {"controller": "instanceset", "controllerGroup": "workloads.kubeblocks.io", "controllerKind": "InstanceSet", "InstanceSet": {"name":"example-mysql-restart-mysql","namespace":"demo"}, "namespace": "demo", "name": "example-mysql-restart-mysql", "reconcileID": "595ae5aa-ca7c-487f-96df-174363af810a", "error": "InstanceSet demo/example-mysql-restart-mysql has no annotation app.kubernetes.io/instance"}
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

To Reproduce
Steps to reproduce the behavior:
1.

kubectl apply -f - <<EOF
apiVersion: apps.kubeblocks.io/v1
kind: Cluster
metadata:
  name: example-mysql-restart
  namespace: demo
spec:
  clusterDef: mysql
  topology: server
  terminationPolicy: Delete
  componentSpecs:
    - name: mysql
      serviceVersion: 8.0.35
      replicas: 2
      resources:
        limits:
          cpu: '0.5'
          memory: 0.5Gi
        requests:
          cpu: '0.5'
          memory: 0.5Gi
      volumeClaimTemplates:
        - name: data
          spec:
            storageClassName: ""
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 20Gi
EOF
kubectl apply -f - <<EOF
apiVersion: operations.kubeblocks.io/v1alpha1
kind: OpsRequest
metadata:
  name: example-mysql-restart-restart-ops
  namespace: demo
spec:
  clusterName: example-mysql-restart
  type: Restart
  restart:
  - componentName: mysql
EOF

Expected behavior
The restart ops should succeed.

Desktop (please complete the following information):
Kubernetes: v1.31.4-eks-2d5f260
KubeBlocks: 1.0.0-beta.23

@weicao weicao added the kind/bug Something isn't working label Jan 24, 2025
@weicao
Copy link
Contributor Author

weicao commented Jan 24, 2025

fixed in 1.0.0-beta.24

@weicao weicao closed this as completed Jan 24, 2025
@github-actions github-actions bot added this to the Release 0.9.3 milestone Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants