Glance stores library
Go to file
wangxiyuan 9c8364bacf Prevent unicode object error from zero-byte read
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 <wangxiyuan1007@gmail.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>

Related-bug: #1805332
Change-Id: Ia7653f9fcbe902abc203c10c80ab44a641a4d8f9
(cherry picked from commit 1d25a2b7a2)
2019-03-20 14:09:09 +00:00
doc Update mailinglist from dev to discuss 2018-12-21 11:11:48 +08:00
etc/glance cinder: Support os-brick privsep filters 2018-07-22 10:10:49 -04:00
glance_store Prevent unicode object error from zero-byte read 2019-03-20 14:09:09 +00:00
releasenotes Stein cycle Release Notes 2019-02-28 17:29:56 +00:00
tools Remove tox_install.sh 2018-04-24 14:25:28 -04:00
.gitignore Add .stestr to gitignore 2018-01-29 06:26:30 +00:00
.gitreview Update .gitreview for stable/stein 2019-03-18 14:39:13 +00:00
.stestr.conf Update tox.ini to conform to the PTI 2018-07-16 04:52:57 +00:00
.zuul.yaml add python 3.7 unit test job 2019-02-14 22:40:49 -05:00
LICENSE Copying from glance 2014-01-24 18:30:46 +01:00
README.rst Remove team diversity tags note in README 2018-08-10 10:01:52 +08:00
babel.cfg Setup for glance.store for translation 2014-07-17 15:44:36 +00:00
lower-constraints.txt Update tox.ini to conform to the PTI 2018-07-16 04:52:57 +00:00
requirements.txt Move doc8 to test requirements 2018-08-14 14:23:44 +01:00
run_tests.sh Don't include openstack/common in flake8 exclude list 2016-07-12 14:27:23 +08:00
setup.cfg Update mailinglist from dev to discuss 2018-12-21 11:11:48 +08:00
setup.py Updated from global requirements 2017-03-03 22:48:54 +00:00
test-requirements.txt Move doc8 to test requirements 2018-08-14 14:23:44 +01:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/stein 2019-03-18 14:39:15 +00:00

README.rst

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.