From: David Zafman Date: Thu, 20 Oct 2016 00:10:07 +0000 (-0700) Subject: repair_test, scrub_test: Fix whitelists for scrub changes X-Git-Tag: v11.1.1~58^2^2~37^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5fe8522df47f56842d227e08b2912623504afe24;p=ceph.git repair_test, scrub_test: Fix whitelists for scrub changes Signed-off-by: David Zafman --- diff --git a/suites/rados/basic/tasks/repair_test.yaml b/suites/rados/basic/tasks/repair_test.yaml index d235af30e90..4dd43bcb2cd 100644 --- a/suites/rados/basic/tasks/repair_test.yaml +++ b/suites/rados/basic/tasks/repair_test.yaml @@ -1,6 +1,20 @@ overrides: ceph: - log-whitelist: ['candidate had a stat error', 'candidate had a read error', 'deep-scrub 0 missing, 1 inconsistent objects', 'deep-scrub 0 missing, 4 inconsistent objects', 'deep-scrub 1 errors', 'deep-scrub 4 errors', '!= known omap_digest', '!= known data_digest', 'repair 0 missing, 1 inconsistent objects', 'repair 0 missing, 4 inconsistent objects', 'repair 1 errors, 1 fixed', 'repair 4 errors, 4 fixed', 'scrub 0 missing, 1 inconsistent', 'scrub 1 errors', 'size 1 != known size', '!= best guess'] + log-whitelist: + - candidate had a stat error + - candidate had a read error + - deep-scrub 0 missing, 1 inconsistent objects + - deep-scrub 0 missing, 4 inconsistent objects + - deep-scrub [0-9]+ errors + - '!= omap_digest' + - '!= data_digest' + - repair 0 missing, 1 inconsistent objects + - repair 0 missing, 4 inconsistent objects + - repair [0-9]+ errors, [0-9]+ fixed + - scrub 0 missing, 1 inconsistent objects + - scrub [0-9]+ errors + - 'size 1 != size' + - attr name mismatch conf: osd: filestore debug inject read err: true diff --git a/suites/rados/basic/tasks/scrub_test.yaml b/suites/rados/basic/tasks/scrub_test.yaml index e3b07b6f7fd..938e73e3418 100644 --- a/suites/rados/basic/tasks/scrub_test.yaml +++ b/suites/rados/basic/tasks/scrub_test.yaml @@ -1,18 +1,19 @@ overrides: ceph: log-whitelist: - - '!= best guess digest' - - '!= best guess data_digest' - - '!= best guess omap_digest' - - '!= known digest' - - '!= known data_digest' - - '!= known omap_digest' - - deep-scrub 0 missing, 1 inconsistent objects - - deep-scrub 1 errors - - repair 0 missing, 1 inconsistent objects - - repair 1 errors, 1 fixed - - shard [0-9]+ missing - - deep-scrub 1 missing, 0 inconsistent objects + - '!= data_digest' + - '!= omap_digest' + - '!= size' + - 'deep-scrub 0 missing, 1 inconsistent objects' + - 'deep-scrub [0-9]+ errors' + - 'repair 0 missing, 1 inconsistent objects' + - 'repair [0-9]+ errors, [0-9]+ fixed' + - 'shard [0-9]+ missing' + - 'deep-scrub 1 missing, 1 inconsistent objects' + - 'does not match object info size' + - 'attr name mistmatch' + - 'deep-scrub 1 missing, 0 inconsistent objects' + - 'failed to pick suitable auth object' tasks: - install: - ceph: diff --git a/tasks/repair_test.py b/tasks/repair_test.py index a547c76fc5c..3211b94dfd3 100644 --- a/tasks/repair_test.py +++ b/tasks/repair_test.py @@ -265,16 +265,16 @@ def task(ctx, config): - 'candidate had a read error' - 'deep-scrub 0 missing, 1 inconsistent objects' - 'deep-scrub 0 missing, 4 inconsistent objects' - - 'deep-scrub 1 errors' - - 'deep-scrub 4 errors' - - '!= known omap_digest' + - 'deep-scrub [0-9]+ errors' + - '!= omap_digest' + - '!= data_digest' - 'repair 0 missing, 1 inconsistent objects' - 'repair 0 missing, 4 inconsistent objects' - - 'repair 1 errors, 1 fixed' - - 'repair 4 errors, 4 fixed' - - 'scrub 0 missing, 1 inconsistent' - - 'scrub 1 errors' - - 'size 1 != known size' + - 'repair [0-9]+ errors, [0-9]+ fixed' + - 'scrub 0 missing, 1 inconsistent objects' + - 'scrub [0-9]+ errors' + - 'size 1 != size' + - 'attr name mismatch' conf: osd: filestore debug inject read err: true diff --git a/tasks/scrub_test.py b/tasks/scrub_test.py index fbec0c33279..ca6d9cfbb4e 100644 --- a/tasks/scrub_test.py +++ b/tasks/scrub_test.py @@ -331,12 +331,19 @@ def task(ctx, config): - install: - ceph: log-whitelist: - - '!= known digest' - - '!= known omap_digest' + - '!= data_digest' + - '!= omap_digest' + - '!= size' - deep-scrub 0 missing, 1 inconsistent objects - - deep-scrub 1 errors + - deep-scrub [0-9]+ errors - repair 0 missing, 1 inconsistent objects - - repair 1 errors, 1 fixed + - repair [0-9]+ errors, [0-9]+ fixed + - shard [0-9]+ missing + - deep-scrub 1 missing, 1 inconsistent objects + - does not match object info size + - attr name mistmatch + - deep-scrub 1 missing, 0 inconsistent objects + - failed to pick suitable auth object - scrub_test: """ if config is None: