From 113c5c2a97bbe8fc66b394f15d437da3f220fc41 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Mon, 31 Aug 2015 10:56:53 -0500 Subject: [PATCH] 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 --- roles/testnode/tasks/ssh.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/testnode/tasks/ssh.yml b/roles/testnode/tasks/ssh.yml index f151093..c6b8311 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 -- 2.39.5