Can you attempt to reproduce the bug with master again?
As a bonus, it might make sense for glance.common.utils.chunkiter to not be so trusting of length of chunks it reads. It could buffer multiple calls to fp.read() until it actually gets the correct size.
Masashi,
It looks like maybe the recent change to adopt glance_store as a separate project may have included a fix for this. Specifically, I see:
https:/ /github. com/openstack/ glance/ blob/f6e7992a68 f6ab36f87604fff be5349f2a12b25e /glance/ api/v1/ images. py#L454
Can you attempt to reproduce the bug with master again?
As a bonus, it might make sense for glance. common. utils.chunkiter to not be so trusting of length of chunks it reads. It could buffer multiple calls to fp.read() until it actually gets the correct size.