]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: include first mgr host when applying mgrs 41478/head
authorJosh Durgin <jdurgin@redhat.com>
Wed, 23 Dec 2020 00:25:48 +0000 (19:25 -0500)
committerDeepika Upadhyay <dupadhya@redhat.com>
Fri, 25 Jun 2021 16:18:40 +0000 (21:48 +0530)
This prevents the first mgr from being shut down due to lack of
appropriate placements.

trivial fix: removed octopus upgrade configs.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit c79fa6d780580f99b62117e54326a4ef4b7adfef)

qa/tasks/cephadm.py

index 43139274576c835f3fdf95814b295b35138e2d89..51cf7488eebd0d08345023ea59bde72a3a5957b4 100644 (file)
@@ -583,10 +583,10 @@ def ceph_mgrs(ctx, config):
             for mgr in [r for r in roles
                         if teuthology.is_type('mgr', cluster_name)(r)]:
                 c_, _, id_ = teuthology.split_role(mgr)
-                if c_ == cluster_name and id_ == ctx.ceph[cluster_name].first_mgr:
-                    continue
                 log.info('Adding %s on %s' % (mgr, remote.shortname))
                 nodes.append(remote.shortname + '=' + id_)
+                if c_ == cluster_name and id_ == ctx.ceph[cluster_name].first_mgr:
+                    continue
                 daemons[mgr] = (remote, id_)
         if nodes:
             _shell(ctx, cluster_name, remote, [