Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot create PVC with datasource=PersistentVolumeClaim when clone PVC and source PVC storageclass name is same #308

Closed
Madhu-1 opened this issue Jul 1, 2019 · 5 comments · Fixed by #309

Comments

@Madhu-1
Copy link
Contributor

Madhu-1 commented Jul 1, 2019

logs:

/rbd-pvc-restore" I0701 12:39:00.779025 1 controller.go:979] Final error received, removing PVC 1e98da4d-49d2-41b2-9c16-b9a7784caa38 from claims in progress W0701 12:39:00.779060 1 controller.go:886] Retrying syncing claim "1e98da4d-49d2-41b2-9c16-b9a7784caa38", failure 3 E0701 12:39:00.779093 1 controller.go:908] error syncing claim "1e98da4d-49d2-41b2-9c16-b9a7784caa38": failed to provision volume with StorageClass "csi-rbd-sc": error getting handle for DataSource Type PersistentVolumeClaim by Name rbd-pvc: the source PVC and destination PVCs must be in the same storage class for cloning. Source is in 0xc00049a470, but new PVC is in 0xc000516bb0

CC @j-griffith

Madhu-1 added a commit to Madhu-1/external-provisioner that referenced this issue Jul 1, 2019
Fixes: kubernetes-csi#308

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
Madhu-1 added a commit to Madhu-1/external-provisioner that referenced this issue Jul 1, 2019
@j-griffith
Copy link
Contributor

Cloning across storage classes is intentionally unsupported, I've added a note to the csi docs to clarify a bit and make sure this is clear. kubernetes-csi/docs#181

@Madhu-1
Copy link
Contributor Author

Madhu-1 commented Jul 9, 2019

@j-griffith the issue I faced was cloning within the same storageclass

@j-griffith
Copy link
Contributor

@Madhu-1 Could you provide some detail in the bug report; you have the logs here which is great, but that just says source/destination sc's differ. There's now way I could have known that you were using the same sc there. So it's a dereference issue it looks like?

@Madhu-1 Madhu-1 changed the title failed to create PVC with datasource=PersistentVolumeClaim cannot create PVC with datasource=PersistentVolumeClaim when clone PVC and source PVC storageclass name is same Jul 9, 2019
@Madhu-1
Copy link
Contributor Author

Madhu-1 commented Jul 9, 2019

@j-griffith yes the issue is with storageclass name comparison

@zhucan
Copy link
Member

zhucan commented Oct 23, 2019

@j-griffith Are we considering supporting clones that boast storage pools? or cloning across storage classes

kbsonlong pushed a commit to kbsonlong/external-provisioner that referenced this issue Dec 29, 2023
…cess-modes

Map PV access modes to CSI access modes based on driver capability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants