]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/workunits/rbd-nbd: work around "rbd feature disable" hang 50158/head
authorIlya Dryomov <idryomov@gmail.com>
Thu, 16 Feb 2023 11:53:02 +0000 (12:53 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 18 Feb 2023 12:45:06 +0000 (13:45 +0100)
commit2537eb19f5463a2b59c14909ed8d35b986acd250
tree5ef102dd830194a3b483b596b46f8eaa8a9a6efd
parent99ee5a70d6086049ef644b9d37b4ba4d89030934
qa/workunits/rbd-nbd: work around "rbd feature disable" hang

"rbd feature disable" appears to reliably hang if the corresponding
remote request is proxied to rbd-nbd (because rbd-nbd happens to own
the exclusive lock after a series of blkdiscard calls) [1].  Work
around it here by enabling journaling before the image is mapped
and disabling it after the image is unmapped.

Also, don't assert on the output of "rbd journal inspect --verbose"
having a certain number of entries.  This is racy: if the script gets
delayed after the last blkdiscard call for some reason, there may be
fewer entries present in the journal or none at all.

[1] https://tracker.ceph.com/issues/58740

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit fcfef0a19e1d85a8b9414909268f1370ec82808d)
qa/workunits/rbd/rbd-nbd.sh