Support for directory source of config files

Allow multiple config files to be pulled in from a config directory,
as opposed to individual config files being explicitly enumerated.

This logic is enabled using the --config-dir=/path/to/config CLI option,
causing config to be retrived from all matching /path/to/config/*.conf
files.

Sections may be re-opened across config files, and all config items
must reside in an explicitly specified section (i.e. it does not default
to [DEFAULT]). This behavior is unchanged.

The common elements of this patch (i.e. not specific to the
glance-specific location of paste.ini files) have landed in
to openstack-common as:

  https://github.com/openstack/openstack-common/commit/fd8c2e7c

Change-Id: I3b659f1837c082bd1a78fe860a468f9d68f0f132
Update glance to pass properly tenant_name.

- Update glance with the latest changes in swift.common.client.
- Use 5000 for port.
- Properly test v2 in tests.
- Fixes bug 980196.
- Test swift against a specific stable version like for keystone.

Change-Id: Iaff536efc92e78e51d8042010ce0eb407c4a71b2
Convert glance to glance/openstack/common/setup.py

Convert glance to use glance/openstack/common/setup.py
to write the changelog.

Change-Id: Ibadec15d7e530149cf62cd00d63c06bf63cf53bb
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Merge "Support for directory source of config files"
Add -c|--coverage option to run_tests.sh

A convenience for generating coverage metrics. Might make it
more likely that developers will review the coverage stats more
often, to identify pre-existing blackspots and avoid proposing
under-tested new code.

Change-Id: Iecd10ec529dd6e93d18a6763bf36667402640881
Split noauth context middleware into new class

Use UnauthenticatedContextMiddleware in the case that you want to deploy
without an auth service. ContextMiddleware is now solely for authenticated
requests.

* Rewrite ownership tests for adding/updating images through the v1 API
* Fixes bug 992859

Change-Id: I608671aac8300c9195769542708708afda991e04
Basic functionality of v2 /images resource

* Implement create, upate, and delete actions for images
* Adds a basic functional test
* Add all /images url routes
* Implements bp api-v2-images

Change-Id: Ib9b16c443730943557f555b4aa9ce63840ff8e17
Add /v2 to sample glance-api-paste.ini

* Related to bp api-2

Change-Id: I147624128bea7e0ca84c1673857b227f0590ec78
Add localization catalog and initial po files to Glance.
Fix bug 706449.

Change-Id: I5e8e0ff0161d9db0253db12284cce347aacbac5f
Merge "Convert glance to glance/openstack/common/setup.py"
Merge "Add localization catalog and initial po files to Glance. Fix bug 706449."
Return 204 from DELETE /v2/images/<image_id>

Fix bug 995224

The v2 API design and normal RESTful idiom would suggest that a
204 No Content status is more appropriate than 200 OK.

Change-Id: Ic5ae3ffa22eafdec0f780d16cceb8ce45c84c854
Merge "Add /v2 to sample glance-api-paste.ini"
Update noauth caching pipeline to use unauth-ctx.

Updates the noauth version of the caching pipeline to use
unauthenticated-context.

Fixes LP Bug #995323.

Change-Id: Id83be95f582a4a6ebe47dbeddc8101a51988e05e
glance-api: separate exit status from message

This will be useful to tell regular failures from child unexpected
terminations.

Change-Id: I3fdf02558d8bdd8be6487edc20059e0e8a0e50b8
Use sdist cmdclass from openstack-common.

Change-Id: I6f970cb61929d32fa121c1bc1209fc1fef1d572d
Implement image data upload/download for v2 API

* Add the ImageDataController to handle upload/download of image data
* Expose file link in image entities
* Implements bp api-v2-image-upload

Change-Id: Id3618bd292b61cd5eedf48a034fa66fd80917b72
Use ConfigOpts.find_file() for policy and paste

Use cfg's new helper method to find the PasteDeploy and policy config
files. The basic behavior is "look alongside the config file" with a
fall back to the standard default config paths.

In the fairly obscure case where no --config-file is found we use an
explicit default paste file taking to account the fact that all the
glance apps have their paste config in a single file.

Add some new debug logging to make it easier to see which config files
are being loaded.

Fixes bug 992319

Change-Id: I978c4a8cb6ec6d12aaf746af511ccb572c34b7ee
Merge "glance-api: separate exit status from message"
Merge "Update noauth caching pipeline to use unauth-ctx."