From: Sage Weil Date: Wed, 18 Dec 2013 19:41:58 +0000 (-0800) Subject: rados: add in more (optional) op types X-Git-Tag: 1.1.0~1727^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F164%2Fhead;p=teuthology.git rados: add in more (optional) op types Signed-off-by: Sage Weil --- diff --git a/teuthology/task/rados.py b/teuthology/task/rados.py index 0e4f5abb9..bc0e837dd 100644 --- a/teuthology/task/rados.py +++ b/teuthology/task/rados.py @@ -106,10 +106,14 @@ def task(ctx, config): '--max-stride-size', str(config.get('max_stride_size', object_size / 5)), '--max-seconds', str(config.get('max_seconds', 0)) ] - if 'copy_from' in op_weights: - args.extend([ - '--op', 'copy_from', str(op_weights.get('copy_from', 0)) - ]) + for field in [ + 'copy_from', 'is_dirty', 'undirty', 'cache_flush', + 'cache_try_flush', 'cache_evict', + ]: + if field in op_weights: + args.extend([ + '--op', field, str(op_weights.get(field, 0)) + ]) def thread(): """Thread spawned by gevent"""