Go to file
Andrew Bogott 62044431bd rbd: compute appropriate resize amount before resizing image
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
2024-01-16 21:03:22 +00:00
2022-05-25 04:42:06 +02:00
2023-11-16 01:09:09 +09:00
2018-01-29 06:26:30 +00:00
2019-04-19 19:42:31 +00:00
2023-05-19 11:49:53 -07:00
2014-01-24 18:30:46 +01:00
2019-10-06 14:37:10 +08:00
2022-05-25 04:42:06 +02:00
2020-04-05 08:20:21 +02:00

Team and repository tags

The following tags have been asserted for the Glance Store
Library:
"project:official",
"stable:follows-policy",
"vulnerability:managed".
Follow the link for an explanation of these 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.

Description
Glance stores library
Readme 14 MiB
Languages
Python 100%