]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
tests: fix test_osds_listen_on_* tests 1675/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 13 Jul 2017 10:37:15 +0000 (12:37 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 13 Jul 2017 10:37:15 +0000 (12:37 +0200)
commit14dbcb122c970e96876f670839d4fff6b32469f0
tree21a2f41cad706c4f115519d9b69c152fa1c4aac3
parent1634087b4c7267be26d588e4fcfafee01940563f
tests: fix test_osds_listen_on_* tests

the `test_osds_listen_on_*` consider OSDs will always listen on tcp port
with consecutive tcp port number starting from `6800`.

Eg.
If you have 2 OSDs, tests will assume it should listen on 2 ports for each
network (`public_network` and `cluster_network`), therefore:
`6800, 6801, 6802, 6803`

but sometime it doesn't happen this way and you can get OSDs listening
on tcp port like this :

`6800, 6801, 6802, 6805`

Then the test are failing while it shouldn't.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
tests/functional/tests/osd/test_osds.py