From: David Zafman Date: Tue, 14 May 2013 23:17:10 +0000 (-0700) Subject: Fix scrub_test.py permission error X-Git-Tag: 1.1.0~2148 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e582e15c8131bfda99594faecc27c46cffe3a10b;p=teuthology.git Fix scrub_test.py permission error Add description of yaml file including log-whitelist Add sudo to dd that corrupts data Signed-off-by: David Zafman Reviewed-by: Warren Usui :wq --- diff --git a/teuthology/task/scrub_test.py b/teuthology/task/scrub_test.py index cfcee5ac0..36967a86e 100644 --- a/teuthology/task/scrub_test.py +++ b/teuthology/task/scrub_test.py @@ -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'