Merge PR #29069 into master

* refs/pull/29069/head:
	qa/tasks/ceph_manager: make upmap thrasher behave when no pools/pgs

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
Sage Weil 2019-07-17 17:20:12 -05:00
commit a4bfe96cd1

View File

@ -495,6 +495,8 @@ class Thrasher:
try:
if random.random() >= .3:
pgs = self.ceph_manager.get_pg_stats()
if not pgs:
return
pg = random.choice(pgs)
pgid = str(pg['pgid'])
poolid = int(pgid.split('.')[0])