Fix cache delete-all-queued-images for xattr

Deleting all queued images was broken when using caching with the xattr
driver, due to a missing get_cache_files function.

The missing function can be satisfied by substituting the call to
get_cache_files() with get_all_regular_files()

Fixes bug 1197402

Change-Id: Ia7f289e15615ef31865ebfd23902aa1ae1b05d66
Fix stubs setup and exception message formatting

Fixes time-dependent bug in test case stubs setup that could result
in stubs being unset by GC.

bug 1205091

Change-Id: Ic0d97bd1f96e42631c1ba3e1eaf4cf74b36140b2
Use cross-platform 'ps' for test_multiprocessing

This fixes _get_children() on OS X.

bug 1205367

Change-Id: I296ea18dbd601f18fe7367b42bf5aecd9ccf9646
add doc/source/api in gitignore

Some files are created after running 'python setup.py build_sphinx'.
These should be ignored by git

Change-Id: I89d671d84294169dac5aacf18800ab805605aa9f
Glance api to pass identity headers to registry v1

This patch introduces the send_identity_headers
config option that allows glance-api to pass auth identity
headers when making calls to the registry v1.

docImpact
Fixes bug 1199990

Change-Id: Ie5f07ed6dfeaa8428de4f79c4d40d182328e6ab4
Turn off debug logging in sqlalchemy by default

This commit adds a new config option sqlalchemy_debug which is used
for enabling debug messages from sqlalchemy. Previously, this logging
was enabled whenever debug was enabled. The debug log level for
sqlalchemy prints out all SQL queries and results which is way too
verbose for most cases where just debug logging is useful. This
change disables this previous behavior by defaulting the new option
to false and decoupling it from the debug config option.

DocImpact

Change-Id: I298c40b71ed0b8772ff956f61f8d94217bce0e11
Merge "Fix cache delete-all-queued-images for xattr"
Simulate image_locations table in simple/api.py

Currently the simple/api.py does not implement any 'image_locations'
related actions as in sqlalchemy/api.py. Actions like image_create/
image-update etc in simple/api.py does not look at making appropriate
changes in the image_locations table as it does in sqlalchemy/api.py

Change-Id: Ifae710d3d820225218ba72d7a16652b03b64a24f
Fixes: Bug #1202985
Merge "Glance api to pass identity headers to registry v1"
Don't rely on prog.Name for paste app

Relying on the name of the program breaks packagers who need to move
glance executables around to other locations on the file system.

Fixes bug 1194987

Change-Id: I7721c5181b17b1f34adc279c055dfff5d17b57e5
Remove support for sqlalchemy-migrate < 0.7

The sqlalchemy-migrate dependency already requires >= 0.7, so supporting
anything older is unnecessary

Change-Id: I0cfd640f420b4fe2837b496f4ef3d3e260619b63
Adds help messages to mongodb_store_db and mongodb_store_uri

Help messages are based on the webpages below:

http://api.mongodb.org/python/current/api/pymongo/mongo_client.html#pymongo.mongo_client.MongoClient
http://api.mongodb.org/python/current/api/gridfs/

DocImpact

Change-Id: Id95459b3eb2b50703e5793e3bf02c9ea1b142236
Verify if the RPC result is an instance of dict

The RPC client is currently assuming that all values returned from the
API are iterable. Since errors are always returned as dicts, this patch
verifies whether the returned value is an instance of dict before
checking for the existence of the _error key.

Fixes bug: #1204668

Change-Id: Ie953d7dd2d327334789d66f689a30ce5e36afba9
Merge "Simulate image_locations table in simple/api.py"
Allow insecure=True to be set in swiftclient

Currently when we instantiate a swiftclient.Connection we can't pass in
the insecure keyword arg. This means environments which have self-signed
certs might have trouble talking to auth/swift. This fixes that
situation and allows SSL certs to be ignored.

Change-Id: I9663ed333e93529beba4a0736d3b9207bd4f150d
Stub out dependency on subprocess in unit tests

Stub out the sheepdog Store dependency on subprocess communication
with collie.  This results in many unnecessary pipes being created
on POSIX systems.

For unit testing purposes, do not create the sheepdog store.  (There
are no unit tests for this functionality anyway.)

Change-Id: I54014a502891ae52bb567f3fae32e6ff0c74332a
Merge "Verify if the RPC result is an instance of dict"
Merge "Remove support for sqlalchemy-migrate < 0.7"
Merge "Adds help messages to mongodb_store_db and mongodb_store_uri"
Adding arguments pre-check for glance-replicator

Based on current implement, glance-replicator will expose trace
if there is no arguments specified or the server:port format is bad.
This fix will add pre-check for those sub commands.

Fix bug 1202513

Change-Id: Ib8a90ce583cf938c9fdc0e8ad36af2ef8dfc976b