inject bdev failures when killing osd on bluestore

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-02-03 09:56:06 -05:00
parent 173a7b270d
commit f4de41c24f
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
overrides:
thrashosds:
bdev_inject_crash: 2
ceph:
conf:
osd:

View File

@ -1930,7 +1930,7 @@ class CephManager:
self.raw_cluster_cmd(
'--', 'tell', 'osd.%d' % osd,
'injectargs',
'--bdev-inject-crash ' + self.config.get('bdev_inject_crash'),
'--bdev-inject-crash %d' % self.config.get('bdev_inject_crash'),
)
try:
self.ctx.daemons.get_daemon('osd', osd, self.cluster).wait()