mirror of https://github.com/ceph/ceph-ansible.git
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
parent
446f3c9fae
commit
9e4ec1a776
|
@ -11,13 +11,13 @@ class TestOSDs(object):
|
||||||
|
|
||||||
def test_osds_listen_on_public_network(self, node, host):
|
def test_osds_listen_on_public_network(self, node, host):
|
||||||
# TODO: figure out way to paramaterize this test
|
# TODO: figure out way to paramaterize this test
|
||||||
nb_port = (node["num_osds"] * 2)
|
nb_port = (node["num_osds"] * 4)
|
||||||
assert host.check_output(
|
assert host.check_output(
|
||||||
"netstat -lntp | grep ceph-osd | grep %s | wc -l" % (node["address"])) == str(nb_port) # noqa E501
|
"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):
|
def test_osds_listen_on_cluster_network(self, node, host):
|
||||||
# TODO: figure out way to paramaterize this test
|
# 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
|
assert host.check_output("netstat -lntp | grep ceph-osd | grep %s | wc -l" % # noqa E501
|
||||||
(node["cluster_address"])) == str(nb_port)
|
(node["cluster_address"])) == str(nb_port)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue