-
Notifications
You must be signed in to change notification settings - Fork 554
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
rbd creating multiple images in the backend for single PVC #426
Comments
@humblec @ShyamsundarR PTAL |
samething is happening with snapshot also log is from different volume
|
@Madhu-1 first thing to check here is the number of attempts the CSI driver made to create the volume in the backend. The volume create call is idempotent, still we have to check that. If its something wrong in the backend ( by logging in the tool box pod), it should be easily reproducible by creating a volume in the backend manually. If its CSI code, we have to track down from which commit this behaves differently or wrongly. |
@dillaman Any thoughts here while we continue our analysis from CSI side? |
Is it that the rbd image is not getting deleted and staying behind ? OR Is it that for a single pvc request, more than one rbd volume is getting created ? Thanks |
@nehaberry yeah correct let's wait till we fix #426 |
The issue is that once we moved to a The Some logs from the 3 replicas processing the same request: (notice the Volume request name being common and sent to all 3 instances)
logs csi-rbdplugin-provisioner-7c48d7c6c7-5k9cl -c csi-rbdplugin
logs csi-rbdplugin-provisioner-7c48d7c6c7-c5dv2 -c csi-rbdplugin
logs csi-rbdplugin-provisioner-7c48d7c6c7-fp78v -c csi-rbdplugin
|
I am reminded of slides 44-48 in the Storage 101 [1] talk at Kubecon Barcelona this year. [1] https://static.sched.com/hosted_files/kccnceu19/cf/slides.pdf |
Looks like this is achieved using the leader election feature in the csi-provisioner side car, BUT in order for this to trigger we need the following additions/corrections to the file: deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml This line needs an opening quotation mark (IOW, has a typo):
Following the above line in the same file we need to add Finally, even with the above 2 changes, my pods are stuck in electing a leader with the following error from the csi-provisioner container:
This could be due to me running kubernetes v1.13.5 or a problem with the RBAC for leases or some more configuration needed before leases can work. @Madhu-1 request you take a look? |
@Madhu-1 after reverting the patch, things are working as expected , Isnt it ? |
yes closing this one |
[release-4.18]: cephfs: log clone progress
Describe the bug
rbd creating multiple images in the backend for single PVC
Environment details
Steps to reproduce
Actual results
rbd is creating multiple images in the backend for single PVC
Describe what happened
create and deleted an rbd PVC (dint see any issue) once I recreated an rbd PVC am seeing 3 rbd images in the backend
Expected behavior
rbd ls should show a single image for PVC
A clear and concise description of what you expected to happen.
Logs
PVC output
rbd ls output
after deleting the PVC am seeing 2 extra images in backend
The text was updated successfully, but these errors were encountered: