]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa: add validation stage for deduplication.py
authorSungmin Lee <ssdohammer@gmail.com>
Tue, 23 Aug 2022 04:51:31 +0000 (13:51 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 19 Sep 2022 04:21:00 +0000 (13:21 +0900)
commitf81b1b61c97dba4c3ff6aa2ba08c3d1fcc00f7c1
tree0718d6cc7dac7e784fc45a46e8918991925899aa
parent8d2cf96ff98ae6065c30068b89fe00d0f2fb3454
qa: add validation stage for deduplication.py

To validate sample-dedup actually works, validate() runs
separated thread from sample-dedup and verifies
two following things.
1. check sample-dedup starts properly.
2. check references of all the chunk objects' in chunk tier
   exists in designated base pool.
This routune repeats for max_valication_cnt times while
sample-dedup is running. If it doesn't raise any fail while the loop,
we can pretend sample-dedup works accurately.
If not, assert() will stop this test.

In case that a reference of chunk object doesn't exist in base pool,
validate() gives a second chance after repairing it (chunk-repair op)
to deal with false-positive reference inconsistency.

Signed-off-by: Sungmin Lee <sung_min.lee@samsung.com>
qa/tasks/deduplication.py