62044431bd55e3dbbb6c97b0ec0bf591b3c9ef6f
Resolves a bug introduced in
c43f19e845
This issue is only in evidence when glance is behind a proxy where the
client buffer size can be lower (for haproxy: bufsize = 16384) which
can cause unaligned reads
(https://github.com/openstack/glance/blob/master/glance/common/wsgi.py#L1028).
The response length can be bigger than the store_chunk_size for the
first time, so at the end the RBD write will fail because it wants
to write more data than the actual RBD image size after the first
resize.
Thanks to Robert Varjasi for investigating this issue!
Fixes-Bug: 1916482
Change-Id: Ie03693c2cb8b096978fb156231c3b1cab695470f
Team and repository tags
Glance Store Library
Glance's stores library
This library has been extracted from the Glance source code for the specific use of the Glance and Glare projects.
The API it exposes is not stable, has some shortcomings, and is not a general purpose interface. We would eventually like to change this, but for now using this library outside of Glance or Glare will not be supported by the core team.
- License: Apache License, Version 2.0
- Documentation: https://docs.openstack.org/glance_store/latest/
- Source: https://opendev.org/openstack/glance_store/
- Bugs: https://bugs.launchpad.net/glance-store
- Release notes: https://docs.openstack.org/releasenotes/glance_store/index.html
Description
Languages
Python
100%