]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph.py: pass cluster_name to get_mons
authorNathan Cutler <ncutler@suse.com>
Tue, 5 Nov 2019 18:10:15 +0000 (19:10 +0100)
committerNathan Cutler <ncutler@suse.com>
Tue, 5 Nov 2019 18:15:22 +0000 (19:15 +0100)
This cannot be cherry-picked from master because it fixes an issue that was
introduced directly into mimic by a bad backport.

Fixes: 276c2b80fd9ce58c5249001bfc98fd84249782cb
Fixes: https://tracker.ceph.com/issues/42658
Signed-off-by: Nathan Cutler <ncutler@suse.com>
qa/tasks/ceph.py

index 08ab07f8d607cd6c014ec4bed5ff3aa466bbae77..0fcc2cc90104d6214a9444793b0c5714cad21701 100644 (file)
@@ -383,14 +383,14 @@ def cephfs_setup(ctx, config):
     yield
 
 
-def get_mons(roles, ips):
+def get_mons(roles, ips, cluster_name):
     """
     Get monitors and their associated addresses
     """
     mons = {}
     ports = {}
     mon_id = 0
-    is_mon = teuthology.is_type('mon')
+    is_mon = teuthology.is_type('mon', cluster_name)
     for idx, roles in enumerate(roles):
         for role in roles:
             if not is_mon(role):
@@ -590,7 +590,7 @@ def cluster(ctx, config):
     roles = [role_list for (remote, role_list) in remotes_and_roles]
     ips = [host for (host, port) in
            (remote.ssh.get_transport().getpeername() for (remote, role_list) in remotes_and_roles)]
-    mons = get_mons(roles, ips)
+    mons = get_mons(roles, ips, cluster_name)
     conf = skeleton_config(
         ctx, roles=roles, ips=ips, mons=mons, cluster=cluster_name,
     )