]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rados/test_dedup_tool.sh: reset dedup tier during tests 51780/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Mon, 30 Jan 2023 01:58:01 +0000 (10:58 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Fri, 26 May 2023 12:11:41 +0000 (12:11 +0000)
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
cherry picked from commit b2534d90ec22341f42ca262a80613c20d8702b0e

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

index 85351f8a8061a4af1017abe7680058009fcabc10..ad38311ff8404e6973a15e2b9ec6b4d2e3551066 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