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]mysql upgrade ops is always in Running status #8663

Open
tianyue86 opened this issue Dec 17, 2024 · 2 comments
Open

[BUG]mysql upgrade ops is always in Running status #8663

tianyue86 opened this issue Dec 17, 2024 · 2 comments
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@tianyue86
Copy link

Describe the env
Kubernetes: v1.31.1-aliyun.1
KubeBlocks: 1.0.0-beta.17
kbcli: 1.0.0-beta.6

To Reproduce
Steps to reproduce the behavior:

  1. Create asmysql cluster using this yaml
apiVersion: apps.kubeblocks.io/v1
kind: Cluster
metadata:
  name: asmysql-srggtd
  namespace: default
  labels: 
    app.kubernetes.io/instance: asmysql-srggtd
  annotations:
spec:
  terminationPolicy: Delete
  componentSpecs:
    - name: mysql
      serviceVersion: 8.0.30
      replicas: 1
      componentDef: mysql-8.0     
      disableExporter: true      
      replicas: 2      
      resources:
        limits:
          cpu: 500m
          memory: 0.5Gi
        requests:
          cpu: 500m
          memory: 0.5Gi      
      volumeClaimTemplates:
        - name: data
          spec:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 20Gi
      serviceRefs:
      - name: orchestrator
        namespace: default
        clusterServiceSelector:
            cluster: orcm-srggtd
            service:
              component: orchestrator
              service: orchestrator
              port: http
  1. upgrade using this yaml
apiVersion: operations.kubeblocks.io/v1alpha1
kind: OpsRequest
metadata:
  generateName: asmysql-srggtd-upgrade-cmpv-
  namespace: default
spec:
  clusterName: asmysql-srggtd
  upgrade:
    components:

    - componentName: mysql
      serviceVersion: 8.0.31
  type: Upgrade
  1. Check ops status: always in Running status
kbcli cluster list-ops asmysql-srggtd --status all  --namespace default
NAME                                NAMESPACE   TYPE      CLUSTER          COMPONENT   STATUS    PROGRESS   CREATED-TIME                 
asmysql-srggtd-upgrade-cmpv-mkxnz   default     Upgrade   asmysql-srggtd   mysql       Running   1/2        Dec 17,2024 17:42 UTC+0800

Logs for reference:

report-cluster-asmysql-srggtd-2024-12-17-17-59-11.zip

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.

@tianyue86 tianyue86 added the kind/bug Something isn't working label Dec 17, 2024
@tianyue86 tianyue86 added this to the Release 1.0.0 milestone Dec 17, 2024
@xuriwuyun
Copy link
Contributor

image
The cluster has been upgraded successfully, but the ops status is not correct. @wangyelei

@tianyue86
Copy link
Author

@wangyelei The cluster has been upgraded successfully but the ops status does not change. Please take a look, Thanks!

@shanshanying shanshanying changed the title [BUG]asmysql upgrade ops is always in Running status [BUG]mysql upgrade ops is always in Running status Dec 18, 2024
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

4 participants