OpenStack Image Management (Glance)
Go to file
Ian Cordasco 7a843f7e1f Fix incompatibilities with WebOb 1.7
WebOb 1.7 changed [0] how request bodies are determined to be
readable. Prior to version 1.7, the following is how WebOb
determined if a request body is readable:
  #1 Request method is one of POST, PUT or PATCH
  #2 ``content_length`` length is set
  #3 Special flag ``webob.is_body_readable`` is set

The special flag ``webob.is_body_readable`` was used to signal
WebOb to consider a request body readable despite the content length
not being set. #1 above is how ``chunked`` Transfer Encoding was
supported implicitly in WebOb < 1.7.

Now with WebOb 1.7, a request body is considered readable only if
``content_length`` is set and it's non-zero [1]. So, we are only left
with #2 and #3 now. This drops implicit support for ``chunked``
Transfer Encoding Glance relied on. Hence, to emulate #1, Glance must
set the the special flag upon checking the HTTP methods that may have
bodies. This is precisely what this patch attemps to do.

[0] https://github.com/Pylons/webob/pull/283
[1] https://github.com/Pylons/webob/pull/283/files#diff-706d71e82f473a3b61d95c2c0d833b60R894

Closes-bug: #1657459
Closes-bug: #1657452
Co-Authored-By: Hemanth Makkapati <hemanth.makkapati@rackspace.com>
Change-Id: I19f15165a3d664d5f3a361f29ad7000ba2465a85
2017-03-27 22:03:36 -05:00
api-ref/source Fix api-ref with Sphinx 1.5 2017-03-04 15:56:45 +00:00
doc/source correct "url" to "URL" 2017-03-16 16:57:14 +08:00
etc Remove glare leftovers from setup.cfg 2017-03-04 15:59:29 +00:00
glance Fix incompatibilities with WebOb 1.7 2017-03-27 22:03:36 -05:00
rally-jobs Merge "Add 'vhdx' disk format." 2016-08-01 18:32:59 +00:00
releasenotes Glare-ectomy 2017-03-01 21:46:52 +00:00
tools Prepare for using standard python tests 2017-02-03 20:11:48 +01:00
.coveragerc Update .coveragerc after the removal of openstack directory 2016-10-17 17:09:56 +05:30
.gitignore Add reno for release notes management 2015-11-04 18:21:25 +00:00
.gitreview Add .gitreview config file for gerrit. 2011-10-24 11:02:16 -04:00
.mailmap Add a mailmap entry for myself 2014-02-11 12:00:44 +08:00
.testr.conf Allow specifying OS_TEST_PATH (to reduce tests ran) 2016-11-07 11:09:26 -08:00
CONTRIBUTING.rst Remove uneccessary "in" from CONTRIBUTING.rst 2016-11-22 08:59:39 +08:00
HACKING.rst Corrected section underline 2016-04-15 11:40:59 +05:30
LICENSE Add a LICENSE file. 2012-01-03 10:14:01 -05:00
README.rst Add alt text for badges 2016-12-01 16:23:35 +00:00
babel.cfg Added first step of babel-based translations. 2012-02-28 02:00:37 -08:00
bandit.yaml Move bandit into pep8 2016-02-26 08:12:45 +01:00
pylintrc Typo in pylintrc file 2015-03-25 11:21:16 +01:00
requirements.txt Updated from global requirements 2017-03-15 12:42:18 +00:00
setup.cfg Remove glare leftovers from setup.cfg 2017-03-04 15:59:29 +00:00
setup.py Updated from global requirements 2017-03-04 01:43:26 +00:00
test-requirements.txt Updated from global requirements 2017-03-04 01:43:26 +00:00
tox.ini Remove glare leftovers from setup.cfg 2017-03-04 15:59:29 +00:00

README.rst

Team and repository tags

The following tags have been asserted for the Glance project:
"project:official",
"tc:approved-release",
"stable:follows-policy",
"tc:starter-kit:compute",
"vulnerability:managed",
"team:diverse-affiliation",
"assert:supports-upgrade",
"assert:follows-standard-deprecation".
Follow the link for an explanation of these tags.

Glance

Glance is a project that provides services and associated libraries to store, browse, share, distribute and manage bootable disk images, other data closely associated with initializing compute resources, and metadata definitions.

Use the following resources to learn more:

API

To learn how to use Glance's API, consult the documentation available online at:

Developers

For information on how to contribute to Glance, please see the contents of the CONTRIBUTING.rst in this repository.

Any new code must follow the development guidelines detailed in the HACKING.rst file, and pass all unit tests.

Further developer focused documentation is available at:

Operators

To learn how to deploy and configure OpenStack Glance, consult the documentation available online at:

In the unfortunate event that bugs are discovered, they should be reported to the appropriate bug tracker. You can raise bugs here:

Other Information

During each design summit, we agree on what the whole community wants to focus on for the upcoming release. You can see image service plans:

For more information about the Glance project please see: