Skip to content

Commit

Permalink
download: handle case of s3 Forbidden
Browse files Browse the repository at this point in the history
on case of old artifacts which aren't configured to be publicly available
on s3 (Forbidden), we should fallback to download via the
http proxy (downloads.scylladb.com)
  • Loading branch information
fruch committed Jun 8, 2023
1 parent a52db55 commit 8e64382
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ccmlib/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ def download_version_from_s3(url: str, target_path: str, verbose=False):
logging.warning(f"url: '{url}' wasn't found on S3")
logging.warning(f"download might be very slow")
return None
elif 'Forbidden' in str(ex):
logging.warning(f"url: '{url}' Forbidden (403) on S3")
logging.warning(f"download might be very slow")
return None
else:
raise

Expand Down

0 comments on commit 8e64382

Please sign in to comment.