CSI snapshot feature with velero - webhook "snapshot-validation-webhook.snapshot.storage.k8s.io" denied the request: Spec.SourceVolumeMode is immutable #7771
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. .
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 --helpbundle-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.
:+1: for "I would like to see this bug fixed as soon as possible"
:-1: for "There are more important bugs to focus on right now"
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.
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 tovelero debug --help
bundle-2024-05-06-12-48-44.tar.gzEnvironment:
velero version
): 1.13velero client config get features
): EnableCSIkubectl version
): v1.28.3/etc/os-release
): Redhat 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.