]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mon: increase timeout waiting for admin and bootstrap keys
authorMatthew Vernon <mv3@sanger.ac.uk>
Fri, 12 Apr 2019 15:36:12 +0000 (16:36 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 12 Apr 2019 17:03:39 +0000 (17:03 +0000)
With a large and/or busy cluster, it can take significantly more than
30s for a restarted monitor to get to the point where
`ceph-create-keys` returns successfully. A recent upgrade of our
production cluster failed here because it took a couple of minutes for
the newly-upgraded `mon` to be ready. So increase the timeout
significantly.

This patch is applied to stable-3.2, because the affected code is
refactored in stable-4.0 and ceph-create-keys is no longer called.

Signed-off-by: Matthew Vernon <mv3@sanger.ac.uk>
roles/ceph-mon/tasks/ceph_keys.yml

index 1d998a0a604868cbc16e27786d4c1fc14a76e21b..c21eb04f5796d6410ab3a9dc781b992a28eeab23 100644 (file)
@@ -1,6 +1,6 @@
 ---
 - name: collect admin and bootstrap keys
-  command: ceph-create-keys --cluster {{ cluster }} -i {{ monitor_name }} -t 30
+  command: ceph-create-keys --cluster {{ cluster }} -i {{ monitor_name }} -t 600
   changed_when: false
   check_mode: no
   when: