diff --git a/qa/tasks/ceph_manager.py b/qa/tasks/ceph_manager.py index 67b8663d41c..bbb9ada3eeb 100644 --- a/qa/tasks/ceph_manager.py +++ b/qa/tasks/ceph_manager.py @@ -537,6 +537,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])