]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
tests: refact test_all_*_osds_are_up_and_in
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 22 Jun 2018 23:43:49 +0000 (01:43 +0200)
committerSébastien Han <seb@redhat.com>
Wed, 11 Jul 2018 08:58:44 +0000 (10:58 +0200)
commitfd93e5e8f01d261f7ee6a90f4ce4357ca7a38971
tree3875c62c2280df9ff5d32f084f20c22f21ec4b38
parent46f17b2107705191e13c233d9ad02d68199f3897
tests: refact test_all_*_osds_are_up_and_in

these tests are skipped on bluestore osds scenarios.
they were going to fail anyway since they are run on mon nodes and
`devices` is defined in inventory for each osd node. It means
`num_devices * num_osd_hosts` returns `0`.
The result is that the test expects to have 0 OSDs up.

The idea here is to move these tests so they are run on OSD nodes.
Each OSD node checks their respective OSD to be UP, if an OSD has 2
devices defined in `devices` variable, it means we are checking for 2
OSD to be up on that node, if each node has all its OSD up, we can say
all OSD are up.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit fe79a5d24086fc61ae84a59bd61a053cddb62941)
tests/conftest.py
tests/functional/tests/mon/test_mons.py
tests/functional/tests/osd/test_osds.py