backup storage location could not be find in Rancher / RKE cluster #3271
Replies: 4 comments 3 replies
-
You could find the output of command below just here |
Beta Was this translation helpful? Give feedback.
-
It looks like the VolumeSnapshotLocation may not be configuration correctly per https://github.com/openebs/velero-plugin#configuring-snapshot-location. @mynktl can you please confirm? |
Beta Was this translation helpful? Give feedback.
-
Hey @nrb
And for the backup
|
Beta Was this translation helpful? Give feedback.
-
Re-checking the error messages, I see that the server is trying to patch 2 backup locations: |
Beta Was this translation helpful? Give feedback.
-
What steps did you take and what happened:
[A clear and concise description of what the bug is, and what commands you ran.)
hello all
I setup a RKE kubernetes cluster with these configuration
rancher/rancher:v2.3.1,
RKE version: v0.3.1,
openebs:1.7.0,
kubectl version: Client Version: v1.17.0,Server Version: v1.15.5
velero:velero-2.14.4,
openebs/velero-plugin:2.4.1,
velero-client version: v1.5.2,
After many corrections and research on forum i still get issues in that velero backup with openebs.
My velero values for the helm installation is
i launch a backup through this command
velero backup create localbackup --include-namespaces=default --snapshot-volumes --volume-snapshot-locations=default
The velero client for velero backup-location display two output: default and backup.
In my velero values yaml file as you can see i used backup as the name of backupStorageLocation and after it for debugging i create the default one with velero backup-location create default --provider aws --bucket velero --config region=minio,s3ForcePathStyle=true,s3Url=http://192.168.10.8:9000
But i still got these error on velero logs like the backup location do not exist while i can see them with velero client and with
kubectl get backupstoragelocations -n velero
time="2020-12-28T21:32:38Z" level=info msg="Executing RemapCRDVersionAction" backup=velero/backup281220 cmd=/velero logSource="pkg/backup/remap_crd_version_action.go:58" pluginName=velero
time="2020-12-28T21:32:38Z" level=info msg="Exiting RemapCRDVersionAction, CRD is not v1" backup=velero/backup281220 cmd=/velero logSource="pkg/backup/remap_crd_version_action.go:67" pluginName=velero
time="2020-12-28T21:32:38Z" level=info msg="Backed up a total of 1730 items" backup=velero/backup281220 logSource="pkg/backup/backup.go:443" progress=
time="2020-12-28T21:32:38Z" level=info msg="Setting up backup store to persist the backup" backup=velero/backup281220 logSource="pkg/controller/backup_controller.go:632"
time="2020-12-28T21:32:40Z" level=info msg="Backup completed" controller=backup logSource="pkg/controller/backup_controller.go:642"
time="2020-12-28T21:32:53Z" level=info msg="Processing new ServerStatusRequest" controller=serverstatusrequest logSource="pkg/controller/server_status_request_controller.go:86" phase= serverStatusRequest=velero/velero-cli-6lsz2
time="2020-12-28T21:32:53Z" level=error msg="Unable to update the request" controller=serverstatusrequest error="the server could not find the requested resource (patch serverstatusrequests.velero.io velero-cli-6lsz2)" error.file="/go/src/github.com/vmware-tanzu/velero/internal/velero/serverstatusrequest.go:49" error.function="github.com/vmware-tanzu/velero/internal/velero.(*ServerStatus).PatchStatusProcessed" logSource="pkg/controller/server_status_request_controller.go:89" phase= serverStatusRequest=velero/velero-cli-6lsz2
time="2020-12-28T21:32:54Z" level=info msg="Checking for existing backup locations ready to be verified; there needs to be at least 1 backup location available" controller=backupstoragelocation logSource="pkg/controller/backupstoragelocation_controller.go:58"
time="2020-12-28T21:32:54Z" level=error msg="Error updating backup location phase" backupstoragelocation=backup controller=backupstoragelocation error="the server could not find the requested resource (patch backupstoragelocations.velero.io backup)" logSource="pkg/controller/backupstoragelocation_controller.go:115"
time="2020-12-28T21:32:54Z" level=error msg="Error updating backup location phase" backupstoragelocation=default controller=backupstoragelocation error="the server could not find the requested resource (patch backupstoragelocations.velero.io default)" logSource="pkg/controller/backupstoragelocation_controller.go:115"
time="2020-12-28T21:32:59Z" level=error msg="Error patching backup location's last-synced time" backupLocation=default controller=backup-sync error="the server could not find the requested resource (patch backupstoragelocations.velero.io default)" error.file="/go/src/github.com/vmware-tanzu/velero/pkg/controller/backup_sync_controller.go:311" error.function="github.com/vmware-tanzu/velero/pkg/controller.(*backupSyncController).run" logSource="pkg/controller/backup_sync_controller.go:311"
time="2020-12-28T21:32:59Z" level=error msg="Error patching backup location's last-synced time" backupLocation=backup controller=backup-sync error="the server could not find the requested resource (patch backupstoragelocations.velero.io backup)" error.file="/go/src/github.com/vmware-tanzu/velero/pkg/controller/backup_sync_controller.go:311" error.function="github.com/vmware-tanzu/velero/pkg/controller.(*backupSyncController).run" logSource="pkg/controller/backup_sync_controller.go:311"
time="2020-12-28T21:33:29Z" level=error msg="Error patching backup location's last-synced time" backupLocation=default controller=backup-sync error="the server could not find the requested resource (patch backupstoragelocations.velero.io default)" error.file="/go/src/github.com/vmware-tanzu/velero/pkg/controller/backup_sync_controller.go:311" error.function="github.com/vmware-tanzu/velero/pkg/controller.(*backupSyncController).run" logSource="pkg/controller/backup_sync_controller.go:311"
time="2020-12-28T21:33:29Z" level=error msg="Error patching backup location's last-synced time" backupLocation=backup controller=backup-sync error="the server could not find the requested resource (patch backupstoragelocations.velero.io backup)" error.file="/go/src/github.com/vmware-tanzu/velero/pkg/controller/backup_sync_controller.go:311" error.function="github.com/vmware-tanzu/velero/pkg/controller.(*backupSyncController).run" logSource="pkg/controller/backup_sync_controller.go:311"
And when i look the backup i can see that it dont backup volume (files) but seems to backup only some json files of resources
What did you expect to happen:
I expected the backup to proceed and complete
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.)
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>
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
velero version
): 2.4.1, velero-client version: v1.5.2,velero client config get features
):kubectl version
): Client Version: v1.17.0,Server Version: v1.15.5/etc/os-release
): centos 7 for nodes and rancheros for rke and velero cliVote 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.
Beta Was this translation helpful? Give feedback.
All reactions