Velero selects wrong snapshotclass for CSI backed PVC's when multiple VolumeSnapshotClass resources available #3388
Unanswered
togoschi
asked this question in
Community support Q&A
Replies: 1 comment 2 replies
-
Would you add log files please for a backup that is failing. The output of the following commands will help us better understand what's going on:
Anything else you would like to add: Environment:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We've deployed the v1beta1 snapshot feature on kubernetes and testing Velero's CSI feature for PVC backup's. Basically it works but with multiple SnapshotClasses available Velero doesn't pick up the right snapshotClass for the corresponding StorageClass. It seems that behaviour is random though the comment https://github.com/vmware-tanzu/velero-plugin-for-csi/blob/v0.1.2/internal/util/util.go#L127 indicates that's already implemented. Is it possible that we miss any annotation/parameter to select explicitly the VolumeSnapshotClass for a backup resource? In addition changing the snapshot.storage.kubernetes.io/is-default-class annotation of the volumeSnapshotClass definition has no impact on this malformed behaviour.
Our test environment runs with
Each VolumeSnapshotClass uses the same provisioner and is illustated by the following example definition:
Beta Was this translation helpful? Give feedback.
All reactions