]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/tasks/ceph_manager.py: ignore errors in test_pool_min_size
authorKefu Chai <kchai@redhat.com>
Tue, 25 Jun 2019 04:49:44 +0000 (12:49 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 27 Jun 2019 11:00:23 +0000 (19:00 +0800)
commitfbd4836d246323fa1ed7007abe459e50f785966c
tree47652e5171406d95e27fb5dde05d596795cf0830
parent1a2700f4040e5f7cda8eb300d7bda1ef0a4ef6ed
qa/tasks/ceph_manager.py: ignore errors in test_pool_min_size

to be specific, ignore errors when querying erasure coded pool's
erasure-code-profile. the pool might be removed after
"test_pool_min_size" lists all pools and before queries the pools'
erasure-code-profile. in that case, we should just continue on with the
next pool.

normally, the pools are created by the "radosbench" tasks. and they
don't delete the ec profiles after removing the ec pools using them, but
i don't want to rely on this fact. so, in this change, the `try` block
guards both `ceph osd pool get <pool_name> erasure_code_profile`
and `ceph osd erasure-code-profile get <profile>` calls.

Fixes: http://tracker.ceph.com/issues/40533
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/ceph_manager.py