]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
repair_test, scrub_test: Fix whitelists for scrub changes
authorDavid Zafman <dzafman@redhat.com>
Thu, 20 Oct 2016 00:10:07 +0000 (17:10 -0700)
committerDavid Zafman <dzafman@redhat.com>
Wed, 16 Nov 2016 20:32:10 +0000 (12:32 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
suites/rados/basic/tasks/repair_test.yaml
suites/rados/basic/tasks/scrub_test.yaml
tasks/repair_test.py
tasks/scrub_test.py

index d235af30e90a48792fd8452fca519116211a6d2d..4dd43bcb2cd78c6777e430d388540db2c395c068 100644 (file)
@@ -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
index e3b07b6f7fd1fc21d34de227a35b7de8bc4d5914..938e73e3418515eadbfcd7f81370b18eb9bad02a 100644 (file)
@@ -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:
index a547c76fc5cccc31a8ede6e4688b398acd1e3414..3211b94dfd35b88eb7edf919f5d3a50327080e37 100644 (file)
@@ -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
index fbec0c33279e4936eb2b364f277eed0062d26b2e..ca6d9cfbb4e384f2f12926923b296e6f55876eb9 100644 (file)
@@ -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: