From: Andrew Schoen Date: Mon, 31 Aug 2015 15:56:53 +0000 (-0500) Subject: testnode: add a retry when fetching the teuthology_user ssh keys X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F123%2Fhead;p=ceph-cm-ansible.git testnode: add a retry when fetching the teuthology_user ssh keys 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 --- diff --git a/roles/testnode/tasks/ssh.yml b/roles/testnode/tasks/ssh.yml index f151093e..c6b83110 100644 --- a/roles/testnode/tasks/ssh.yml +++ b/roles/testnode/tasks/ssh.yml @@ -21,5 +21,11 @@ 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