Add credential quoting to Swift's StoreLocation.

 * Added credential quoting in glance.store.swift.StoreLocation
   to support usernames and passwords that contain '@' characters.
   Without quoting, '@' characters in credentials (e.g. using an
   email address as a username) would result in an exception being
   thrown by parse_uri.
 * Added a migration to support the change in location format.
 * Addresses bug 994296

Change-Id: I92c4f4af914394aada1b4415a42f5a1308187dc4
Implement image visibility in v2 API

* Add visibility attribute to images (aka is_public)
* Implements bp api-v2-image-visibility

Change-Id: I04e77c051769d0cc87fc632eef12f1a0aadf39a3
Backslash continuation removal (Glance folsom-1)

Fixes bug #1000636

Removes backslash continuations (except sqlalchemy and mox related code)

Change-Id: I08e6db28f157d67be9fc11ec02cc0844c006a6df
Merge "Implement image visibility in v2 API"
Merge "Backslash continuation removal (Glance folsom-1)"
Stubout httplib to avoid actual http calls

Fixes bug #1000828

- Added some additional test code cleanup

Change-Id: I0589aa22d8e4b835a1d8d72e47ba5d1ceb982aa8
Fix glance-api process leak in respawn storm test.

Fixes a glance-api process leak that occurs when running
TestMultiprocessing.test_interrupt_avoids_respawn_storm.

The test code creates an array of pids sorted numerically sorted in
reverse (largest to smallest) meaning the child pids should be at the
top of the list. This patch simply grabs the child pids from the top of
the list instead of relying on the length of the list.

Fixes LP Bug #1000931.

Change-Id: I91d538e686a770778d9855a1bd5a1767cc83842e
Merge "Fix glance-api process leak in respawn storm test."
Merge "Add credential quoting to Swift's StoreLocation."
Support DB auto-create suppression.

Adds a new boolean config option, db_auto_create, to allow the
DB auto-creation be suppressed on demand. This defaults to True
for now to maintain the pre-existing behaviour, but should be
changed to False before the Folsom release.

The 'glance-manage db_sync' command will now create the image*
tables if the DB did not previously exist. The db_auto_create
flag is irrelevant in that case.

The @glance.tests.function.runs_sql annotation is now obsolete
as the glance-api/registry services launched by functional tests
must now all run against an on-disk sqlite instance (as opposed
to in-memory, as this makes no sense when the DB tables are
created in advance).

Change-Id: I05fc6b3ca7691dfaf00bc75a0743c921c93b9694
Leave behind sqlite DB for red functional tests.

We leave behind the sqlite DB for failing tests to aid in diagnosis,
as the file size is relatively small and won't interfere with subsequent
tests, as it's in a per-test directory (which is blown-away if the test
is green).

Change-Id: I90be433fc6f02234b1118a547ea0b5524238161d
Merge "Support DB auto-create suppression."
Add connection timeout to glance client.

Adds a timeout option to glance client and bin/glance.
Includes fast running test case to verify the timeout works correctly.

Fixes LP Bug #1002907.

Change-Id: I4a0c4a8ef1862346ec2cd068d9d9e0577cba9b68
Fix paste to correctly deploy v2 API

Corrects a typo where 'apiv1app' should be 'apiv2app'

Change-Id: I4ef29f7539a572ed65422fd548e9718e86161b5f
Merge "Fix paste to correctly deploy v2 API"
Correct format of schema-image.json.

Correct the JSON format of schema-image.json. Fixes issues where
glance-api won't start due to invalid JSON in this file.

Fixes LP Bug #1003470.

Change-Id: Ibacc49f2c45e233bd6ad25b3334e013acaae8339
Adds sql_ config settings to glance-api.conf.

The Glance v2 API makes use of the DB directly. As such
we should include the sql_ configs in the default glance-api.conf
file.

Fixes LP Bug #1003504.

Change-Id: I5e287dafcd65864f56789ae22bab3dcc6b353a47
Remove unused imports in setup.py

Change-Id: Ifb08695a8a9a264a3032ae09524e8b37fa0dd761
Add missing files to tarball

Add a few missing files to generated tarballs.
Fixes bug 1001213.

Change-Id: Ie6ce3069e9e93aeb6be78bd2d90ad4f07ae56b3a
Fail gracefully if paste config file is missing.

If the paste config file can't be found, fail with a RuntimeError
and message instead of a traceback from os.path.abspath.

Change-Id: Id8823dbadab06a0de6bb7c235b70c355812ed55e