]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph: only use monmaptool --addv if addr has [,:v]
authorSage Weil <sage@redhat.com>
Wed, 19 Dec 2018 03:28:49 +0000 (21:28 -0600)
committerSage Weil <sage@redhat.com>
Thu, 3 Jan 2019 17:17:31 +0000 (11:17 -0600)
Otherwise, we want the --add path, which has the logic to infer ports,
v2+v1, etc.

Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph.py

index 103ef2f031afcfb56080ff7b34cc4dfba7b6e50a..cc1320ec19ead596f0060fba44b2abd94555a025 100644 (file)
@@ -528,7 +528,7 @@ def create_simple_monmap(ctx, remote, conf, mons,
     ]
     for (name, addr) in addresses:
         n = name[4:]
-        if mon_bind_addrvec:
+        if mon_bind_addrvec and (',' in addr or 'v' in addr or ':' in addr):
             args.extend(('--addv', n, addr))
         else:
             args.extend(('--add', n, addr))