A test for concurrency when glance uses sleep.

Bug 988099 showed that time.sleep was not being monkey patched
resulting in no concurrency when a sleep was called.  This was
fixed with change I24dfe818.  This commit provides a regression
test to ensure that this behavior remains in place as glance is
developed over time.

Change-Id: Iafbfaa9fd672b5ffd1d19a43dee03dfbfc6d3a2d
Generate notification for cached v2 download

Cached v2 image downloads were not generating notifications.
For now use a 'size_checked_iter' to generate a
notification.

Fix for bug 1132755.

Change-Id: Iec01efb93d7a1853973d355221d06fad9631afd7
Remove unused variable 'image_member_factory'

Fixes LP: #1134465

Change-Id: I99b7f4754646a93f2f6625c50f99585dd8b381ba
Refactor leaky abstractions

Prior to this change, it was common for a domain layer that was wrapping
Image objects returned by methods to neglect to unwrap the objects on
the way in to other methods.

This change fixes that by making proxy base classes less leaky and
inheriting from them in the various domain layers.

Change-Id: I22866cdd800c4c95b43c92762ead3775cffeaa80
Update acls in the domain model

This change brings the domain model up to speed with the v1 stack by
issuing calls to store.set_acls whenever
 - an image is saved into the database (and locations are set)
 - a member is added to an image (and locations are set)

related blueprint glance-api-v2-image-sharing

Change-Id: I45f10752f6c04646b65f86e44b59bdeea534f024
Merge "A test for concurrency when glance uses sleep."
Switch to oslo.config.

The oslo-config package has been renamed. Switch to the new
version. (should fix SmokeStack).

Change-Id: I6744337008825498a2f0f5c74139661410968f50
Fix v2 data upload to swift

An upload of image data via the v2 api when using a swift backend would
stacktrace with 'UnsupportedOperation: seek'.

Wrap the data in a CooperativeReader to both 1) fix this issue and 2) reap
the multi-threaded 'sheduling fairness' benefit of the CooperativeReader.

Fix for bug 1147231.

Change-Id: I604c67d2d6ecd77a12e11b2f641edb4095c4bb60
Merge "Generate notification for cached v2 download"
Merge "Update acls in the domain model"
Merge "Switch to oslo.config."
Merge "Remove unused variable 'image_member_factory'"
Ensure disk_ and container_format during upload

This patch changes the image domain model so that the transition from
'queued' to 'saving' or 'active' status cannot take place if the image's
disk_format or container_format are not set.

Fixes bug 1131994

Change-Id: I454d9df736edd771f9d5d93eca4cd317116cc985
Merge "Fix v2 data upload to swift"