This issue was detected when running CSI E2E testsuite InitProvisioningTestSuite with test case should provision storage with pvc data source in parallel.
To reproduce with k8s e2e framework:
run test suite InitProvisioningTestSuite
To reproduce without k8s e2e framework:
Provision a PVC volume-org with volume mode block.
mount volume volume-org on a pod, as a block device.
in the pod, write some content to this block device.
delete the pod, but leave the PVC untouched.
clone this PVC/volume with 5 replicas at the same time, as volume-0 through volume-4.
mount each clone to a pod, as block device,
verify if all clones have the correct content written before.
Actual Result:
Only the first volume who completed the cloning has the correct content. Other 4 volumes don't have the content. Therefore, test failed.
This issue was detected when running CSI E2E testsuite
InitProvisioningTestSuite
with test caseshould provision storage with pvc data source in parallel
.To reproduce with k8s e2e framework:
InitProvisioningTestSuite
To reproduce without k8s e2e framework:
volume-org
with volume modeblock
.volume-org
on a pod, as a block device.volume-0
throughvolume-4
.Actual Result:
Expected Result:
Test log please see clone_volume_failed.log
Neonsan CSI controller log:
Notice the above
SYNC_FAILED
error, indicated the target volume was not synced with the source volume.Please investigate why the clone failed, thanks.
Full logs uploaded.
clone_volume_failed.log csi-neonsan-controller-94f7df77f-tqz6x_kube-system_csi-neonsan-fe8a350851ce554ba45100c4c3ed1fa00974da6de0c7f3d353c92e6d9a5fce33.log