-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Not able to restore backup which has PV and PVC's to a cluster in different region [AWS EKS] #4799
Comments
Could you show me the link? I haven't tried it but I think best scenario this only works for certain cases. AFAIK AWS snapshot is region-specific, did you replicate the snapshot from us-east to us-west? And as for the particular error: |
@reasonerjt thanks for you response , yes aws snapshot is region specific , for velero to restore it in other region the snapshots will have to be available in other region. |
@Shapai So this seems an issue you encounter while using a forked repo. Do you think we need to keep this issue open? |
closing due to inactivity. |
Actually there was a PR here #4242 - but it was declined for future architecture reasons or something like that. But there is still no cross regions support with snapshots in AWS or Azure as far as I know. |
What steps did you take and what happened:
[A clear and concise description of what the bug is, and what commands you ran.)
hello we are using velero in DR planning , we are working on strategy of cross region backup restore ,
We are taking backups of workloads, PV and PVC's
We are facing issues while restoring the backup to second region (US-West-2) from (US-EAST-2).
The installation goes through without any issues on both clusters using below command
the backup creation also goes through without any error
While doing the restore on us-west-2 cluster from us-east-2, the restore completes successfully without any errors in velero restore logs
but the zookeeper pods go in pending state
after describing the pods it complains with
after describing the PV, it seems it is trying to create PV in us-east-2, the labels are of us-east-2
whereas it should be us-west-2(Restore cluster)
After all this i read more on limitations of velero on restoring PV's and PVC's in cross region cluster. There are links where people have modified the velero jsons in S3
I tried doing the same, by modifying the velero snapshot json file from s3
aws s3 cp s3://velerobkpxyz/backups/zookeeper/ ./ --recursive
gunzip zookeeper-volumesnapshots.json.gz
sed -i "s/us-east-2/us-west-2/g" zookeeper-volumesnapshots.json
s3 cp zookeeper-volumesnapshots.json.gz s3://velerobkp/backups/zookeeper/zookeeper-volumesnapshots.json.gz
similarly i did the change for zookeeper.tar.gz
After this the backup when described comes up with correct region names for PV's
velero backup describe zookeeper9 --details
But when trying to restore it fails
velero restore create --from-backup zookeeper
it complains with
Not sure why this is happening , is there anything that i have missed .
What did you expect to happen:
The following information will help us better understand what's going on:
If you are using velero v1.7.0+:
Please use
velero debug --backup <backupname> --restore <restorename>
to generate the support bundle, and attach to this issue, more options please refer tovelero debug --help
If you are using earlier versions:
Please provide the output of the following commands (Pasting long output into a GitHub gist or other pastebin is fine.)
kubectl logs deployment/velero -n velero
velero backup describe <backupname>
orkubectl get backup/<backupname> -n velero -o yaml
velero backup logs <backupname>
velero restore describe <restorename>
orkubectl get restore/<restorename> -n velero -o yaml
velero restore logs <restorename>
bundle-2022-03-31-18-04-57.tar.gz
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
velero version
): Version: v1.8.1velero client config get features
):kubectl version
):Client Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.2-13+d2965f0db10712", GitCommit:"d2965f0db1071203c6f5bc662c2827c71fc8b20d", GitTreeState:"clean", BuildDate:"2021-06-26T01:02:11Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.5-eks-bc4871b", GitCommit:"5236faf39f1b7a7dabea8df12726f25608131aa9", GitTreeState:"clean", BuildDate:"2021-10-29T23:32:16Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"linux/amd64"}
/etc/os-release
):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.
The text was updated successfully, but these errors were encountered: