-
Notifications
You must be signed in to change notification settings - Fork 550
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
ceph-csi-rbd provisioner tries to handle delete for rbd-provisioner pvs creating stucked pvs #4488
Comments
@dragoangel if you are planning to use 2 csi drivers you need to keep the csi driver names unique. may i know what is the reason to deploy 2 csi drivers in same cluster? |
one is old - rbd-provisioner, and I need to keep it to handle existing old pvcs, and ceph-csi is new to handle all in new way |
I don't understand why it should try touch pvcs that it doesn't belong to |
If I add cluster to csi-rbd provisioner as md5 and give perms to my csi user - it's deletes pvcs fine |
Okay, not obvious, but solution is:
and create\delete\etc works out of the box |
this is possible only when you use different csi driver names, if you want to use the same driver names for both above the is the solution you have provided. |
provisioner for old one is |
i think its happening due to the migration https://github.com/ceph/ceph-csi/blob/devel/docs/intree-migrate.md#in-tree-storage-plugin-to-csi-driver-migration |
Okay, I think so, then this not a bug, but feature. Not obvious one, but still 😁. I think I can close it then. Hope other people will find this issue in future when have same issues. |
Describe the bug
If ceph-csi-rbd provisioner will be deployed alongside with rbd-provisioner it will try delete pvs created and managed by rbd-provisioner, resulting in issue that rbd will be deleted from ceph by rbd-provisioner but blocked from deletion from k8s due to errors in finilizers.
Environment details
3.10.1
3.10.1
any
krbd
1.24.x
any
Steps to reproduce
Steps to reproduce the behavior:
rbd-provisioner
https://artifacthub.io/packages/helm/kubesphere-test/rbd-provisionerrbd-provisioner
withreclaimPolicy: Delete
ceph-csi-rbd
via offical helm chartceph-csi-rbd
withreclaimPolicy: Delete
rbd-provisioner
will stay inReleased
status endlesslyrbd-provisioner
andceph-csi-rbd
- see thatceph-csi-rbd
tried delete not owned by him pvActual results
rbd-provisioner tried delete pod but failed due to ceph-csi-rbd also tried to manipulate it, but it shouldn't.
Expected behavior
ceph-csi-rbd should not try delete pvs not owned by him when no In-tree migration enabled, for example should not touch:
as work only with pvs like:
Logs
rbd-provisioner logs:
csi-provisioner logs:
Additional context
looks similar to #4242
The text was updated successfully, but these errors were encountered: