You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to this behavior several upstream e2e tests are failing because they use volume sizes < 100Gi and assume snapshot size the be the same as origin PVC size. Then the origin PVC size is requested while restoring a (new) PVC from snapshot and test fails because the restore size is less than 100Gi.
Example test provisioning should provision correct filesystem size when restoring snapshot to larger size pvc:
0802 15:58:12.055378 849 dump.go:53] At 2024-08-02 15:48:10 +0000 UTC - event for pvc-xtrqj: {file.csi.azure.com_azure-file-csi-driver-controller-f4c5f8c6c-qqssg_81fa4cd0-db30-4147-90ec-5a3261ab93dc } ProvisioningFailed: failed to provision volume with StorageClass "e2e-provisioning-7878-e2e-scjjwcl": error getting handle for DataSource Type VolumeSnapshot by Name snapshot-plpg4: requested volume size 6442450944 is less than the size 107374182400 for the source snapshot snapshot-plpg4
The text was updated successfully, but these errors were encountered:
Indeed, but I don't think this can be set by the user. But even if it can and I missed it, I don't understand the relation between quota (=max share size) and a size required to restore a snapshot, which is what the CSI response expects.
For Azure File sets snapshot size to 100Gi in
csi.CreateSnapshotResponse
without checking account type/tier:https://github.com/openshift/azure-file-csi-driver/blob/2017ebe042618aab18392692e9a19413f586a19b/pkg/azurefile/controllerserver.go#L921
Azure Disk sets snapshot size correctly in the response based on the actual size:
https://github.com/kubernetes-sigs/azuredisk-csi-driver/blob/96bdedac083ca6df9470293d4498119047fe1bb8/pkg/azureutils/azure_snapshot_utils.go#L51
Example in documentation uses 100Gi volumes and premium storage class, in this case everything works fine: https://github.com/kubernetes-sigs/azurefile-csi-driver/tree/master/deploy/example/snapshot#azure-file-snapshot-feature
However this size is not correct when using standard account type and it should be possible to create snapshots of smaller size.
Driver log (snapshot creation):
Origin PVC is 1Gi but snapshot is 100Gi:
StorageClass is set to use non-premium storage account:
NOTE:
Due to this behavior several upstream e2e tests are failing because they use volume sizes < 100Gi and assume snapshot size the be the same as origin PVC size. Then the origin PVC size is requested while restoring a (new) PVC from snapshot and test fails because the restore size is less than 100Gi.
Example test
provisioning should provision correct filesystem size when restoring snapshot to larger size pvc
:The text was updated successfully, but these errors were encountered: