Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSI snapshot feature with velero - webhook "snapshot-validation-webhook.snapshot.storage.k8s.io" denied the request: Spec.SourceVolumeMode is immutable #7771

Open
radhika-pr opened this issue May 6, 2024 · 1 comment
Assignees
Labels
Area/CSI Related to Container Storage Interface support Needs info Waiting for information webhook

Comments

@radhika-pr
Copy link

What steps did you take and what happened:
I have a cluster onpremise and the velero is installed with CSISnapshot feature to enable snapshot of Ontap -trident volumes. .

velero create backup test-pol-csi-snap-5 --include-namespaces test-policy --snapshot-move-data

The second time I run the command on same namespace, the backup creation fails with below error.

Operation Error:       error to expose snapshot: error to remove protect from volume snapshot content: error to update VolumeSnapshotContent snapcontent-968909c2-2a7e-4e44-9497-db1c34860b6f: admission webhook "snapshot-validation-webhook.snapshot.storage.k8s.io" denied the request: Spec.SourceVolumeMode is immutable but was changed from Filesystem to nil

What did you expect to happen:
Backup created without any issues.

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
bundle-2024-05-06-12-48-44.tar.gz

Environment:

  • Velero version (use velero version): 1.13
  • Velero features (use velero client config get features): EnableCSI
  • Kubernetes version (use kubectl version): v1.28.3
  • Kubernetes installer & version: Kubeadm v1.28.3
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release): Redhat 8
  • velero-plugin-for-csi:v0.7.0
  • External snapshotter version 7.0.2 (helm 2.2.2)

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"
@blackpiglet
Copy link
Contributor

blackpiglet commented May 6, 2024

This is already fixed.
Please try with v1.13.2.

The fixed PR is #7577.

@qiuming-best qiuming-best added webhook Area/CSI Related to Container Storage Interface support Needs info Waiting for information labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/CSI Related to Container Storage Interface support Needs info Waiting for information webhook
Projects
None yet
Development

No branches or pull requests

3 participants