Need to add SourceVolumeMode
in restore when VSC doesn't have that value
#7522
Labels
Candidate for close
Issues that should be closed and need a team review before closing
has-e2e-tests
Milestone
What steps did you take and what happened:
This issue is related to #7433.
After #7433's related PR, the backup and restore with the external-snapshotter version no older than v0.7.0.
If the CSI-related backup is created with the external-snapshotter version older than v0.7.0, and restoring the backup into the k8s environment version no older than v0.7.0, then the restore should still fail with VolumeSnapshotContent not valid.
What did you expect to happen:
The Velero CSI plugin should modify the VolumeSnapshotContetent in RIA.
If the VolumeSnapshotContent's
Spec.SourceVolumeMode
is nil, the CSI plugin should set the value toFilesystem
.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
):kubectl version
):/etc/os-release
):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.
The text was updated successfully, but these errors were encountered: