]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Fri, 1 Mar 2024 17:39:00 +0000 (17:39 +0000)
commit0d73d31b6f92d45c602d704b39d11d11536b0a93
tree21ab708a03c33d592bb89125e53b9213489831d4
parent5f9c69d53c522f3b939c91c974cedb9fdd085a60
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>
qa/workunits/windows/test_rbd_wnbd.py