]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: use py3 compat list from range 35250/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 18 May 2020 19:57:43 +0000 (12:57 -0700)
committerNathan Cutler <ncutler@suse.com>
Tue, 26 May 2020 19:41:43 +0000 (21:41 +0200)
Fixes: https://tracker.ceph.com/issues/45590
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 8d51b33e5d70feec3b65ac3eb819a3515befcdac)

qa/tasks/mds_thrash.py

index 07ec039ed9cb84e3f5b6ace37097fbb0e08c6a1c..fc5b64a1a5e3c293bf4c3f4cd7cd83632dbebfc0 100644 (file)
@@ -245,7 +245,7 @@ class MDSThrasher(Thrasher, Greenlet):
 
             if random.random() <= self.thrash_max_mds:
                 max_mds = status.get_fsmap(self.fs.id)['mdsmap']['max_mds']
-                options = range(1, max_mds)+range(max_mds+1, self.max_mds+1)
+                options = list(range(1, max_mds))+list(range(max_mds+1, self.max_mds+1))
                 if len(options) > 0:
                     sample = random.sample(options, 1)
                     new_max_mds = sample[0]