]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa: update rbd-wnbd test, retrying image rm operations
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 2 Aug 2023 09:50:37 +0000 (09:50 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Sat, 2 Mar 2024 19:04:26 +0000 (19:04 +0000)
commit1c27e7eed0adbfe306bf288c1f53590df8c9e9a9
tree80db9736263263d80fcc16c05b3fc19deabfc58b
parentf48ef5c0d59c25ac8f96e389046fb0a89831b504
qa: update rbd-wnbd test, retrying image rm operations

The "rbd-wnbd unmap" command is currently telling the WNBD driver
to remove the mapping without contacting the rbd-wnbd daemon
and waiting for it to perform its cleanup.

For this reason, attempting to delete the image immediately after
unmapping it can fail due to existing watchers.

As a temporary solution, we'll retry the image remove operation.
At a later time, we'll update the "rbd-wnbd unmap" command to go
through the rbd-wnbd daemon, ensuring that all the necessary
cleanup is performed before returning.

While at it, we're dropping a redundant LOG.error call so that we
won't print expected exceptions.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 0d73d31b6f92d45c602d704b39d11d11536b0a93)
qa/workunits/windows/test_rbd_wnbd.py