mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
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:
commit
a4bfe96cd1
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user