]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/rbd_mirror_thrash: don't use random.randrange() on floats 67163/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 30 Jan 2026 15:32:35 +0000 (16:32 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Feb 2026 12:37:09 +0000 (13:37 +0100)
commite2f2451479de0f591c06053cd0b1414c9d6e888c
tree74b6b5affeaa718a66fe51245f3f262374298936
parentf9ca58e58d4215770307a1db1a5c2bd0e906c87e
qa/tasks/rbd_mirror_thrash: don't use random.randrange() on floats

This stopped working in Python 3.12:

  Changed in version 3.12: Automatic conversion of non-integer types
  is no longer supported. Calls such as randrange(10.0) and
  randrange(Fraction(10, 1)) now raise a TypeError.

Fixes: https://tracker.ceph.com/issues/74676
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit d663359fae135b2337e0ffbb86256768f61088c7)
qa/tasks/rbd_mirror_thrash.py