add missing index for 'owner' column on images table.

Fixes bug 1214830

Change-Id: I13355cd53460188a5154aa3f50277c3e92335e28
Convert non-English exception message when a store loading error

In non-English environment when a store driver loading failed then a
BackendException will be raised with a non-ascii message. So we need
convert
any coded exception message to unicode string for logging.

This patch fixed a minor defect in
https://review.openstack.org/#/c/37421/
And the test case has be enhanced also.

Fixes bug 1202098

Related-Id: I9a58393b599aacc427cb4135988ecf5c3e90e455
Change-Id: I1cdc71537fc1205e5fa4ff9744b441e5d88c1d04
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Add rbd store support for zero size image

If glanceclient does not provide image size to RBD store add() it
will create a zero-size image and fail when writing to it. If
provided with zero size we now work out the size of each chunk
being written and resize the rbd image prior to each write. This
will be much slower than if new the image size on create but it
will at least work.

There is a corresponding glanceclient fix to ensure content-length
is set if known by the glanceclient, see bug 1220197

Change-Id: I014c4b71c77c92b9876786d1ba438cdb90f83233
Fixes: bug #1213880
Implement protected properties for API v1

Related to bp api-v2-property-protection

DocImpact

Change-Id: Ia56ca251e78f37dcd6cf63c9696f0e5e07ed5f5c
Fix typo in protected property message

Fix for bug 1223861.

Change-Id: Idad6143fcd587779b94cb155ffbe489759275265
Disallow access/modify members of deleted image

It should not be possible to access or modify memberships for a
deleted image. A 404 error will now be returned if a deleted
images' members are accessed or modified.

Fixes: bug #1207266
Co-authored-by: Hirofumi Ichihara <ichihara.hirofumi@lab.ntt.co.jp>

Change-Id: I3e1a7c1cd96b8c85cf0c20286533ced510580492
Merge "add missing index for 'owner' column on images table."
Convert location meta data from pickle to string.

This patch fixes a potential security issue.
Fixes bug: 1213241

Change-Id: I6414d16ec72f26ceabbaf1364ad737f19f18381e
Merge "Convert non-English exception message when a store loading error"
Respond with 410 after upload if image was deleted

When updating the image after upload, we should return an
HTTPGone instead of a 500 error if the image cannot
be found.
This will provide more information to nova when this occurs
during snapshotting.

Fixes bug #1217838

Change-Id: I6e9875a9ff95ed3e9c38685785473138327ad4a1
Fixes typos of v1 meta data in glanceapi.rst

Fixes bug 1226701

Change-Id: Ie5547f5020d0dad3a2d9a9a96db0b5dd1d2dc34e
Adding encryption support for image multiple locations

Adding necessary encryption and decryption code to registry API v1
server and client side, in order to take care image's all locations but
single location only.

docImpact
Implement bp: image-location-status
Fixes bug: 1218712

Change-Id: I999426469c196da1094cc46b5237bf1bc2006877
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Merge "Adding encryption support for image multiple locations"
Funtional Tests should call glance.db.get_api

The test_registry , test_simple and test_sqlalchemy tests import the
modules directly instead of calling get_api of db/__init__.py
With the introduction of db_pool, they should use the get_api method.

Also adds a tear down to the ThreadPoolWrapper tests to fix jenkins
issues related to the CONF using tpool set to True in the tests.

Fixes Bug #1223167
Change-Id: I66e9f5fba449107ad92e895f6a9e550e0bcddf1c
Ensure prop protections are read/enforced in order

Property protections need to be enforced in the order specified by the
configuration file. i.e. [^x_owner.*] should be enforced before [.*]
given the example config.

To achieve this, use a list of tuples to store the rules rather than a
dict, and also ensure to specify dict_type when parsing the
configuration file for python 2.6.

Fixes bug 1224449

Change-Id: Ib22cb34b7daef081c95717b55a991b8d613468c4
Add swift_store_ssl_compression param

Add a new glance-api.conf parameter 'swift_store_ssl_compression',
which allows disabling SSL layer compression for https swift requests.

This can increase performance when transferring compressed images (eg
qcow2) to/from swift.

Addresses bug 1190666.

DocImpact.

Change-Id: Ic26dba9dce5ea7e5c09fdd531746b93cec54fc5c
Corrected v2 image sharing documentation.

corrected request body for POST to /v2/.../members
removed GET /v2/images/{imageId}/members/{memberId} (call not implemented)

Change-Id: Iafbba48c7d5e8b8b38e77b7ead216d0e7e235cb2
Closes-Bug: #1229351
Merge "Ensure prop protections are read/enforced in order"
Merge "Disallow access/modify members of deleted image"
Require oslo.config 1.2.0 final

Now that 1.2.0 has been released, require it rather than one of the beta
release tarballs.

Closes-Bug: #1182861
Change-Id: I75ffc4a572d14488d19491a38742d6920951c171