Browse Source

Revert "Revert "Remove chunk size for url stream""

This reverts commit d2431b9523.

This didn't really have an effect on memory usage, however it did
increase overall log size since we now show each 1meg chunk request when
running under --debug.

Change-Id: I526dcd3e8365e710cf94093728165d1f29135516
changes/22/744022/4
Alex Schultz 4 days ago
parent
commit
975383d474
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tripleo_common/image/image_uploader.py

+ 2
- 1
tripleo_common/image/image_uploader.py View File

@@ -1798,7 +1798,8 @@ class PythonImageUploader(BaseImageUploader):
}
source_blob_url = cls._build_url(
source_url, CALL_BLOB % parts)
chunk_size = 2 ** 20
# NOTE(aschultz): We specify None and let requests figure it out
chunk_size = None
LOG.info("[%s] Fetching layer %s from %s" %
(image, digest, source_blob_url))
with session.get(source_blob_url,


Loading…
Cancel
Save