]> 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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 11 Jul 2018 12:43:19 +0000 (14:43 +0200)
commit4c7d2b1c718d04ae7f12e4668dee42d86438e2a1
tree952ca04263c747780867ee17bce8f3c4b31f8df5
parent3b6afdeea9f14543473a8a0d1363448c663fd608
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