Open dove-young opened 5 months ago
debug file
<error getting backup volume info: DownloadRequest.velero.io "instana-backup-vol-2-f3d79a6e-db2f-4bba-91af-19ca40848dd5" is invalid: spec.target.kind: Unsupported value: "BackupVolumeInfos": supported values: "BackupLog", "BackupContents", "BackupVolumeSnapshots", "BackupItemOperations", "BackupResourceList", "BackupResults", "RestoreLog", "RestoreResults", "RestoreResourceList", "RestoreItemOperations", "CSIBackupVolumeSnapshots", "CSIBackupVolumeSnapshotContents">
You might have an outdated CRD in the cluster. Try reinstalling.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. If a Velero team member has requested log or more information, please provide the output of the shared commands.
Hi, is there a resolution for this? I have similar issue on restore stuck in progress state:
NAME BACKUP STATUS STARTED COMPLETED ERRORS WARNINGS CREATED SELECTOR
restore-nginx-example-ns-backup-w-pvc-1 nginx-example-ns-backup-w-pvc-3 InProgress 2024-06-28 13:03:14 +0000 UTC <nil> 0 0 2024-06-28 13:03:14 +0000 UTC <none>
Restore pod with pvc log says:
restore-wait Found the done file /restores/nginx-logs/.velero/f0d60df1-b391-44ee-8354-6765ecb32930 restore-wait All restic restores are done restore-wait Deleted /restores/nginx-logs/.veleroDone cleanup .velero folder
nginx /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
nginx /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx /docker-entrypoint.sh: Configuration complete; ready for start up
And the restore says for the pvc:
kopia Restores:
Completed:
nginx-example/nginx-deployment-7f5b87dc57-s5vcl: nginx-logs
<error getting restore volume info: DownloadRequest.velero.io "restore-nginx-example-ns-backup-w-pvc-1-149fa96d-8e6d-4ce2-9aba-0e69c1d24c82" is invalid: spec.target.kind: Unsupported value: "RestoreVolumeInfo": supported values: "BackupLog", "BackupContents", "BackupVolumeSnapshots", "BackupItemOperations", "BackupResourceList", "BackupResults", "RestoreLog", "RestoreResults", "RestoreResourceList", "RestoreItemOperations", "CSIBackupVolumeSnapshots", "CSIBackupVolumeSnapshotContents", "BackupVolumeInfos">
One more thing, maybe can be also related is the in the same Kubernetes cluster i have also a portwrox instance which might use the same CRDs as Velero.
@vapetri Your CRDs are out-of-date. "RestoreVolumeInfo" was added recently (I think it's new as of 1.14), so if that's invalid, it means that you have the Velero CRDs installed from a previous installation. Velero won't work if the CRDs in-cluster don't match the CRDs for the version of Velero you're using. If this same kubernetes cluster has Velero installed in two different namespaces, then they must both be the same version, since CRDs are cluster-scoped.
@sseago Hello Scott and thank you for the first reply. I have used the latest velero cli to install and uninstall as i did many times that.
root@velero-admin:~# velero version
Client:
Version: v1.14.0
Git commit: 2fc6300f2239f250b40b0488c35feae59520f2d3
Server:
Version: v1.14.0
root@velero-admin:~#
i will uninstall again and ensure all crds are deleted. There is only one velero instance running on my kubernetes cluster.
velero uninstall
You are about to uninstall Velero.
Are you sure you want to continue (Y/N)? y
Waiting for resource with attached finalizer to be deleted
.
Waiting for velero namespace "velero" to be deleted
.....................................................................
Indeed i had to run
kubectl delete crds -l component=velero
to be sure that all crds were uninstalled. After reinstall of velero i managed to restore the nginx-example.
Thank you again,
Author, have you managed to work out a backup solution for Instana on OCP? How can I contact you? I have a few questions. I am currently dealing with this topic myself.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. If a Velero team member has requested log or more information, please provide the output of the shared commands.
What steps did you take and what happened:
I installed velero according to this doc https://velero.io/docs/v1.13/file-system-backup/#how-velero-integrates-with-restic
Then created backup-locations
Then I created a backup with volumes
Then I checked. backup, I found error
error looks like this
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>
Anything else you would like to add:
Environment:
velero version
):velero client config get features
):features: EnableCSI
kubectl version
):OCP 4.15.3
/etc/os-release
): RHEL 8.8Vote 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.