]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: add a retry when fetching the teuthology_user ssh keys 123/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 31 Aug 2015 15:56:53 +0000 (10:56 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 31 Aug 2015 15:56:53 +0000 (10:56 -0500)
We keep seeing transient failures when pulling down ssh keys from
github. This will retry for two minutes before failing to hopefully give
github enough time to recover if it's timing out.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/testnode/tasks/ssh.yml

index f151093ee808aa3795dc1f3a7a990e8cf795fe81..c6b83110436679a4d5ef3ffc3c01ae54340c7fa1 100644 (file)
   authorized_key:
     user="{{ teuthology_user }}"
     key=https://raw.githubusercontent.com/ceph/keys/autogenerated/ssh/@all.pub
+  # Register and retry to work around transient githubusercontent.com issues
+  register: ssh_key_update
+  until: ssh_key_update|success
+  # try for 2 minutes to retrieve the key before failing
+  retries: 24
+  delay: 5
   tags:
     - pubkeys