Add retry to server launch in respawn test.

Avoid test failures caused by EADDRINUSE.

Change-Id: I8cf044b55da30a56c7e2d1435085d23bd198c275
Use PyPI for swiftclient.

Change-Id: I3cbef069459c82ab175998a8f58091cd8214cb3c
Simplify v2 API functional tests

Remove overly-verbose and duplicated test coverage from
the v2 images functional tests.

Change-Id: Ie6b8057f1d73fd3f1d85e862d3072fc270aef5bd
Improve eventlet concurrency when uploading/downloading.

When uploading/downloading multiple images using the
same glance-api worker process some of its eventlet
threads can become starved. Inserting statements to
trigger cooperative yields, ie sleep(0), allows fairer
scheduling of the other eventlet threads.

Fixes LP Bug #1021002.

Change-Id: I5a8f255e9507d18813d07d418e6acefa10d9f6bb
Allow admins to share images regardless of owner.

Updates the Glance DB's is_image_sharable function so that
an admin can share an image regardless of the context ownership.

This fixes issues when trying to write Glance functional tests
which use the noauth middleware (UnauthenticatedContextMiddleware).

The motivation behind this change is I'd like to write some
functional tests for image-members that work with noauth.

Fix bug 1021054

Change-Id: I6d939876a4c4bf5f191463f5ca434fc524a6ac59
Merge "Improve eventlet concurrency when uploading/downloading."
Allow admin's to modify image members.

Updates the v1 Glance API and Registry controllers so that admins
can modify image membership regardless of image ownership.

The motivation for this change is to be able to test image membership
when noauth middleware (UnauthenticatedContextMiddleware or
FakeAuthMiddleware) is being used and includes the following changes:

 * Added is_admin option to FakeAuthMiddleware.

 * Refactors the access checks into a common function called
   _check_can_access_image_members.

 * API unit tests which require is_admin=False for noauth were also
   refactored to use an improved FakeAuthMiddleware which supports
   is_admin = False.

 * Update RegistryClient to use get_status_code int for 204 status code
   comparisons. Fixes issue where incorrect status code was returned.

 * Updated members unit tests to support these changes.

Fixes LP Bug #1021740.

Change-Id: I9d0e4679f9c0cb37f6df7c6f90460c22c37f3fbd
Add function tests for image members.

Updates the bin/glance test suite with support for testing image
members.

Change-Id: I3e9ba6c59ebc5969b1cee8773c2b6610c1968872
Merge "Add retry to server launch in respawn test."
Merge "Use PyPI for swiftclient."
Expose owner on v2 image entities

Expand v2 image serialization to accept and return the 'owner'
attribute. All image entities have an owner attribute, while only
admins can provide it in a request. Related to bp api-2.

Change-Id: I8746574528c8be1f17cf570c91ba6bd7ef27b032
Merge "Simplify v2 API functional tests"
Report size of image file in v2 API

Size will be None until image data is uploaded. The size attribute
will be updated to reflect the actual size. Related to bp api-2.

Change-Id: I577d8005b9ce60bf1470cda43413f0cdc034dbe1
Keystone dep is not actually needed.

An end user might need to install keystone to use the default config,
but glance testing uses stubbed out fakes.

Fixes bug 1021798

Change-Id: I99da75d29ba483125518760126d6145310ae1479
Ignore openstack-common in pep8 check

Change-Id: Ic48b12918f8e3ca439917a614927b41cd099c63a
Merge "Ignore openstack-common in pep8 check"
Add openstack.common.log

Change-Id: I3827a319db649a2264aa260cd964e0a093fef524
Merge "Allow admin's to modify image members."
Reorganize context module

* Move RequestContext class to glance.context
* Move context middlewares to glance.api.middleware
* Update tests to reflect move
* Update paste configs

Related to bp glance-request-tracking

Change-Id: I289b546ec28c973a3022be779ce378ae2febb340
Generate request id and return in header to client

* Generate a uuid in RequestContext.request_id on init
* Present request_id in an 'x-openstack-request-id' header using
  process_response in the ContextMiddlewares
* Related to bp glance-request-tracking

Change-Id: Idd9b86661322250b6167a1ee23e5baae91066ff6