During large file uploads under py3, we are occasionally seeing a "unicode objects must be encoded before hashing" error even though we are reading from a byte stream. From what I can tell, it looks like it's happening when a zero-byte read is requested, so we handle that case explicitly. This is a band-aid fix; we still need to track down the source. Co-authored-by: wangxiyuan <firstname.lastname@example.org> Co-authored-by: Brian Rosmaita <email@example.com> Related-bug: #1805332 Change-Id: Ia7653f9fcbe902abc203c10c80ab44a641a4d8f9 (cherry picked from commit
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: http://git.openstack.org/cgit/openstack/glance_store
- Bugs: https://bugs.launchpad.net/glance-store