Comment 4 for bug 1360151

Revision history for this message
Masashi Ozawa (mozawa) wrote :

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]
swift_store_large_object_chunk_size = 10

[local file specified]
glance image-create --name="Ubuntu1404 Local" --is-public=true --container-format=ovf --disk-format=qcow2 < ./trusty-server-cloudimg-amd64-disk1.img

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

[url specified]
glance image-create --name="Ubuntu1404 Cloud" --is-public=true --container-format=ovf --disk-format=qcow2 --copy-from https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img

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