Catch exception.InUseByStore at API layer

If user create an image with Ceph backend driver, and then create
an instance based on the image. As a result, user will run into
500 error when deleting the image. Because rbd driver is raising
exception.InUseByStore()at [1] when the image is in use, but no
code to catch the exception at REST API layer.

[1] https://github.com/openstack/glance/blob/master/glance/store/rbd.py#L290

Closes-Bug: 1345942

Change-Id: I350c235944aab226dc96de169be2087e2b599ab4
Bump osprofiler requirement to 0.3.0

ofprofiler.notifier.create, which is used by recently merged
commit 94b670c199fcc39784edd90b323b0396914ce66a, does not seem
available in osprofiler 0.1.1.

Closes-Bug: #1354500
Change-Id: I563558efcf4e909e2a97003bf84a0785091fd360
Log task ID when the task status changes

This patch adds the task ID to the existing log messages which
occur when the task status changes, whether successful or a
failure.

Change-Id: Ie1ebdd92805370b706d8d9eec29d1b433095369a
Closes-Bug: 1358888
Imported Translations from Transifex

Change-Id: If853cd78bb773fc20eced3f507dc0ccb3dbf8797
Merge "Catch exception.InUseByStore at API layer"
Replacement mox by mock

Replace mox testing library by mock one in:
- glance/tests/unit/common/test_rpc.py,
- glance/tests/unit/test_filesystem_store.py,
- glance/tests/unit/v1/test_registry_client.py,
- glance/tests/unit/v1/test_upload_utils.py,
- glance/tests/unit/v2/test_registry_client.py

Partially Implements: blueprint replace-mox-with-mock

Change-Id: Idbdec5a23d88cee22e9045d43739bfa09b6b4523
Merge "Bump osprofiler requirement to 0.3.0"
Merge "Imported Translations from Transifex"
Check on schemes not stores

Since the `_upload` method loads the store based on the scheme, we need
to check whether the scheme exists in the known schemes instead of
checking in the list of known stores. Without this fix, stores with a
scheme name different than the store itself will not be usable through
the `x-image-meta-store` header.

Change-Id: Ia33afc1629cb47a31982df7932ac0d9aeb201b4f
Closes-bug: #1357462
Merge "Check on schemes not stores"
Merge "Replacement mox by mock"