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] Error recovering cluster to another cluster in a different namespace #8929

Closed
langfeijiu2 opened this issue Feb 14, 2025 · 0 comments · Fixed by #8931
Closed

[BUG] Error recovering cluster to another cluster in a different namespace #8929

langfeijiu2 opened this issue Feb 14, 2025 · 0 comments · Fixed by #8931
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@langfeijiu2
Copy link

langfeijiu2 commented Feb 14, 2025

Describe the bug
Error recovering cluster to another cluster in a different namespace . The recovery was stuck in the Creating status.

To Reproduce
Steps to reproduce the behavior:

  1. Create a backuprepo
kbcli backuprepo create my-repo \
--provider pvc \
--storage-class-name "nfs-csi" \
--access-mode "ReadWriteMany" \
--volume-capacity "100Gi" \
--default
  1. Create a backup using xtrabackup method
kbcli cluster backup mysql -n mysql --name testbackup --method xtrabackup

kbcli cluster list-backups -n mysql
>
NAME         NAMESPACE     SOURCE-CLUSTER   METHOD       STATUS      TOTAL-SIZE   DURATION   CREATE-TIME                  COMPLETION-TIME              EXPIRATION   
testbackup         mysql             mysql      xtrabackup   Completed   38777361     18s        Feb 13,2025 17:37 UTC+0800   Feb 13,2025 17:37 UTC+0800     
  1. Restore cluster
kbcli cluster restore myrestore --backup mybackup
  1. restore status
> kbcli cluster list-ops
NAME        NAMESPACE   TYPE      CLUSTER     COMPONENT   STATUS     PROGRESS   CREATED-TIME                 
myrestore   default     Restore   myrestore               Creating   -/-        Feb 14,2025 11:26 UTC+0800 

> kbcli cluster describe-ops myrestore
Spec:
  Name: myrestore	NameSpace: default	Cluster: myrestore	Type: Restore	

Command: <none>

Status:
  Start Time:         Feb 14,2025 11:26 UTC+0800
  Duration:           4h27m
  Status:             Creating
  Progress:           -/-

Conditions:
LAST-TRANSITION-TIME         TYPE                 REASON                     STATUS   MESSAGE                                                                              
Feb 14,2025 11:26 UTC+0800   WaitForProgressing   WaitForProgressing         True     wait for the controller to process the OpsRequest: myrestore in Cluster: myrestore   
Feb 14,2025 11:26 UTC+0800   Validated            ValidateOpsRequestPassed   True     OpsRequest: myrestore is validated                                                   
Feb 14,2025 11:26 UTC+0800   Backup               RestoreStarted             True     Start to restore the Cluster: myrestore                                              

Warning Events: <none>
@langfeijiu2 langfeijiu2 added the kind/bug Something isn't working label Feb 14, 2025
@langfeijiu2 langfeijiu2 changed the title [BUG] [BUG] Error recovering cluster to another cluster in a different namespace Feb 14, 2025
@wangyelei wangyelei self-assigned this Feb 14, 2025
@github-actions github-actions bot added this to the Release 0.9.3 milestone Feb 18, 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

Successfully merging a pull request may close this issue.

3 participants