Move optional dependencies from pip-requires to test-requires

python-sendfile and python-xattr are both optional library
dependencies in Glance now. Some systems, like Windows, do not
have these libraries and so we should move them from pip-requires
to test-requires. AFAIK, the pip-requires is what is used to
build the Windows installer.

Fixes LP 1031396

Change-Id: Ib47244e51ae03991e6171ab8d47238d955743567
Expose 'status' on v2 image entities

Added 'status' read-only attribute to v2 schema/serialization.
Updated the schema and added unit tests as appropriate.

Related to bp api-2.

Change-Id: I457527413d4ccca813a45ac03e66a90071f0af76
Raise HTTPBadRequest when schema validation fails

Raise HTTPBadRequest when request schema validation fails rather than
InvalidObject. This prevents a 500 Internal Server Error.

Related to bp api-2.

Change-Id: I70bc8f8b8fbb0f95d9563e9eb08d7e0a47111198
Reject rather than ignore forbidden updates

Return HTTPForbidden when an attempt is made to update
an attribute which is either read-only or only settable
by an Admin user. Previously a success (200) was returned
for these cases.

Related to bp api-2.

Change-Id: I1aff6975a968a00bf133face606cc35280835a4f
Make TCP_KEEPIDLE configurable

Addresses LP bug #1031794.

Change-Id: I9a3a6a23b1bcec5229b15234512e04cc47c3ffd9
Process umask shouldn't allow world-readable files

This ensures that image cache files and file-backed
images are not world-readable.

Fix LP bug 1031796

Change-Id: I85a26b4e645e7cb32e17164e47fad62f4c44976a
Store context in local thread store for logging.

This also fixes the logging of request ids for every request.

Fixes bug 1031596

Change-Id: Ifd0217c99402316214efaf1fe8533c60c2277257
Use event.listen() instead of deprecated listeners kwarg.

The listeners kwarg is deprecated in SQLAlchemy 0.7.0. Since 0.7.3 is
the minimum required version of SQLAlchemy, use the new event.listen()
API instead.

Fixes bug 1031405.

Change-Id: Ibbfe46d065575b1954a47b3a28c61151dfb1e06e
Update v1/v2 images APIs to set store ACLs.

Updates the images controllers so they call set_acls on
the backend store when adding/updating images and members.

Made some changes to the v2 API unit/functional tests to
use real locations instead of just UUIDs so the tests work
with the new set_acls call.

Partially implements blueprint: swift-tenant-specific-storage.

Change-Id: Ib249acfe440f4b75bc9edd7b73fe10127b8333b1
Add swift_store_admin_tenants option.

Add a swift storage option to configure a default list of admin
tenant IDs which will be granted write access on any swift
images.

This setting might be useful when a user choose not to use a global
swift admin role when managing glance images. This might also
be useful when implementing delayed delete for glance swift
multi-tenant.

Partially implements blueprint: swift-tenant-specific-storage.

Change-Id: Id65e1c8d114c9551b99f6a18c527ba26aefd341f
Merge "Move optional dependencies from pip-requires to test-requires"
Use with for file IO.

Use with for file IO, instead of keeping track of state myself.

Change-Id: Ifc1a49fa51d3e7da08da32fb0966f2637089b58a
URLs to glance need to be absolute.

Otherwise the apache SSL frontend that many users deploy will get
confused and return a HTTP error.

Change-Id: Ie8ae560810a5e5419e4d4aacae17e1e301ed4126
Add a missing header strip opportunity.

As well as adding some more logging to make this easier to debug in
the wild.

Change-Id: I8ec765b6f066569a7483f01201d4907ad1794291
Support master and slave having different tokens.

This came up recently for a user -- their regions have separate
keystone instances, and therefore don't share auth tokens. So, in
some cases we need to pass in two tokens instead of one.

Resolves bug 1029758.

Change-Id: Iad241ff3583a62297d89ee15cbd3d58417e5fedf
uuid is a silly name for a var

Given its also the name of an import.

Change-Id: Ib19e69eb9a1047f735ff649a05b400642e8ec29e
Merge "Support master and slave having different tokens."
Merge "uuid is a silly name for a var"
Merge "URLs to glance need to be absolute."
Merge changes I70bc8f8b,I45752741

* changes:
  Raise HTTPBadRequest when schema validation fails
  Expose 'status' on v2 image entities