From: Matthew Vernon Date: Fri, 12 Apr 2019 15:36:12 +0000 (+0100) Subject: ceph-mon: increase timeout waiting for admin and bootstrap keys X-Git-Tag: v3.2.14~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1556d802ffc799d5c2156dba6d3d353411f3e17a;p=ceph-ansible.git ceph-mon: increase timeout waiting for admin and bootstrap keys 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 --- diff --git a/roles/ceph-mon/tasks/ceph_keys.yml b/roles/ceph-mon/tasks/ceph_keys.yml index 1d998a0a6..c21eb04f5 100644 --- a/roles/ceph-mon/tasks/ceph_keys.yml +++ b/roles/ceph-mon/tasks/ceph_keys.yml @@ -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: