]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: drop randomized sleeps in "big image" tests 67108/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 28 Jan 2026 09:41:13 +0000 (10:41 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 28 Jan 2026 14:02:05 +0000 (15:02 +0100)
These tests were tuned for slower hardware than what we have now.
Even without these the image is often 25-30% synced by the time the
test gets to the "non-primary snapshot in question is still being
synced" assert.

Fixes: https://tracker.ceph.com/issues/74601
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
qa/workunits/rbd/rbd_mirror.sh

index 43deb7baf33335584b96787e4f2e339c3e96db94..7f8afddc61354f1077223f401b234639a569c666 100755 (executable)
@@ -838,7 +838,6 @@ if [ "${RBD_MIRROR_MODE}" = "snapshot" ]; then
     demote_image ${CLUSTER2} ${POOL} ${demote_image}
     get_newest_complete_mirror_snapshot_id ${CLUSTER2} ${POOL} ${demote_image} primary_snap_id
     wait_for_non_primary_snap_present ${CLUSTER1} ${POOL} ${demote_image} ${primary_snap_id}
-    sleep $((RANDOM % 6))
     stop_mirrors ${CLUSTER1} -KILL
     SNAPS=$(get_snaps_json ${CLUSTER1} ${POOL} ${demote_image})
     jq -e '.[-1].namespace["type"] == "mirror" and .[-1].namespace["state"] == "demoted" and .[-1].namespace["complete"] == false' <<< ${SNAPS}
@@ -871,7 +870,7 @@ if [ "${RBD_MIRROR_MODE}" = "snapshot" ]; then
   mirror_image_snapshot ${CLUSTER2} ${POOL} ${force_promote_image}
 fi
 wait_for_snap_present ${CLUSTER1} ${POOL} ${force_promote_image} 'snap1'
-sleep $((1 + RANDOM % 5))
+sleep 1
 stop_mirrors ${CLUSTER1} -KILL
 if [ "${RBD_MIRROR_MODE}" = "snapshot" ]; then
   SNAPS=$(get_snaps_json ${CLUSTER1} ${POOL} ${force_promote_image})