]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/rados/test_dedup_tool.sh: reset dedup tier during tests
authormyoungwon oh <ohmyoungwon@gmail.com>
Mon, 30 Jan 2023 01:58:01 +0000 (10:58 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 30 Jan 2023 02:10:15 +0000 (11:10 +0900)
Dedup_tier option needs to be reset whenever every test begins,
because dedup_tier(dedup_chunk_pool) is deleted at the end of each
test---if not, this causes error in case dedup_tier's pool id is
changed.
This commit adds a set command to refresh newly added dedup_tier
pool id.

fixes: https://tracker.ceph.com/issues/58587

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
qa/workunits/rados/test_dedup_tool.sh

index 72b64ce8576cf63d22593045abfd1cde54192985..18deb331b60ae20a9baebddefc77e8cac5bcb81b 100755 (executable)
@@ -250,6 +250,7 @@ function test_dedup_object()
 
   echo "There hiHI" > foo
 
+  $CEPH_TOOL osd pool set $POOL dedup_tier $CHUNK_POOL --yes-i-really-mean-it
   $RADOS_TOOL -p $POOL put foo ./foo
 
   sleep 2