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 cluster backuppolicy missing #8625

Closed
JashBook opened this issue Dec 12, 2024 · 2 comments
Closed

[BUG] mysql cluster backuppolicy missing #8625

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

Comments

@JashBook
Copy link
Collaborator

Describe the bug

kbcli version
Kubernetes: v1.28.3-vke.17
KubeBlocks: 0.9.3-beta.7
kbcli: 0.9.2

To Reproduce
Steps to reproduce the behavior:

  1. create mysql cluster
apiVersion: apps.kubeblocks.io/v1alpha1
kind: Cluster
metadata:
  name: asmysql-bbarka
  namespace: default
spec:
  terminationPolicy: Halt
  componentSpecs:
    - name: mysql
      componentDef: mysql-8.0
      serviceVersion: 8.0.30
      replicas: 2
      resources:
        requests:
          cpu: 100m
          memory: 0.5Gi
        limits:
          cpu: 100m
          memory: 0.5Gi
      volumeClaimTemplates:
        - name: data
          spec:
            storageClassName:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 10Gi
  1. See error
kbcli cluster backup asmysql-bbarka --method xtrabackup --namespace default
    
error: not found any backup policy for cluster "asmysql-bbarka"

                    [Error] xtrabackup backup command execute error 
kubectl get backuppolicy -l app.kubernetes.io/instance=asmysql-bbarka   
No resources found in default namespace.

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.

@JashBook JashBook added the kind/bug Something isn't working label Dec 12, 2024
@JashBook JashBook added this to the Release 0.9.2 milestone Dec 12, 2024
@JashBook
Copy link
Collaborator Author

kubectl describe cluster asmysql-bbarka 
Name:         asmysql-bbarka
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  apps.kubeblocks.io/v1alpha1
Kind:         Cluster
Metadata:
  Creation Timestamp:  2024-12-12T03:35:10Z
  Finalizers:
    cluster.kubeblocks.io/finalizer
  Generation:        1
  Resource Version:  11185520
  UID:               a8d3983f-648c-46ca-a38c-dc9ecec21c1f
Spec:
  Component Specs:
    Component Def:  mysql-8.0
    Name:           mysql
    Replicas:       2
    Resources:
      Limits:
        Cpu:     100m
        Memory:  0.5Gi
      Requests:
        Cpu:          100m
        Memory:       0.5Gi
    Service Version:  8.0.30
    Volume Claim Templates:
      Name:  data
      Spec:
        Access Modes:
          ReadWriteOnce
        Resources:
          Requests:
            Storage:   10Gi
  Termination Policy:  Halt
Status:
  Components:
    Mysql:
      Phase:       Creating
      Pods Ready:  false
  Conditions:
    Last Transition Time:  2024-12-12T03:35:10Z
    Message:               The operator has started the provisioning of Cluster: asmysql-bbarka
    Observed Generation:   1
    Reason:                PreCheckSucceed
    Status:                True
    Type:                  ProvisioningStarted
    Last Transition Time:  2024-12-12T03:35:10Z
    Message:               Successfully applied for resources
    Observed Generation:   1
    Reason:                ApplyResourcesSucceed
    Status:                True
    Type:                  ApplyResources
    Last Transition Time:  2024-12-12T03:35:11Z
    Message:               pods are not ready in Components: [mysql], refer to related component message in Cluster.status.components
    Reason:                ReplicasNotReady
    Status:                False
    Type:                  ReplicasReady
    Last Transition Time:  2024-12-12T03:35:11Z
    Message:               pods are unavailable in Components: [mysql], refer to related component message in Cluster.status.components
    Reason:                ComponentsNotReady
    Status:                False
    Type:                  Ready
  Observed Generation:     1
  Phase:                   Creating
Events:
  Type    Reason                    Age   From                Message
  ----    ------                    ----  ----                -------
  Normal  PreCheckSucceed           7s    cluster-controller  The operator has started the provisioning of Cluster: asmysql-bbarka
  Normal  ApplyResourcesSucceed     7s    cluster-controller  Successfully applied for resources
  Normal  ComponentPhaseTransition  7s    cluster-controller  component is Creating

@wangyelei
Copy link
Contributor

fixed at apecloud/kubeblocks-addons#1310

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