mirror of
https://github.com/ceph/ceph
synced 2025-03-30 23:40:09 +00:00
Move osd_scrub_pgs call to finally block of ceph main task.
Fixes: 7198 Signed-off-bye: Warren Usui <warren.usui@inktank.com>
This commit is contained in:
parent
2bcc60061c
commit
69f29d17f0
@ -1181,8 +1181,6 @@ def run_daemon(ctx, config, type_):
|
|||||||
try:
|
try:
|
||||||
yield
|
yield
|
||||||
finally:
|
finally:
|
||||||
if type_ == 'osd':
|
|
||||||
osd_scrub_pgs(ctx, config)
|
|
||||||
teuthology.stop_daemons_of_type(ctx, type_)
|
teuthology.stop_daemons_of_type(ctx, type_)
|
||||||
|
|
||||||
def healthy(ctx, config):
|
def healthy(ctx, config):
|
||||||
@ -1438,4 +1436,7 @@ def task(ctx, config):
|
|||||||
):
|
):
|
||||||
if config.get('wait-for-healthy', True):
|
if config.get('wait-for-healthy', True):
|
||||||
healthy(ctx=ctx, config=None)
|
healthy(ctx=ctx, config=None)
|
||||||
|
try:
|
||||||
yield
|
yield
|
||||||
|
finally:
|
||||||
|
osd_scrub_pgs(ctx, config)
|
||||||
|
Loading…
Reference in New Issue
Block a user