ceph-csi/internal
Madhu Rajanna 52290333e6 rbd: modified logic to check image watchers
Before RBD map operation, we do check the
watchers on the RBD image. In the case of
RWO volume. cephcsi makes sure only one
client is using the RBD image. If the rbd
image is mirrored, by default mirroring
daemon will add a watcher on the image
and as we are using go-ceph a watcher will
be added as we have opened the image So
we will have two watchers on an image if
mirroring is enabled. This holds when the
rbd mirror daemon is running, In case if
the mirror daemon is not running there will
be only one watcher on the rbd image
(which is placed by go-ceph image open)
we should not block the map operation if
the mirroring daemon is not running as
its Async mirroring. This commit adds a
check to make sure no more than 2 watchers
if the image is mirrored or no more than 1
watcher if it is not mirrored image.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2021-04-19 16:30:55 +00:00
..
cephfs cleanup: various source code comment corrections 2021-04-16 10:22:35 +00:00
controller cleanup: various source code comment corrections 2021-04-16 10:22:35 +00:00
csi-common cleanup: better or corrected variable name in grpc prometheous code 2021-04-16 10:22:35 +00:00
journal rbd: store csi.storage.k8s.io/pvc/namespace metadata as Owner 2020-12-09 13:58:48 +00:00
liveness util: replace klog with util logger in liveness.go 2020-08-19 14:38:12 +00:00
rbd rbd: modified logic to check image watchers 2021-04-19 16:30:55 +00:00
util cephfs: enable ceph-fuse big_writes by default 2021-04-19 07:08:57 +00:00