]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
dump_stuck: flush stats before waiting for recovery/clean
authorJosh Durgin <josh.durgin@dreamhost.com>
Fri, 24 Feb 2012 01:07:26 +0000 (17:07 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Fri, 24 Feb 2012 01:07:26 +0000 (17:07 -0800)
teuthology/task/dump_stuck.py

index 7bf4e5aa8f7641af0db34c79d9755558f725cb37..8f7d1cc969b74e6630c7868f04e9d2ecae82f85a 100644 (file)
@@ -45,6 +45,7 @@ def task(ctx, config):
 
     manager.mark_out_osd(0)
     time.sleep(timeout)
+    manager.raw_cluster_cmd('tell', 'osd.1', 'flush_pg_stats')
     manager.wait_for_recovery(timeout)
 
     check_stuck(
@@ -55,6 +56,8 @@ def task(ctx, config):
         )
 
     manager.mark_in_osd(0)
+    manager.raw_cluster_cmd('tell', 'osd.0', 'flush_pg_stats')
+    manager.raw_cluster_cmd('tell', 'osd.1', 'flush_pg_stats')
     manager.wait_for_clean(timeout)
 
     check_stuck(
@@ -87,6 +90,9 @@ def task(ctx, config):
     for id_ in teuthology.all_roles_of_type(ctx.cluster, 'osd'):
         manager.revive_osd(id_)
         manager.mark_in_osd(id_)
+    time.sleep(timeout)
+    manager.raw_cluster_cmd('tell', 'osd.0', 'flush_pg_stats')
+    manager.raw_cluster_cmd('tell', 'osd.1', 'flush_pg_stats')
     manager.wait_for_clean(timeout)
 
     check_stuck(