diff options
author | Sage Weil <sage@redhat.com> | 2017-05-19 00:16:55 +0200 |
---|---|---|
committer | Sage Weil <sage@redhat.com> | 2017-06-02 19:02:45 +0200 |
commit | ab1b78ae00956561975d340b385e78d9d5f841dd (patch) | |
tree | b4416ce889582e2b078f2e35db38ebc619bcaf55 /qa/tasks/scrub_test.py | |
parent | mon: add 'osd last-stat-seq <osd>' command (diff) | |
download | ceph-ab1b78ae00956561975d340b385e78d9d5f841dd.tar.xz ceph-ab1b78ae00956561975d340b385e78d9d5f841dd.zip |
qa/tasks: use new reliable flush_pg_stats helper
The helper gets a sequence number from the osd (or osds), and then
polls the mon until that seq is reflected there.
This is overkill in some cases, since many tests only require that the
stats be reflected on the mgr (not the mon), but waiting for it to also
reach the mon is sufficient!
Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'qa/tasks/scrub_test.py')
-rw-r--r-- | qa/tasks/scrub_test.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qa/tasks/scrub_test.py b/qa/tasks/scrub_test.py index 2c22bb6e4bf..a545c9b89e2 100644 --- a/qa/tasks/scrub_test.py +++ b/qa/tasks/scrub_test.py @@ -375,8 +375,7 @@ def task(ctx, config): for i in range(num_osds): manager.raw_cluster_cmd('tell', 'osd.%d' % i, 'injectargs', '--', '--osd-objectstore-fuse') - for i in range(num_osds): - manager.raw_cluster_cmd('tell', 'osd.%d' % i, 'flush_pg_stats') + manager.flush_pg_stats(range(num_osds)) manager.wait_for_clean() # write some data |