diff --git a/zaza/openstack/utilities/openstack.py b/zaza/openstack/utilities/openstack.py index 96bfd9c4e..18e88d76b 100644 --- a/zaza/openstack/utilities/openstack.py +++ b/zaza/openstack/utilities/openstack.py @@ -2254,6 +2254,12 @@ def find_ubuntu_image(release, arch): return UBUNTU_IMAGE_URLS[release].format(release=release, arch=arch) +@tenacity.retry( + wait=tenacity.wait_fixed(2), + stop=tenacity.stop_after_attempt(10), + reraise=True, + retry=tenacity.retry_if_exception_type(urllib.error.ContentTooShortError), +) def download_image(image_url, target_file): """Download the image from the given url to the specified file.