]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/tasks/ceph_manager: make is_{clean,recovered,active_or_down} less racy
authorSage Weil <sage@redhat.com>
Wed, 10 Jul 2019 16:04:49 +0000 (11:04 -0500)
committerSage Weil <sage@redhat.com>
Wed, 10 Jul 2019 16:04:49 +0000 (11:04 -0500)
commit0b4ce2ab4c19e4c2233df13bdcdb1152a6dc24ea
treeef8d8ac058edfb3e55108ccdcac08ce19820d93a
parent076eca46fd6654038b0daed66140950bddae7cbb
qa/tasks/ceph_manager: make is_{clean,recovered,active_or_down} less racy

Currently these can be thrown off if the cluster is creating or removing
pools at the same time.  Fix by taking a single snapshot of the pg stats
and based our judgement on that.

Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph_manager.py