]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mon: always call ceph-create-keys 1378/head
authorAndrew Schoen <aschoen@redhat.com>
Thu, 16 Mar 2017 21:31:25 +0000 (16:31 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 16 Mar 2017 21:31:25 +0000 (16:31 -0500)
After the jewel release the mon startup does not generate keys, but it's
still harmless to call ceph-create-keys with jewel because this task has
a 'creates' argument that will cause it not to run if the keys already
exist.

Removing this when condition also allows the downstream CI tests to
install kraken or luminous without resetting ceph_stable_release, which does not
pertain to rhcs.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-mon/tasks/ceph_keys.yml

index 5bd61e51d727dc14deb0179f60a0e5ddb8d34046..67a6823e308e38ea50ab5b7c43d798a31b5a3508 100644 (file)
@@ -1,5 +1,5 @@
 ---
-- name: collect admin and bootstrap keys (for or after kraken release)
+- name: collect admin and bootstrap keys
   command: ceph-create-keys --cluster {{ cluster }} -i {{ monitor_name }}
   args:
     creates: /etc/ceph/{{ cluster }}.client.admin.keyring
@@ -8,7 +8,7 @@
   always_run: true
   when:
     - cephx
-    - ceph_release_num.{{ ceph_release }} > ceph_release_num.jewel
+
 # NOTE (leseb): wait for mon discovery and quorum resolution
 # the admin key is not instantaneously created so we have to wait a bit
 - name: "wait for {{ cluster }}.client.admin.keyring exists"