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
Describe the bug
I want to clone my existing application for test purpose.
I'm following below
Create snapshot of existing PVC
Create PVC from snapshots
Start clone application using PVC from step 2
At step 2, I see below error and PVC creation fails.
failed to provision volume with StorageClass "ntap-trident": error getting handle for DataSource Type VolumeSnapshot by Name snap001: requested volume size 1000000000 is less than the size 1000001536 for the source snapshot snap001
In both cases, size is same 1G, still PVC creation fails with requested volume size 1000000000 is less than the size 1000001536 for the source snapshot snap001
Environment
Trident version: 21.04.0
Trident installation flags used: No custom flags used.
Container runtime: Docker 1.13.1
Kubernetes version: v1.18.20
Kubernetes orchestrator: Vanilla Kubernetes
Kubernetes enabled feature gates: NA
OS: CentOS Linux release 7.7.1908
NetApp backend types: ONTAP
Other:
To Reproduce
Steps to reproduce the behavior:
Run below commands using attached yamls.
Please edit 01-pvc-create.yaml 03-snapshot.yaml 04-pvc-from-snapshot.yaml files with appropriate storageclass and volumesnapshotclass.
Even though you are creating a clone in your steps to reproduce this issue this is a duplicate of #550. The cloning workflow creates a snapshot which is then used to create the new PV. We are currently investigating how to best fix this issue.
Thanks for the providing additional information on this issue.
Describe the bug
I want to clone my existing application for test purpose.
I'm following below
At step 2, I see below error and PVC creation fails.
failed to provision volume with StorageClass "ntap-trident": error getting handle for DataSource Type VolumeSnapshot by Name snap001: requested volume size 1000000000 is less than the size 1000001536 for the source snapshot snap001
Original PVC Snippet:
Snippet PVC from Snapshot:
In both cases, size is same 1G, still PVC creation fails with requested volume size 1000000000 is less than the size 1000001536 for the source snapshot snap001
Environment
To Reproduce
Steps to reproduce the behavior:
Run below commands using attached yamls.
Please edit 01-pvc-create.yaml 03-snapshot.yaml 04-pvc-from-snapshot.yaml files with appropriate storageclass and volumesnapshotclass.
kubectl create -f 00-create-namespace.yaml
kubectl create -f 01-pvc-create.yaml
kubectl create -f 02-pod-create.yam
kubectl create -f 03-snapshot.yaml
kubectl create -f 04-pvc-from-snapshot.yaml
kubectl create -f 05-pod-clone.yaml
Expected behavior
A clear and concise description of what you expected to happen.
We should be able to create PVC from Volume Snapshot.
Additional context
Add any other context about the problem here.
00-create-namespace.yaml.txt
01-pvc-create.yaml.txt
02-pod-create.yaml.txt
03-snapshot.yaml.txt
04-pvc-from-snapshot.yaml.txt
05-pod-clone.yaml.txt
The text was updated successfully, but these errors were encountered: