pytest.skip("Scenario is not using journal collocation")
osd_ids = []
+ cluster_address = ""
if node_type == "osds":
result = Command.check_output('sudo ls /var/lib/ceph/osd/ | grep -oP "\d+$"')
osd_ids = result.split("\n")
+ # I can assume eth2 because I know all the vagrant
+ # boxes we test with use that interface. OSDs are the only
+ # nodes that have this interface.
+ cluster_address = Interface("eth2").addresses[0]
# I can assume eth1 because I know all the vagrant
# boxes we test with use that interface
num_devices=num_devices,
cluster_name=cluster_name,
conf_path=conf_path,
+ cluster_address=cluster_address,
)
return data
port=port,
)).is_listening
+ def test_osds_listen_on_cluster_network(self, node, Socket):
+ # TODO: figure out way to paramaterize this test
+ for x in range(0, node["num_devices"] * 2):
+ port = "680{}".format(x)
+ assert Socket("tcp://{address}:{port}".format(
+ address=node["cluster_address"],
+ port=port,
+ )).is_listening
+
def test_osd_services_are_running(self, node, Service):
# TODO: figure out way to paramaterize node['osd_ids'] for this test
for osd_id in node["osd_ids"]: