vmware-tanzu / velero

Backup and migrate Kubernetes applications and their persistent volumes
https://velero.io
Apache License 2.0
8.79k stars 1.41k forks source link

Backup partially fails for postgres-helm (ArgoCD) with Velero - VolumeSnapshot not found #8346

Closed dfourakis closed 4 weeks ago

dfourakis commented 1 month ago

Issue Description: When running a Velero backup for a PostgreSQL Helm deployment via ArgoCD, the backup process results in a PartiallyFailed status. The error indicates that a VolumeSnapshot cannot be found.

Deploy PostgreSQL using Helm via ArgoCD.

Commands:

The error:

Velero: name: /postgres-postgresql-0 message: /Error backing up item error: /error executing custom action (groupResource=volumesnapshots.snapshot.storage.k8s.io, namespace=postgres-helm, name=velero-data-postgres-postgresql-0-qskk9): rpc error: code = Unknown desc = failed to get volumesnapshot postgres-helm/velero-data-postgres-postgresql-0-qskk9: volumesnapshots.snapshot.storage.k8s.io "velero-data-postgres-postgresql-0-qskk9" not found

About Snapshots:

kubectl get volumesnapshot -A
No resources found
kubectl get volumesnapshotcontents -A
NAME                                               READYTOUSE   RESTORESIZE   DELETIONPOLICY   DRIVER             VOLUMESNAPSHOTCLASS   VOLUMESNAPSHOT                              VOLUMESNAPSHOTNAMESPACE   AGE
snapcontent-0e43a509-d531-4f32-a355-0c807dee03c5   true         1073741824    Retain           csi.scaleway.com   scw-snapshot-retain   velero-data-postgres-postgresql-0-fptb8     postgres-helm             3h21m
snapcontent-10f338f0-61aa-4fd1-b80d-c544849f2fc1   true         1073741824    Retain           csi.scaleway.com   scw-snapshot-retain   velero-data-postgres-postgresql-0-z728v     postgres-helm             3h15m
kubectl get volumesnapshotclass
NAME                  DRIVER             DELETIONPOLICY   AGE
scw-snapshot          csi.scaleway.com   Delete           13d
scw-snapshot-retain   csi.scaleway.com   Retain           13d

Can someone help resolve the error?


Environment:

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.

weshayutin commented 1 month ago

@shubham-pampattiwar FYI

kaovilai commented 1 month ago

duplicate of https://github.com/vmware-tanzu/velero/issues/7905, please follow there

reasonerjt commented 4 weeks ago

Thanks @kaovilai I'm closing this one as a dup.