]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa: wait longer for osd to flush pg stats 22288/head
authorKefu Chai <kchai@redhat.com>
Mon, 28 May 2018 11:37:44 +0000 (19:37 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 29 May 2018 03:27:10 +0000 (11:27 +0800)
commit260da0a4e5d71a091b36513ee9cc286d6301b6a6
treed2f5e1bfd484ff64ae98fe05fdadbcab0bc3e3df
parent25f172593652f86c9da772702f0994f07182e1a5
qa: wait longer for osd to flush pg stats

pg sends pg-stats to mgr every 5 seconds, so we cannot check for the
number of pgs right after creating the pool, at that moment, the number
of pgs could be 0, that's why manger.wait_for_clean() returns right
away, and leaves us with 0 pgs: the pgs serving the pool are still being
created. that's why `manager.get_num_active_clean()` returns `0`
sometimes. so, we should force osd to flush their stats to mgr, and wait
until the pg stats converages.

Fixes: http://tracker.ceph.com/issues/24321
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 380747268a1e4a3e8db618d66006c104091fafd5)
qa/tasks/osd_max_pg_per_osd.py