qa/tasks/mon_seesaw: expect v1/v2 prefix in addr

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2018-12-06 11:25:48 -06:00
parent 55a9c7522f
commit 2f786f3299

View File

@ -24,7 +24,7 @@ def _get_next_port(ctx, ip, cluster):
used = []
for name in teuthology.get_mon_names(ctx, cluster):
addr = ctx.ceph[cluster].conf[name]['mon addr']
mon_ip, mon_port = addr.split(':')
addr_type, mon_ip, mon_port = addr.split(':')
if mon_ip != ip:
continue
used.append(int(mon_port))