You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original issue is #8444.
The backed-up namespace contains a VolumeSnapshot. The VolumeSnapshot is not in ReadyToUse phase. As a result, its corresponding VolumeSnapshotContent doesn't have the snapshot handle in its status.
Create a backup including the VolumeSnapshot's hosting namespace.
Restore the backup to another namespace.
The restore fails with errors:
Errors:
Velero: <none>
Cluster: <none>
Namespaces:
vaicloud-dev: error preparing volumesnapshots.snapshot.storage.k8s.io/vaicloud-dev/cephfs-pvc-snapshot: rpc error: code = Unknown desc = VolumeSnapshot vaicloud-dev/cephfs-pvc-snapshot does not have a velero.io/csi-volumesnapshot-handle annotation
The reason is the CSI VolumeSnapshot RestoreItemAction expects the VolumeSnapshot should have a snapshot handle in its annotation:
"VolumeSnapshot %s/%s does not have a %s annotation",
vs.Namespace,
vs.Name,
velerov1api.VolumeSnapshotHandleAnnotation,
)
}
What did you expect to happen:
The backup should not include the VolumeSnapshots not created by the backup itself.
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
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> or kubectl get backup/<backupname> -n velero -o yaml
velero backup logs <backupname>
velero restore describe <restorename> or kubectl get restore/<restorename> -n velero -o yaml
velero restore logs <restorename>
Anything else you would like to add:
Environment:
Velero version (use velero version): 1.15.0
Velero features (use velero client config get features): EnableCSI
Kubernetes version (use kubectl version): 1.29.x
Kubernetes installer & version: VKS
Cloud provider or hardware configuration: VKS
OS (e.g. from /etc/os-release): Photon
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.
👍 for "I would like to see this bug fixed as soon as possible"
👎 for "There are more important bugs to focus on right now"
The text was updated successfully, but these errors were encountered:
What steps did you take and what happened:
The original issue is #8444.
The backed-up namespace contains a VolumeSnapshot. The VolumeSnapshot is not in
ReadyToUse
phase. As a result, its corresponding VolumeSnapshotContent doesn't have the snapshot handle in its status.Create a backup including the VolumeSnapshot's hosting namespace.
Restore the backup to another namespace.
The restore fails with errors:
The reason is the CSI VolumeSnapshot RestoreItemAction expects the VolumeSnapshot should have a snapshot handle in its annotation:
velero/pkg/restore/actions/csi/volumesnapshot_action.go
Lines 102 to 110 in 40a95aa
What did you expect to happen:
The backup should not include the VolumeSnapshots not created by the backup itself.
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
): 1.15.0velero client config get features
): EnableCSIkubectl version
): 1.29.x/etc/os-release
): PhotonVote 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: