]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_update: move mgr key creation v3.1.0rc3
authorSébastien Han <seb@redhat.com>
Thu, 10 May 2018 17:38:55 +0000 (10:38 -0700)
committerSébastien Han <seb@redhat.com>
Tue, 15 May 2018 17:39:03 +0000 (19:39 +0200)
Until all the mons haven't been updated to Luminous, there is no way to
create a key. So we should do the key creation in the mon role only if
we are not part of an update.
If we are then the key creation is done after the mons upgrade to
Luminous.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1574995
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 52fc8a0385a7bc58b8b33fc0c5e05db1a03c5c1f)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-mon/tasks/docker/main.yml

index 8654cce08facd01533ae9d91000b4180f6e86b90..1e84410b3dd069d3e8ea92ac58f9d2e363c3bbe5 100644 (file)
     when:
       - item.stat.exists == true
   when:
+    - not rolling_update
     - inventory_hostname == groups[mon_group_name]|last
     - ceph_release_num[ceph_release] >= ceph_release_num.luminous