]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph.py/create_simple_monmap: use split_role 31424/head
authorNathan Cutler <ncutler@suse.com>
Wed, 6 Nov 2019 07:00:45 +0000 (08:00 +0100)
committerNathan Cutler <ncutler@suse.com>
Wed, 6 Nov 2019 08:48:16 +0000 (09:48 +0100)
Signed-off-by: Nathan Cutler <ncutler@suse.com>
qa/tasks/ceph.py

index 0fcc2cc90104d6214a9444793b0c5714cad21701..49cf6473c89df6d5a7b4377b1f872619515696d9 100644 (file)
@@ -443,8 +443,7 @@ def skeleton_config(ctx, roles, ips, mons, cluster='ceph'):
     return conf
 
 def create_simple_monmap(ctx, remote, conf, mons,
-                         path=None,
-                         mon_bind_addrvec=False):
+                         path=None):
     """
     Writes a simple monmap based on current ceph.conf into path, or
     <testdir>/monmap by default.
@@ -469,12 +468,9 @@ def create_simple_monmap(ctx, remote, conf, mons,
         '--create',
         '--clobber',
     ]
-    for (name, addr) in addresses:
-        n = name[4:]
-        if mon_bind_addrvec:
-            args.extend(('--addv', n, addr))
-        else:
-            args.extend(('--add', n, addr))
+    for (role, addr) in addresses:
+        _, _, n = teuthology.split_role(role)
+        args.extend(('--add', n, addr))
     if not path:
         path = '{tdir}/monmap'.format(tdir=testdir)
     args.extend([