since msgr2 introduction, this test must be updated.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
mon_host_line = host.check_output("grep 'mon host = ' /etc/ceph/{cluster}.conf".format(cluster=node['cluster_name'])) # noqa E501
result = True
for x in range(0, node["num_mons"]):
- pattern = re.compile(("{}.1{}".format(node["subnet"], x)))
+ pattern = re.compile(("v2:{subnet}.1{x}:3300,v1:{subnet}.1{x}:6789".format(subnet=node["subnet"], x=x)))
if pattern.search(mon_host_line) is None:
result = False
assert result