Fixes issue with non string header values in glance client

Fixes bug 1032798

By using Glance client on Windows the following exception is raised:

TypeError: sequence item 0: expected string, long found

Details on how to reproduce the error are available in the bug description

Change-Id: Ib4528702b11aabdf939c6358f92ad7ff9c3ff20d
Set proper auth middleware option for anon. access

Fixes bug 1037793

Change-Id: I89c05b5004f6a93608c0e23302f04b95b9018c29
Fix auth cred opts for glance-cache-manage

The glance-cache-manage binary now supports the same auth env
variables and flags as python-glanceclient. The old flag formats
are still supported (but not documented) to support backwards-
compatibility.

Fixes bug 1038112

Change-Id: If9f15d030e3167f5c81ea275c0005c854cd94a40
Add DB Management docs

Fixes bug 909064

Change-Id: Ifd477b345dfb03efe8e8e5befa03a0cb2a3c3ce8
Correctly re-raise exception on bad v1 checksum

The exception re-raise during v1 image upload operation was
failing due to some weirdness in _safe_kill. This patches over
the problem by explicitly re-raising the caught exception object
after doing the necessary teardown.

Fixes bug 1036470

Change-Id: I0929bb3b2ac88f0b80f47eb61e642fe1fee35218
Make max image size upload configurable

Add conf option image_size_cap to represent what the internal
IMAGE_SIZE_CAP constant used to cover in the v1 API. The default
is reduced to 1 TB from 50 PB.

Thoroughly test this on image create and update through the v1 API.

Fixes bug 1038994

Change-Id: Ie0985b62228f8b28c005a8847049d7b68d9b959a
Adds glance registry req id to glance api logging

Fixes bug 1036409

Change-Id: Ifadfa74ba4b8de854d248c4c72e5c195e8bdc4ed
Add back necessary import.

Unit tests are failing because an import of glance/common/config.py was removed.
When it is imported it registers a few common cfg opts that otherwise would not
be registered. If this doesn't happen then unittests will fail since they expect
those opts.

Change-Id: Ib90c0af3d935243fd0aa8487131305f6843c1330
Merge "Set proper auth middleware option for anon. access"
Merge "Fix auth cred opts for glance-cache-manage"
Merge "Make max image size upload configurable"
Convert limiting_iter to LimitingReader.

Glance commit 3c69df5aa707b4216ef7001dbe28fa0a5912493c added a new
limiting_iter function in utils which we use to limit reads to
image data being uploaded. This simple generator doesn't work
with image backends like the Swift store which require a 'read'
method.

This patch swaps out the simple limiting_iter function for a
LimitingReader class which supports both 'read' and __iter__
functions.

Fixes LP Bug #1039212 which cause the exception below when used
with the previous code:

AttributeError: 'CooperativeReader' object has no attribute 'read'

Change-Id: I87d9a30f7afe0207386d621050312374ced161d5
Add policy check for downloading image.

This patch adds a policy, 'download_image', to be enforced when image data is
retrieved. It also does some basic refactoring of how policies are enforced.

Fixes bug 1038086

Change-Id: Idd844b615d362eae3197e106067c29dba8e3eeda
Merge "Add back necessary import."
Merge "Add policy check for downloading image."
Add 'bytes' to image size rejection message

Change-Id: I943c5acb8693decf618d6796e027381431db578f
Remove partial image data when filesystem is full

When an image is uploaded that fills up the local filesystem, attempt
to delete the created file. This only applies to the 'filesystem'
store driver.

Fixes bug 1019421

Change-Id: Ie12d736f3efb29b0862fef2899a1d2c142def38e
Add nosehtmloutput as a test dependency.

Adding nosehtmloutput as a test dependency allows nose to output its
results to an html file. This will be used by Jenkins to save logs on
a different server.

Change-Id: I811f56c37218301c4c5bd25bae92a4b5b74537de
Merge "Add DB Management docs"
Remove autodoc and useless index docs

* Remove autodoc sphinx extension
* Ignore auto-generated 'api' docs
* Prevent the corresponding 'api' index from being created
* Prevent an empty 'index' page from getting generated

Related to bp glance-folsom-docs-cleanup

Change-Id: I82c9389f884ea4af853f1215731c051d1fb596e8