Depending on python-swiftclient>=1.6

Now we're depending on python-swiftclient>=1.6 since the parameter
'headers' was introduced since python-swiftclient 1.6. This is a
regression issue introduced by patch:
https://review.openstack.org/#/c/48913/

get_object(container, obj, resp_chunk_size=None, query_string=None,
response_dict=None, headers=None)

Closes-Bug: #1276033

Change-Id: I174f2dc53a402d48301b17839be8b5fa97064805
glance-manage wont take version into consideration

A glance-manage db upgrade/db downgrade will do either an 'upgrade to
latest' or 'downgrade to None' even though a version argument is
provided. The version being passed isn't being picked up and None is
passed across.

Fixes bug 1258068
Change-Id: Iaab4cf5eeb6d7c9c94fc741841a6b0797a058d40
Enable H202 check

Enable H202 check: assertRaises Exception too broad.

Make changes to glance/tests/unit/test_notifier.py

Change-Id: I258367172e77312ddda06132d2e8371e8fff81e7
Updated from global requirements

Change-Id: Iad328b1d0887d3f31f3db73b7ad699bd20b6847f
Removes logging of location uri

This patch removes logging of sensitive store location uri, which
is logged when an exception occurs while trying to get the object
from the store or due to a failure in getting the store api due to
unauthorized context.

fixes bug 1275062

Change-Id: I679baa0897f242f4b8372c9c1c7ab28ae811f5e5
Merge "glance-manage wont take version into consideration"
Merge "Removes logging of location uri"
Expose image property 'owner' in v2 API

The 'owner' property on an image is exposed in v1 but does
not appear in the v2 image response. It would be useful to
have this available.

docImpact
Implement blueprint expose-owner-in-v2

Change-Id: I90f68d57e185f4a5ee63cd97bd5597948dde33ea
Merge "Depending on python-swiftclient>=1.6"
Fix misspellings in glance

Fix misspellings detected by:
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: Ib65747384763fa43bcf2441669d9903181c65cc6
Closes-Bug: #1257295
Merge "Updated from global requirements"
Merge "Enable H202 check"
Enable H302 check

Enable H302 (import only modules) which passes without any changes to files.

Change-Id: Ibcc609ffad404e8d73a4828b7b18892444e7454d
Clean up DatabaseMigrationError

Exception DatabaseMigrationError from glance/common/exception.py
is unused, so we get rid of it.

Change-Id: I36f70dcc7d5b282d3c9d9e82a0c3f673d008e71e
Merge "Fix misspellings in glance"
Merge "Enable H302 check"
Merge "Clean up DatabaseMigrationError"
Switch to testrepository for running tests

OpenStack as a whole is moving towards using testrepository and
testtools for running tests. To that end, bring Glance into line by
switching it to use testrepository to run tests.

This copies run_tests.sh and tools/colorizer.py from Nova.

This change also has some minor changes to make run_test.sh work well.

Partial fixes bug: 1179009
Fixes bug: 1271806

Change-Id: Ic265bc0d2f1528358f6e8ee5b4139f991923fc72
Signed-off-by: Steve Kowalik <steven@wedontsleep.org>
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Apply image location selection strategy

Apply image location selection strategy into Glance server side. Image
download handling and "direct URL" exporting will be effected by this
mechanism.

Implements bp: image-location-selection-strategy

Related-Id: I86f192aeae8e5f21a72f946552f6507654c25a6c
Change-Id: I7bd093a16db3af2b604cad22a6b6971345af82a2
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Remove tox locale overrides

* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.

Change-Id: Ib10f5ef2fd747e38012384f1c6cbe147da8c2573
Closes-Bug: #1277495