From 5320db57ceac6247fcb4ff5234ba3a03c15d5338 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 18 Dec 2013 11:41:58 -0800 Subject: [PATCH] rados: add in more (optional) op types Signed-off-by: Sage Weil --- teuthology/task/rados.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/teuthology/task/rados.py b/teuthology/task/rados.py index 0e4f5abb980..bc0e837dd54 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"""