Fix 'glance-cache-manage list-cached' for xattr

The xattr driver for the caching middleware was returning it's
last_modified/last_accessed times in iso8601 format rather than a
timestamp.

This was inconsistent with the sqlite driver and caused the
glance-cache-manage command to fall over when using the xattr driver.

Fixes bug 1197360

Change-Id: Ie72dcd9f41f7a3b7405cda9fe28e1e468fcc1bef
Use oslo.sphinx and remove local copy of doc theme

Use the new oslo.sphinx version of the OpenStack doc
theme instead of copying it into this repo.

blueprint oslo.sphinx

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Change-Id: I0bd91f7bb43f97b99051fed65b75fc05d5149cc8
Ignore files created by Sphinx build

Change-Id: I46f34d9320ce39977facff705c52d272a160220f
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Fix doc formatting issue

Fix the underline length to remove a warning from
the documentation build.

Change-Id: Icc1569cbeaa6c964d608a254095f7a778ff0c74e
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Fix list formatting in docs

Fix the way the notification payload is documented
so it uses proper rst syntax and doesn't produce a
warning in the sphinx build.

Change-Id: I0d2adf36c7f5262770f5a3bda05c9ddd21efc17d
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
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
Notify does not occur on all image upload fails

Some exceptions did not have notifications sent after exception is caught.

Fixes bug #1177972

Change-Id: I86ba420c924d01153d5afdfc732239d1934175f8
Remove references to clean arg from cache-manage

The usage message for glance-cache-manage lists "clean" as an available
command, but this functionality is part of a separate tool,
glance-cache-cleaner.

Remove any references to this to avoid confusion.

DocImpact
Fixes bug 1189451

Change-Id: I2aba8164ab9ef0c3bef31870cb3771233a722d27
Unit tests for scrubber

This patch adds a place for unit tests for the scrubber. The test in
it addresses the change made at:
https://review.openstack.org/#/c/29405/

addresses bug: 1195423
blueprint: refactoring-better-faster-stronger-functional-tests

Change-Id: I02da0847c3f93474f478c8740e4649280a02eae1
File system store can send metadata back with the location.

This patch allows the glance operator to associate metadata with
the file system store.  The metadata will be returned to v2 users
with each location that was created by the file system store.  This
information can give clients context into how to consume the data.

The new configuration option: file system_store_metadata_file is
added.  This is a path to a JSON file.  The JSON document can
contain lists, dicts and unicode values only.

blueprint: direct-url-meta-data
blueprint: multiple-image-locations
docImpact
Change-Id: I3f040374455feb876e970a1813099598301774b5
Merge "Fix 'glance-cache-manage list-cached' for xattr"
improving error handling in chunked upload

Keep traceback of chunked upload in a variable and raise it after
deleting orphaned data to avoid covering sys.exc_info().

fixed bug #1185609
fixed bug #1199125

Change-Id: If489f42bb97a01519d13de47eeb5d180b31ba6a7
Handle client disconnect during image upload

If a user does a ^C during a chunked image upload, eventlet.wsgi.server
will raise one of ValueError or IOError when trying to read the next
chunk.

Handle this common scenario by raising(logging) a HTTPBadRequest error rather
than HTTPInternalServerError.

Fixes bug 1196953

Change-Id: Ic88b142a40c548141be4b40a15f94b71603814e9
Merge "Notify does not occur on all image upload fails"
Merge "File system store can send metadata back with the location."
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
Merge "Use oslo.sphinx and remove local copy of doc theme"
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
Merge "Handle client disconnect during image upload"