]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
testinfra/osds double the amount of ports OSDs listen to
authorAlfredo Deza <adeza@redhat.com>
Mon, 7 Jan 2019 17:59:43 +0000 (12:59 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 8 Jan 2019 12:40:34 +0000 (13:40 +0100)
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>
tests/functional/tests/osd/test_osds.py

index 2e526fd9acb42d9e3040e0507201a5d59ad4c2d8..6c340f2525462d53d47c703cbbab8e6527b4f819 100644 (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)