testinfra/osds double the amount of ports OSDs listen to

Since msgr2 changes got merged, the OSDs in master (to be nautilus) will
double the amount of ports they listen to.

Signed-off-by: Alfredo Deza <adeza@redhat.com>
pull/3482/head
Alfredo Deza 2019-01-07 12:59:43 -05:00 committed by Guillaume Abrioux
parent 446f3c9fae
commit 9e4ec1a776
1 changed files with 2 additions and 2 deletions

View File

@ -11,13 +11,13 @@ class TestOSDs(object):
def test_osds_listen_on_public_network(self, node, host):
# TODO: figure out way to paramaterize this test
nb_port = (node["num_osds"] * 2)
nb_port = (node["num_osds"] * 4)
assert host.check_output(
"netstat -lntp | grep ceph-osd | grep %s | wc -l" % (node["address"])) == str(nb_port) # noqa E501
def test_osds_listen_on_cluster_network(self, node, host):
# TODO: figure out way to paramaterize this test
nb_port = (node["num_osds"] * 2)
nb_port = (node["num_osds"] * 4)
assert host.check_output("netstat -lntp | grep ceph-osd | grep %s | wc -l" % # noqa E501
(node["cluster_address"])) == str(nb_port)