From 4936d404386dc525257acf94f84a085819196fdc Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 4 Feb 2016 10:19:54 -0500 Subject: [PATCH] tasks/thrashosds: fix powercycle, bdev_inject_crash The CephManager.kill_osd expects these in its config, not Thrasher's. Signed-off-by: Sage Weil --- tasks/thrashosds.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/thrashosds.py b/tasks/thrashosds.py index 6acde5e9cab5..d7cbc93f2c63 100644 --- a/tasks/thrashosds.py +++ b/tasks/thrashosds.py @@ -159,8 +159,12 @@ def task(ctx, config): 'but not available on osd role: {r}'.format( r=remote.name)) - log.info('Beginning thrashosds...') cluster_manager = ctx.managers[cluster] + for f in ['powercycle', 'bdev_inject_crash']: + if config.get(f): + cluster_manager.config[f] = config.get(f) + + log.info('Beginning thrashosds...') thrash_proc = ceph_manager.Thrasher( cluster_manager, config, -- 2.47.3