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

The Restore is marked as completed although the DataDownload is failed #6571

Closed
ywk253100 opened this issue Aug 1, 2023 · 2 comments
Closed

Comments

@ywk253100
Copy link
Contributor

ywk253100 commented Aug 1, 2023

The target cluster has no StorageClass named test, so the DataDownload failed.
But the Restore is marked as completed although the DataDownload is failed:

velero restore get dm-13
NAME    BACKUP   STATUS      STARTED                         COMPLETED                       ERRORS   WARNINGS   CREATED                         SELECTOR
dm-13   dm-10    Completed   2023-08-01 14:08:10 +0800 CST   2023-08-01 14:08:12 +0800 CST   0        4          2023-08-01 14:08:10 +0800 CST   <none>


kubectl -n velero get datadownload dm-13-n4sx5 -o yaml
apiVersion: velero.io/v2alpha1
kind: DataDownload
metadata:
  creationTimestamp: "2023-08-01T06:08:11Z"
  generateName: dm-13-
  generation: 3
  labels:
    velero.io/async-operation-id: dd-4887e51c-ea4b-4aa5-af10-ee4eebd4e802.14432247-9aba-4b737efa2
    velero.io/restore-name: dm-13
    velero.io/restore-uid: 4887e51c-ea4b-4aa5-af10-ee4eebd4e802
  name: dm-13-n4sx5
  namespace: velero
  ownerReferences:
  - apiVersion: velero.io/v1
    controller: true
    kind: Restore
    name: dm-13
    uid: 4887e51c-ea4b-4aa5-af10-ee4eebd4e802
  resourceVersion: "50089517"
  uid: cbc999bf-bcce-4e1a-8a98-a6a07a0b0811
spec:
  backupStorageLocation: default
  operationTimeout: 4h0m0s
  snapshotID: 205a1973ad2e3a1cf44b03c2e4a5feb7
  sourceNamespace: default
  targetVolume:
    namespace: default
    pv: ""
    pvc: etcd0-pv-claim
status:
  completionTimestamp: "2023-08-01T06:08:11Z"
  message: 'error to start restore expose: error to wait target PVC consumed, default/etcd0-pv-claim:
    error to wait for PVC: error to get storage class test: storageclasses.storage.k8s.io
    "test" not found'
  phase: Failed
  progress: {}
  startTimestamp: "2023-08-01T06:08:11Z"

Vote on this issue!

This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.

  • 👍 for "I would like to see this bug fixed as soon as possible"
  • 👎 for "There are more important bugs to focus on right now"
@ywk253100
Copy link
Contributor Author

Upload the debug bundle, the failed restore is dm-14:
bundle-2023-08-03-08-50-02.tar.gz

@Lyndon-Li
Copy link
Contributor

Lyndon-Li commented Aug 3, 2023

This problem is related to a bug of restore item operation, so we also need to cherry pick it to 1.11

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

No branches or pull requests

3 participants