]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/erasure-code: give osdmap 5 seconds to refresh 48619/head
authorLaura Flores <lflores@redhat.com>
Tue, 25 Oct 2022 17:03:24 +0000 (17:03 +0000)
committerLaura Flores <lflores@redhat.com>
Tue, 25 Oct 2022 17:03:24 +0000 (17:03 +0000)
Fixes: https://tracker.ceph.com/issues/57883
Signed-off-by: Laura Flores <lflores@redhat.com>
qa/standalone/erasure-code/test-erasure-code.sh

index e18e673c8d49684ae3965ecbf745bbccbd165faf..b9315123365350080959d3323990b3d230a8bc4e 100755 (executable)
@@ -88,7 +88,11 @@ function rados_put_get() {
     local -a initial_osds=($(get_osds $poolname $objname))
     local last=$((${#initial_osds[@]} - 1))
     ceph osd out ${initial_osds[$last]} || return 1
+
+    # give the osdmap up to 5 seconds to refresh
+    sleep 5
     ! get_osds $poolname $objname | grep '\<'${initial_osds[$last]}'\>' || return 1
+
     rados --pool $poolname get $objname $dir/COPY || return 1
     diff $dir/ORIGINAL $dir/COPY || return 1
     ceph osd in ${initial_osds[$last]} || return 1