tasks/thrashosds: fix powercycle, bdev_inject_crash

The CephManager.kill_osd expects these in its config, not
Thrasher's.

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-02-04 10:19:54 -05:00
parent 9d6ff34b50
commit 4936d40438

View File

@ -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,