From 50f20224122f3e9f2193d3436a5a4de0db254ca5 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 5 Oct 2016 11:33:37 -0400 Subject: [PATCH] tasks/dump_stuck: more verbose Signed-off-by: Sage Weil --- tasks/dump_stuck.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tasks/dump_stuck.py b/tasks/dump_stuck.py index 9e1780f0156..04fb5874a03 100644 --- a/tasks/dump_stuck.py +++ b/tasks/dump_stuck.py @@ -24,10 +24,15 @@ def check_stuck(manager, num_inactive, num_unclean, num_stale, timeout=10): :param timeout: timeout value for get_stuck_pgs calls """ inactive = manager.get_stuck_pgs('inactive', timeout) - assert len(inactive) == num_inactive unclean = manager.get_stuck_pgs('unclean', timeout) - assert len(unclean) == num_unclean stale = manager.get_stuck_pgs('stale', timeout) + log.info('hi mom') + log.info('inactive %s / %d, unclean %s / %d, stale %s / %d', + len(inactive), num_inactive, + len(unclean), num_unclean, + len(stale), num_stale) + assert len(inactive) == num_inactive + assert len(unclean) == num_unclean assert len(stale) == num_stale # check health output as well @@ -105,10 +110,12 @@ def task(ctx, config): num_stale=0, ) + log.info('stopping both osds') for id_ in teuthology.all_roles_of_type(ctx.cluster, 'osd'): manager.kill_osd(id_) manager.mark_down_osd(id_) + log.info('waiting for all to be stale') starttime = time.time() done = False while not done: @@ -125,6 +132,7 @@ def task(ctx, config): if time.time() - starttime > 900: raise + log.info('reviving') for id_ in teuthology.all_roles_of_type(ctx.cluster, 'osd'): manager.revive_osd(id_) manager.mark_in_osd(id_)