Creating a volume snapshot with Trident errors on either the snapshot or restore size
Applies to
Trident for Kubernetes and Openshift 21.07.0 and 21.07.1
Issue
On a PV using an ontap-nas backend with a snapshot reserve set, creating a Snapshot from Kubernetes/Openshift causes the following error:
In version 21.07.0:
csi.trident.netapp.io_trident-csi-<UUID> failed to provision volume with StorageClass "storage-class-nas-snap-reserve":
error getting handle for DataSource Type VolumeSnapshot by Name <SNAP_NAME>:
requested volume size 10737418240 is less than the size 17895698432 for the source snapshot <SNAP_NAME>
In version 21.07.1:
Failed to check and update snapshot content: error updating status for volume snapshot content snapcontent-<UUID>:
snapshot controller failed to update snapcontent-<UUID> on API server:
VolumeSnapshotContent.snapshot.storage.k8s.io "snapcontent-<UUID>" is invalid: status.restoreSize: Invalid value: -1744896:
status.restoreSize in body should be greater than or equal to 0