]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/standalone/erasure-code/test-erasure-code.sh
update ceph source to reef 18.1.2
[ceph.git] / ceph / 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