]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix scrub_test.py permission error
authorDavid Zafman <david.zafman@inktank.com>
Tue, 14 May 2013 23:17:10 +0000 (16:17 -0700)
committerDavid Zafman <david.zafman@inktank.com>
Tue, 14 May 2013 23:24:33 +0000 (16:24 -0700)
Add description of yaml file including log-whitelist
Add sudo to dd that corrupts data

Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Warren Usui <warren.usui@inktank.com>:wq
teuthology/task/scrub_test.py

index cfcee5ac0c244a2511821164bf7f8249e310b905..36967a86e939dedaf795f2ef2fd6238f0b3d4ca2 100644 (file)
@@ -12,6 +12,20 @@ log = logging.getLogger(__name__)
 def task(ctx, config):
     """
     Test [deep] scrub
+
+    tasks:
+    - chef:
+    - install:
+    - ceph:
+        log-whitelist:
+        - '!= known 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
+    - scrub_test: 
+    
     """
     if config is None:
         config = {}
@@ -91,7 +105,7 @@ def task(ctx, config):
 
     # put a single \0 at the beginning of the file
     osd_remote.run(
-        args=[ 'dd',
+        args=[ 'sudo', 'dd',
                'if=/dev/zero',
                'of=%s' % os.path.join(data_path, osdfilename),
                'bs=1', 'count=1', 'conv=notrunc'