vmware-tanzu / velero

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

Migration between clusters not working as expected: snapshot not bound #7832

Closed bernardgut closed 3 months ago

bernardgut commented 4 months ago

What steps did you take and what happened:

The workload to be successfully created and bound to the migrated pvc/pv

The following information will help us better understand what's going on:

bundle-2024-05-27-11-45-47.tar.gz

Anything else you would like to add:

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.

bernardgut commented 4 months ago

So as it turns out : in the docs at https://velero.io/docs/main/migration-case/ some information is missing. If you want to migrate data between clusters you need to install velero using : --use-node-agent when installing velero then creating the backup with --snapshot-move-data. Once you add those, the migration from on cluster with a StorageClass to another with another StorageClass worked fine.

Since that information was not part of the logs on cluster migration, I wasted a couple of days. You can see the detailed process in this page: ~https://velero.io/docs/main/csi/~ https://velero.io/docs/main/csi-snapshot-data-movement/.

blackpiglet commented 4 months ago

Sorry for your inconvenience. I will create a PR to modify the document.

blackpiglet commented 3 months ago

Close as the document PR already merged.