Closed Vrushk84 closed 3 years ago
Can you please tell us how you installed Velero?
Also, please confirm if you have created a volumesnapshotlocation and share the output of
kubectl -n velero get volumesnapshotlocations -oyaml
@ashish-amarnath - Hello Ashish, Please find below the output
kubectl -n velero get volumesnapshotlocations -o yaml apiVersion: v1 items:
Also, I followed steps from the below link to install velero: https://medium.com/egen/backing-up-aks-cluster-with-velero-b1cec289438f
Referred below link "Migrate to new cluster" section to test restoring on new AKS cluster: https://pumpingco.de/blog/backup-and-restore-a-kubernetes-cluster-with-state-using-velero/
The error reported in this issue is that the volume is restored as-is without creating a volume from a snapshot.
Restoring persistent volume as-is because it doesn't have a snapshot and its reclaim policy is not Delete
@Vrushk84 Thanks for providing that info and apologies for the avoidable round-trip.
Looking at these lines
time="2020-08-25T20:35:59Z" level=info msg="Restoring persistent volume as-is because it doesn't have a snapshot and its reclaim policy is not Delete." logSource="pkg/restore/restore.go:940" restore=velero/tenant1backup
time="2020-08-25T20:35:59Z" level=info msg="No snapshot found for persistent volume" logSource="pkg/restore/pv_restorer.go:81" persistentVolume=datadrive restore=velero/tenant1backup
The volumes are restored as-is because there are no volumesnapshots in the backup being restored. This is also confirmed by the fact that the output of the velero backup describe
command does not include any volume snapshots.
Velero-Native Snapshots: <none included>
Here are a couple of things that you might want to inspect:
--snapshot-volumes
flag to velero backup create
command.--use-volume-snapshots
to velero install
command to false.velero plugin get
command.Can you also please share the logs from the backup? You can use velero backup logs elysiumanalytics-aks-tenant1-new
Since it's been a while, I'm closing this issue. @Vrushk84 feel free to reopen this issue if you are still having problems, and with the information asked above.
Maintainer EDI (@ashish-amarnath): Updating markdown formatting
What steps did you take and what happened: Installed velero on existing and new AKS cluster. Took backup of the existing AKS cluster of a particular namespace. New AKS cluster points to the same storage location where backups of existing cluster exists. Tried to restore the backup on the new AKS cluster.
What did you expect to happen: Expected backup to restore on new AKS cluster
The output of the following commands will help us better understand what's going on: (Pasting long output into a GitHub gist or other pastebin is fine.)
velero backup describe
backup yaml
restore yaml
velero restore logs tenant1backup
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Environment:
Velero version: Client: Version: v1.4.2 Git commit: 56a08a4d695d893f0863f697c2f926e27d70c0c5 Server: Version: v1.4.2
Velero features (use
velero client config get features
): features:Kubernetes version (use
kubectl version
): Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.9", GitCommit:"e3808385c7b3a3b86db714d67bdd266dc2b6ab62", GitTreeState:"clean", BuildDate:"2020-07-15T20:50:36Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}Kubernetes installer & version: Created an Azure VM in the same VNet where Azure AKS cluster resides. Installed az and then used command az aks install-cli to install latest kubectl. Connected to cluster using command: az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
Cloud provider or hardware configuration: Microsoft Azure
OS (e.g. from
/etc/os-release
): LinuxVote 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.