Pin kombu and anyjson versions

The minimum version of kombu in the requirements
list has been updated to ensure that compatible
kombu and msgpack libraries are used across all
projects. That update also requires an update
to anyjson.

Addresses bug #1134575

Change-Id: I1520af1315fe649f52ab62769164dc67f4396651
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
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
Fix 'glance-cache-manage -h' default interpolation

Some options were showing up as %(default)s when running
"glance-cache-manage -h".

Fixes bug 1197472

Change-Id: I1c7586cbc52445e3bdca28a71378f40ecb5b07a9
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>
Sync install_venv_common from oslo

Change-Id: Idd7fd1310b58e81ceb9ae06bb1e9710aee1f4a65
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
Sync gettextutils from oslo

Bring in the necessary code for handling Glance translations

Partially implements bp user-locale-api

Change-Id: I5bc88e018c915d177560bcd42bd5733675e59516
On deleting an image, its image_tags are not deleted.

When the image is deleted, the delete operation also marks all the images' tags for deletion.

Fixes bug 1195346

Change-Id: I9958079437840860264648a8b0ce2ec2ff7a30d6
Fixes image-download error of v2

When trying to retrieve a Glance image using the v2 api, user will
get an error:

'utf8' codec can't decode byte 0xcc in position 1217: invalid continuation byte

This is because Glance client expects a response of type content-type:
application/octet-stream but it's getting a Content-Type:

text/html; charset=UTF-8 Transfer-Encoding: chunked

The root cause is Glance will return the image data from cache if
there is. However, in method _process_v2_request, the content type
has never been configured. See:
https://github.com/openstack/glance/blob/master/glance/api/middleware/cache.py#L162

Fixes bug 1193310

Change-Id: Icab5e28db63455358ab3919bd94c484411987e39
Merge "Sync install_venv_common from oslo"
Merge "Pin kombu and anyjson versions"
Merge "Fixes image-download error of v2"
Allow storage drivers to add metadata to locations

This patches allows a storage system to add metadata to a location.
For example, if a location is a file:// URL the storage system may
wish to add information about it like the following:
{'FS': Gluster, 'mountpoint': '/usr/local/', 'namespace': 'abc-efg-xyz'}
Such information can be useful to a client with access to the direct
URL (often times the URL alone cannot encode enough information).

With this change when new data is added to the store a dictionary
is returned along with URL.  That dictionary is then stored in the
DB with the URL.  It is up to each store to determine what is in this
metadata dictionary.  Possible way to do so are with a configuration
file.  This patch does not included storage systems (other than tests)
that set this information.

If the API service is configured with the follow options:

    show_multiple_locations = True

then the location and the location information is returned with the
image information in the field 'locations'.  locations is
a list with the following format:

{'url': '<url>', 'metadata': <a storage specific dict>}

With this patch it will always be a list of one, but future patches
relating to the blueprint multiple-image-locations will allow for more.

blueprint: direct-url-meta-data
blueprint: multiple-image-locations
docimpact: show_multiple_locations

Change-Id: Ia832b8a8366bb06bfbaa53871af39a6a10b5721d
Adds missing error msg for HTTPNotFound exception

Fixes bug 1199373

Change-Id: Ie1e554bd192c90de420672e4b87c489b8ffffc85
Merge "On deleting an image, its image_tags are not deleted."
Make db properties functions consistent with the DB API

Currently property related functions are not consistent with the
database API. As for the create operation, the API returns an
ImageProperty model instead of a dictionary and in the case of the
delete operation, the function expects a property instance instead of a
reference name.

This patch makes both calls consistent by returning a dictionary when a
property is created and receiving a property name instead of its
instance when a property needs to be deleted.

Fixes bug: #1199364
Implements blueprint registry-db-driver

Change-Id: Ibc7067cf712942610c7507f22f8895c2d531172a
Merge "Allow storage drivers to add metadata to locations"