vmware-tanzu / helm-charts

Contains Helm charts for Kubernetes related open source tools
https://vmware-tanzu.github.io/helm-charts/
Apache License 2.0
250 stars 362 forks source link

Velero can’t send the snapshots of longhorn disks to vmware object storage #532

Open burhan-b opened 10 months ago

burhan-b commented 10 months ago

What steps did you take and what happened:

Deployed: https://github.com/kubernetes-csi/external-snapshotter/blob/master/client/config/crd/kustomization.yaml https://github.com/kubernetes-csi/external-snapshotter/blob/master/deploy/kubernetes/csi-snapshotter/kustomization.yaml https://github.com/kubernetes-csi/external-snapshotter/blob/master/deploy/kubernetes/snapshot-controller/kustomization.yaml

Then installed helm chart: helm repo add vmware-tanzu https://vmware-tanzu.github.io/helm-charts helm install velero vmware-tanzu/velero --namespace velero-test -f values-5.2.0.yaml

I tried to test it with a 1 GB volume which is mounted to test-ss statefulset nginx app. But I’d like to take all volumes’ snapshots in mongodb namespace.

Status: Velero sends metadata to vmware object storage but can’t send snapshots which I specified for a namespace in schedules.

What did you expect to happen: 1) Send all volumes’ snapshots in mongodb namespace

Next Goals 1) Take incremental backups everyday (metadata + snapshots) 2) Take full backups every week (metadata + snapshots)

The output of the following commands will help us better understand what's going on: My values file and velero pod outputs (loglevel info and warning) are in https://gist.github.com/burhan-b/515c452c16cc07afd13086fb88b41123

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment:

jenting commented 9 months ago

Have you tried other backup target such as MinIO?

burhan-b commented 9 months ago

No, I've not tried MiniO. I've created a python script which uses longhorn api to trigger the backup&snapshot process. I've used velero to take and send metada.

jenting commented 8 months ago

I've created a python script which uses longhorn api to trigger the backup&snapshot process.

So, you aren't using Velero + Velero CSI plugin + Velero schedule CRs to take snapshot/restore the volume data?

burhan-b commented 7 months ago

Right. I couldn't use "take snapshot/restore the volume data" property with velero components.