ceph-iscsi-cli icon indicating copy to clipboard operation
ceph-iscsi-cli copied to clipboard

rbd-target-api: get image's exclusive lock owner and break it

Open lxbsz opened this issue 8 years ago • 1 comments

Once the client logged in and IOs are done, one of the iscsi gateway nodes will hold the exclusive lock and be the lock owner in tcmu-runner.

When we try rollback the snap shot of the image, it will become readonly and failed even DELETE the LUN from the client host.

This patch will just get the lock owner and break it when doing the LUN's DELETE opration.

Signed-off-by: Zhang Zhuoyu [email protected] Signed-off-by: Xiubo Li [email protected]

lxbsz avatar Jan 05 '18 01:01 lxbsz

Creating snapshot fail like this: image

zhuozh avatar Jan 05 '18 10:01 zhuozh