]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: wait longer for osd to flush pg stats 22485/head
authorKefu Chai <kchai@redhat.com>
Sat, 9 Jun 2018 05:51:18 +0000 (13:51 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 9 Jun 2018 05:51:20 +0000 (13:51 +0800)
it's the test_create_from_mon()'s counterpart of 38074726.

Fixes: http://tracker.ceph.com/issues/24321
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/osd_max_pg_per_osd.py

index 3d8742b9e4014bd5abeaba85105233e3ee20f3c8..03ea218f5690adba4c1e2fa3093b908ddd551cc0 100644 (file)
@@ -34,8 +34,9 @@ def test_create_from_mon(ctx, config):
     manager = ctx.managers['ceph']
     log.info('1. creating pool.a')
     pool_a = manager.create_pool_with_unique_name(pg_num)
-    manager.wait_for_clean()
-    assert manager.get_num_active_clean() == pg_num
+    pg_states = manager.wait_till_pg_convergence(300)
+    pg_created = pg_num_in_all_states(pg_states, 'active', 'clean')
+    assert pg_created == pg_num
 
     log.info('2. creating pool.b')
     pool_b = manager.create_pool_with_unique_name(pg_num)