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
This commit is contained in:
Frank Zhang 2017-02-03 09:59:51 -06:00
parent 3b65d22667
commit a68a8ea830

View File

@ -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