在快照或还原大小出现 Trident 错误的情况下创建卷快照
适用场景
适用于 Kubernetes 和 OpenShift 21.07.0 和 21.07.1 的 Trident
问题描述
在使用设置了 Snapshot 预留的 ONTAP NAS 后端的 PV 上,从 Kubernetes 或 OpenShift 创建 Snapshot 会导致以下错误:
在 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>
在 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