This issue is not only S3 but also Swift and others.
If I configure 10M to swift_store_large_object_chunk_size and tried to create an image.
For local file specified, the chunk size is 10M(10240000 ) which is the configured size.
For url specified, the chunk size is 16M(16777216 ) which is the hard coded inside the code.
2014-08-28 03:27:20.095 16078 DEBUG glance.store.swift [-] Wrote chunk 96706771-4228-4a25-8ca6-0a05c41c3a9d-00022 (22/25) of length 10240000 to Swift returning MD5 of content: 7ad5204577447e5aab255b02acc26b64 add /opt/stack/glance/glance/store/swift.py:515
2014-08-28 03:39:43.306 16078 DEBUG glance.store.swift [-] Wrote chunk 726d28f8-9054-4857-8de0-d005ce8980a8-00002 (2/25) of length 16777216 to Swift returning MD5 of content: aa5d01c638642615f19dd0dcb0696200 add /opt/stack/glance/glance/store/swift.py:515
This issue is not only S3 but also Swift and others.
If I configure 10M to swift_store_ large_object_ chunk_size and tried to create an image.
For local file specified, the chunk size is 10M(10240000 ) which is the configured size.
For url specified, the chunk size is 16M(16777216 ) which is the hard coded inside the code.
[glance-api.conf] large_object_ chunk_size = 10
swift_store_
[local file specified] format= ovf --disk-format=qcow2 < ./trusty- server- cloudimg- amd64-disk1. img
glance image-create --name="Ubuntu1404 Local" --is-public=true --container-
2014-08-28 03:27:20.095 16078 DEBUG glance.store.swift [-] Wrote chunk 96706771- 4228-4a25- 8ca6-0a05c41c3a 9d-00022 (22/25) of length 10240000 to Swift returning MD5 of content: 7ad5204577447e5 aab255b02acc26b 64 add /opt/stack/ glance/ glance/ store/swift. py:515
[url specified] format= ovf --disk-format=qcow2 --copy-from https:/ /cloud- images. ubuntu. com/trusty/ current/ trusty- server- cloudimg- amd64-disk1. img
glance image-create --name="Ubuntu1404 Cloud" --is-public=true --container-
2014-08-28 03:39:43.306 16078 DEBUG glance.store.swift [-] Wrote chunk 726d28f8- 9054-4857- 8de0-d005ce8980 a8-00002 (2/25) of length 16777216 to Swift returning MD5 of content: aa5d01c63864261 5f19dd0dcb06962 00 add /opt/stack/ glance/ glance/ store/swift. py:515