From a68a8ea830f010d29b36eb325a1d64f6222529eb Mon Sep 17 00:00:00 2001 From: Frank Zhang Date: Fri, 3 Feb 2017 09:59:51 -0600 Subject: [PATCH] Add retries for horizon venv download Previous horizon attempt download venv from repo without retries. This would simply fail when common HTTP 503 happens. This patch will give more deplay and chance to let download go through. Change-Id: I0c38d23c9981e1cc92a12bcf5bff34edd9828a0b Closes-Bug: 1661374 --- tasks/horizon_install.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/horizon_install.yml b/tasks/horizon_install.yml index 04685831..73412dc7 100644 --- a/tasks/horizon_install.yml +++ b/tasks/horizon_install.yml @@ -81,6 +81,9 @@ dest: "/var/cache/{{ horizon_venv_download_url | basename }}" checksum: "sha1:{{ lookup('url', horizon_venv_download_url | replace('tgz', 'checksum')) }}" register: horizon_get_venv + retries: 5 + delay: 5 + until: horizon_get_venv | succeeded when: horizon_venv_download | bool - name: Remove existing venv