csi-addons/rbd: make use of volume locks for reclaim space operations #4637
Labels
component/rbd
Issues related to RBD
dependency/csi-addons
Related to a CSI-Addons issue or enhancement
Describe the bug
Reclaim space operations need to be protected with volume locks similar to other calls to prevent multiple process executing rbd sparsify / fstrim on same volume.
refer: https://github.com/ceph/ceph-csi/blob/devel/internal/csi-addons/rbd/replication.go#L238
Environment details
fuse
orkernel
. for rbd itskrbd
orrbd-nbd
) : krbdSteps to reproduce
Steps to reproduce the behavior:
Actual results
Multiple rbd sparsify/ fstrim can be triggered in case the process takes too long and controller times out.
Expected behavior
Only one rbd sparsify/ fstrim process per volume should run at a time.
The text was updated successfully, but these errors were encountered: