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

Invalid backup does not fail VolumeBackup #6090

Open
michaelmdeng opened this issue Feb 20, 2025 · 0 comments · May be fixed by #6087
Open

Invalid backup does not fail VolumeBackup #6090

michaelmdeng opened this issue Feb 20, 2025 · 0 comments · May be fixed by #6087

Comments

@michaelmdeng
Copy link
Contributor

Bug Report

What version of Kubernetes are you using?

1.27.14

What version of TiDB Operator are you using?

v1.5.1

What storage classes exist in the Kubernetes cluster and what are used for PD/TiKV pods?

What's the status of the TiDB cluster pods?

What did you do?

Misconfigure an EBS snapshot VolumeBackup. This causes the underlying data-plane Backup to enter into Invalid state

$ kubectl  get bk <> -o yaml | yq .status
status:
  conditions:
  - lastTransitionTime: "2025-02-19T02:00:26Z"
    message: not support backup TiDB cluster with no tikv replica
    reason: InvalidSpec
    status: "True"
    type: Invalid
  phase: Invalid
  timeCompleted: null
  timeStarted: null
ttlSecondsAfterFinished: 3600

However, this is not considered a terminal state and the overarching VolumeBackup continues to run

kubectl get vbk <> -o yaml | yq .status
status:
  backups:
  - backupName: <>
    k8sClusterName: <>
    phase: Invalid
    tcName: <>
    tcNamespace: <>
  conditions:
  - lastTransitionTime: "2025-02-19T02:00:26Z"
    status: "True"
    type: Running
  phase: Running
  timeCompleted: null
  timeStarted: "2025-02-19T02:00:26Z"
ttlSecondsAfterFinished: 3600

The VolumeBackup never fails and is stuck. When part of a schedule, this blocks processing of subsequent backups on schedule.

What did you expect to see?

When Backup configuration is invalid, Backup and VolumeBackup should fail and schedule should continue attempting subsequent backups

What did you see instead?

VolumeBackup stays in running state and blocks subsequent backups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant