From: Ilya Dryomov Date: Thu, 29 Jan 2026 20:41:03 +0000 (+0100) Subject: qa/workunits/rbd: reduce randomized sleeps in live import tests X-Git-Tag: testing/wip-jcollin-testing-20260212.143545-tentacle~23^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=533ea1414ebe61c4868af38a8d3a77ac8679a830;p=ceph-ci.git qa/workunits/rbd: reduce randomized sleeps in live import tests These tests were tuned for slower hardware than what we have now. Currently "rbd migration execute" always finishes (successfully) before the NBD server is killed. Fixes: https://tracker.ceph.com/issues/74669 Signed-off-by: Ilya Dryomov (cherry picked from commit 592e3a9846b130c7321481f8b2bf9dba2fb05195) --- diff --git a/qa/workunits/rbd/cli_migration.sh b/qa/workunits/rbd/cli_migration.sh index d4bcf7f77df..37ab26d2c0f 100755 --- a/qa/workunits/rbd/cli_migration.sh +++ b/qa/workunits/rbd/cli_migration.sh @@ -622,7 +622,7 @@ EOF qemu-img compare ${TEMPDIR}/large.raw rbd:rbd/${dest_image} rbd migration execute ${dest_image} & migration_execute_pid=$! - sleep $((5 + RANDOM % 35)) + sleep $((5 + RANDOM % 5)) kill_nbd_server expect_false wait $migration_execute_pid expect_false rbd status ${dest_image} @@ -638,7 +638,7 @@ EOF qemu-img compare ${TEMPDIR}/large.raw rbd:rbd/${dest_image} rbd migration execute ${dest_image} & migration_execute_pid=$! - sleep $((5 + RANDOM % 35)) + sleep $((5 + RANDOM % 5)) kill_nbd_server expect_false wait $migration_execute_pid expect_false rbd status ${dest_image}