]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/workunits/rbd: use context managers to control Rados lifespan
authorJason Dillaman <dillaman@redhat.com>
Wed, 18 Mar 2020 16:54:16 +0000 (12:54 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 18 Mar 2020 16:56:14 +0000 (12:56 -0400)
commit477570a9747b0c7c7d61f0aab7b9f2bdeae711f1
tree109a634a46fb5144c9981de5f9dac0eabde4d669
parente3bf5e7c7bb242ce93634b4464cf47e26eda41d2
qa/workunits/rbd: use context managers to control Rados lifespan

There is a potential race between the expected exceptions being
thrown and Python shutting down racing with librados background
threads. Ensure that librados is properly shut down prior to
exiting Python.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
qa/workunits/rbd/permissions.sh