]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: tiering health report reworked 4662/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 13 May 2015 08:39:37 +0000 (10:39 +0200)
committerLoic Dachary <ldachary@redhat.com>
Wed, 13 May 2015 08:39:37 +0000 (10:39 +0200)
commitf88275dd04b05fce9e4160872136e38453e232eb
treee6a677f5faf6eda0056c7fb38266903f3df2e8bc
parent5f252d613587cb3ef6ad5c1dc2f913911eb8a95c
tests: tiering health report reworked

Instead of

* setting limit
* populate the cache
* check the health warnings

do the following

* populate the cache
* set limits below the content of the cache
* check the health warnings

The problem with the former approach is that the limits stored by the
OSD internally do not exactly match the one set by the user: they are
converted in ratios and there may be rounding errors.

Also replace the busy loop waiting for pg stats to flush with

  ceph tell osd.* flush_pg_stats || true

for simplicity.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
qa/workunits/cephtool/test.sh