Add copyright text to glance/openstack/common/__init__.py

Synchronize the content of glance/openstack/common/__init__.py to the
one in oslo-incubator.

Change-Id: Idd059e3f4d00d91c9a14cf302fd780044929e3e5
Closes-bug: #1288877
Detect MultiDict when generating json body

Detects webob.multidict Multidict at sanitizerand returns mixed()
out of them so they can be parsed as json.

Fixes image-list when using Image API v2 with registry.

Implements a test to verify that the /rpc endpoint exists as
intended.

Closes bug: #1246980

Change-Id: I3d28ca5d8f1af0ec7b9e7a8684e3160f674b8f4c
Make the VMware datastore backend more robust

This patch contains several fixes related to invalid configurations
and corner cases:
- better error handling for the store operations
- better logging when response is not successful
- better support for various store_image_dir formats

Change-Id: I6c0003e29d621c1f71490cb9fce163dc840a113f
Closes-Bug: #1291646
Merge "Add copyright text to glance/openstack/common/__init__.py"
registry: log errors on failure

If an image fails to be updated/created/deleted/etc for whatever reason,
the registry server returns 500 – but there's no trace of the actual
error. Let's catch the exception log it, and then re-raise it so it
still return a 500 status code. But at least we can debug.

Change-Id: Id437f23011a10365e85914dc1934f610bfa3dd28
VMware store.add to return the image size uploaded

This patch fixes a tempest test failing for the VMware datastore.
When the size provided to add() is zero but the image size is actually
larger than zero, add() should return the size of the image uploaded
and not zero.

Tempest failure:
api.image.v1.test_images.CreateRegisterImagesTest.test_register_then_upload

Change-Id: I16524c0f25aa4124c24ca25ac014819267dd72c3
Closes-Bug: #1292764
Merge "Detect MultiDict when generating json body"
Remove openstack.common.fixture

This package is not used

Change-Id: I9240ee4b1aa5934c6fc833e79ea32c53c6bc7569
Merge "VMware store.add to return the image size uploaded"
Merge "registry: log errors on failure"