vmware-tanzu / velero

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

Velero Restore ERROR MissingParameter #7826

Open anass-elbouanani opened 1 month ago

anass-elbouanani commented 1 month ago

What steps did you take and what happened:

After a successful backup, I tried to restore it, but I got an error during EC2 create volume step, with the following error: level=error msg="Cluster resource restore error: error executing PVAction for persistentvolumes/ebs-pv: rpc error: code = Unknown desc = operation error EC2: CreateVolume, https response error StatusCode: 400, RequestID: 0dade47f-1b38-422c-8f87-e35dcd81a8e1, api error MissingParameter: The request must contain the parameter zone" logSource="pkg/controller/restore_controller.go:576" restore=velero/app-restore

What did you expect to happen: I want to restore successfully from a velero backup.

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 to velero debug --help velero debug --backup app-backup --restore app-restore 2024/05/24 20:19:41 Collecting velero resources in namespace: velero 2024/05/24 20:19:43 Collecting velero deployment logs in namespace: velero 2024/05/24 20:19:43 Collecting log and information for backup: app-backup 2024/05/24 20:19:46 Collecting log and information for restore: app-restore 2024/05/24 20:19:49 Generated debug information bundle: /home/ubuntu/bundle-2024-05-24-20-19-40.tar.gz

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.)

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.