]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa: add some retries to test_rbd_wnbd.py 49532/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 22 Dec 2022 13:26:36 +0000 (15:26 +0200)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 23 Dec 2022 17:38:23 +0000 (19:38 +0200)
commitb52e07cbf3eea9090f7d80b2faee802ce46d0172
treeb4e32e7e8c30c4964acc6a393665010b10ecfb00
parent540a089995480bedf6428aa9fa5bebb73495ba72
qa: add some retries to test_rbd_wnbd.py

The following operations may fail right after a block device
is attached:

* retrieving the disk number (can return -1)
* opening the disk
* setting the disk online or writable

For this reason, we'll need to add some retries. For convenience,
we're moving the existing retry logic to a separate decorator.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
qa/workunits/windows/test_rbd_wnbd.py