]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/ceph_manager: do not pick a pool is there is no pools 32519/head
authorKefu Chai <kchai@redhat.com>
Tue, 7 Jan 2020 08:15:51 +0000 (16:15 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 9 Jan 2020 02:26:32 +0000 (10:26 +0800)
commite67034b95a35add477025214ed6418fd5320a915
tree3a0a126bba743c18c57945dd5e5ecd4c0136c086
parent1ca0a119c132eee91e2e7092538055c33f282363
qa/tasks/ceph_manager: do not pick a pool is there is no pools

random.choice(seq) raises IndexError if seq is empty. we cannot ensure
there is always one or more pools in the cluster while using pool
related thrasher. so skip the thrasher action if there is no pools at
that moment.

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