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] cluster can't be deleted after scale out #7073

Closed
free6om opened this issue Apr 16, 2024 · 1 comment · Fixed by #7237
Closed

[BUG] cluster can't be deleted after scale out #7073

free6om opened this issue Apr 16, 2024 · 1 comment · Fixed by #7237
Assignees
Labels
kind/bug Something isn't working severity/major Great chance user will encounter the same problem
Milestone

Comments

@free6om
Copy link
Contributor

free6om commented Apr 16, 2024

Describe the bug
cluster can't be deleted after scale out

To Reproduce
Steps to reproduce the behavior:

  1. kbcli cluster create mysql-qxfvtt --termination-policy=WipeOut --cluster-definition=apecloud-mysql --cluster-version=ac-mysql-8.0.30 --set cpu=100m,memory=0.5Gi,replicas=1,storage=1Gi
  2. kbcli cluster hscale mysql-qxfvtt --auto-approve --components mysql --replicas 3
  3. kubectl delete cluster mysql-qxfvtt

Expected behavior
cluster was deleted

Additional context
root cause is the Backup object can't be selected by component controller or removed by cluster controller.

@free6om free6om added the kind/bug Something isn't working label Apr 16, 2024
@free6om free6om added this to the Release 0.9.0 milestone Apr 16, 2024
@ahjing99 ahjing99 added the severity/major Great chance user will encounter the same problem label Apr 16, 2024
@Y-Rookie
Copy link
Collaborator

➜  addons git:(support/delete-component-class-definition) kg backup mysql-qxfvtt-mysql-scaling -o yaml
apiVersion: dataprotection.kubeblocks.io/v1alpha1
kind: Backup
metadata:
  creationTimestamp: "2024-04-23T06:36:17Z"
  finalizers:
  - component.kubeblocks.io/finalizer
  - cluster.kubeblocks.io/finalizer
  generation: 1
  labels:
    app.kubernetes.io/instance: mysql-qxfvtt
    app.kubernetes.io/managed-by: kubeblocks
    app.kubernetes.io/name: apecloud-mysql
    apps.kubeblocks.io/component-name: mysql
    apps.kubeblocks.io/managed-by: cluster
    dataprotection.kubeblocks.io/backup-method: xtrabackup
    dataprotection.kubeblocks.io/backup-policy: mysql-qxfvtt-mysql-backup-policy-hscale
  name: mysql-qxfvtt-mysql-scaling
  namespace: default
  ownerReferences:
  - apiVersion: apps.kubeblocks.io/v1alpha1
    blockOwnerDeletion: true
    controller: true
    kind: Component
    name: mysql-qxfvtt-mysql
    uid: 69b492af-ba26-45d9-890c-6ed6d6f9dd4f
  resourceVersion: "73602"
  uid: afa62ff5-d968-4100-93ef-c6458b7c8fc6
spec:
  backupMethod: xtrabackup
  backupPolicyName: mysql-qxfvtt-mysql-backup-policy-hscale
  deletionPolicy: Delete

@Y-Rookie Y-Rookie linked a pull request Apr 23, 2024 that will close this issue
@wangyelei wangyelei linked a pull request May 6, 2024 that will close this issue
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 severity/major Great chance user will encounter the same problem
Projects
None yet
4 participants