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
If I specify G unit of size in PVC, I get a failure to restore from snapshot.
The reason is that the size requires a larger capacity than the size of the source PV.
$ kubectl describe pvc restore-block
...
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Provisioning 9s (x8 over 2m14s) csi.trident.netapp.io_trident-csi-58f9ffd585-sfmqv_479e54a9-5597-45e0-81ac-23367f8b3edd External provisioner is provisioning volume for claim "default/restore-block"
Warning ProvisioningFailed 9s (x8 over 2m14s) csi.trident.netapp.io_trident-csi-58f9ffd585-sfmqv_479e54a9-5597-45e0-81ac-23367f8b3edd failed to provision volume with StorageClass "ontap-block": error getting handle for DataSource Type VolumeSnapshot by Name snap-block-0: requested volume size 10000000000 is less than the size 10001317888 for the source snapshot snap-block-0
Normal ExternalProvisioning 5s (x10 over 2m14s) persistentvolume-controller waiting for a volume to be created, either by external provisioner "csi.trident.netapp.io" or manually created by system administrator
Environment
Provide accurate information about the environment to help us reproduce the issue.
$ kubectl apply -f mc-test-rw-block.yaml
statefulset.apps/mc-test-block created
$ kubectl get pod,pvc
NAME READY STATUS RESTARTS AGE
pod/mc-test-block-0 1/1 Running 0 30s
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
persistentvolumeclaim/block-mc-test-block-0 Bound pvc-b5512c5d-e180-4ce4-9ab1-e83c8bfc70ea 10Gi RWO ontap-block 30s
$ kubectl apply -f restore-block.yaml
persistentvolumeclaim/restore-block created
pod/restore-check-block created
$ kubectl get pod,pvc
NAME READY STATUS RESTARTS AGE
pod/mc-test-block-0 1/1 Running 0 9m31s
pod/restore-check-block 0/1 Pending 0 68s
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
persistentvolumeclaim/block-mc-test-block-0 Bound pvc-b5512c5d-e180-4ce4-9ab1-e83c8bfc70ea 10Gi RWO ontap-block 9m31s
persistentvolumeclaim/restore-block Pending ontap-block 68s
$ kubectl describe pvc restore-block
...
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Provisioning 9s (x8 over 2m14s) csi.trident.netapp.io_trident-csi-58f9ffd585-sfmqv_479e54a9-5597-45e0-81ac-23367f8b3edd External provisioner is provisioning volume for claim "default/restore-block"
Warning ProvisioningFailed 9s (x8 over 2m14s) csi.trident.netapp.io_trident-csi-58f9ffd585-sfmqv_479e54a9-5597-45e0-81ac-23367f8b3edd failed to provision volume with StorageClass "ontap-block": error getting handle for DataSource Type VolumeSnapshot by Name snap-block-0: requested volume size 10000000000 is less than the size 10001317888 for the source snapshot snap-block-0
Normal ExternalProvisioning 5s (x10 over 2m14s) persistentvolume-controller waiting for a volume to be created, either by external provisioner "csi.trident.netapp.io" or manually created by system administrator
Expected behavior
I want restore to succeed with the same size specification as Source PV.
Additional context
As far as I have checked, this problem does not occur in Gi units.
The text was updated successfully, but these errors were encountered:
We are currently investigating how to best fix this issue. As mentioned in #617 a user can also experience this error when using G instead of Gi when requesting a PVC clone.
Describe the bug
If I specify
G
unit of size in PVC, I get a failure to restore from snapshot.The reason is that the size requires a larger capacity than the size of the source PV.
Environment
Provide accurate information about the environment to help us reproduce the issue.
To Reproduce
10G
)Expected behavior
I want restore to succeed with the same size specification as Source PV.
Additional context
As far as I have checked, this problem does not occur in
Gi
units.The text was updated successfully, but these errors were encountered: