Adds option to encrypt 'location' metadata.

Implements blueprint swift-location-credentials

When the new option is enabled the location metadata
(which may include user credentials) is encrypted
before being sent to the registry server.

Change-Id: I072e3f5c81f187435b1c156627076d5fde087af5
load gettext in __init__ to fix '_ is not defined'

gettext.install needs to be run on every potential entrypoint; this
resolves bug #885529 (the python standard library includes a noop
gettext library for this purpose). This is also how nova does it.

Change-Id: I4ceaa4782461ebf6d27836336f288d79ba15cf2d
Fix typo in the cached images controller

Change-Id: Iffd7bf6d476b7422baa519066885688e49af8eaf
Fixes LP Bug#878411 - No docs for image cache

Adds documentation on managing the image cache

Adds a simple CLI program to queue an image for
caching.

Change-Id: I2b4c9708c521fdcfaf1c6b8f07505e130923c4b7
Fix global name 'sleep' is not defined in wsgi.py. Fixes bug #888215.

Change-Id: I02a43dfaf3cb0505e14b7f942bb64f3e94dbf4fa
Check to make sure the incomplete file exists before moving it during
rollback. Fixes bug #888241.

Change-Id: I98bca574a26f9ab7173ac593d3b32b68d78d2360
Fix name error in cache middleware

Fixes bug 888284

Change-Id: I9ecb19901feabc5da0c5bc35e8535530e76e08a9
Merge "Fixes LP Bug#878411 - No docs for image cache"
Add some test cases for glance.common.config

Test cases cover find_config_file(), load_paste_config() and
load_paste_app()

Change-Id: I2b5feea90881ccf80ac3c04b909686409a0a5c0e
Allow glance-cache-* find their config files

By default, glance-cache-cleaner looks for glance-cleaner.conf but
its actual config file is glance-cache.conf.

Change the find_config_file() argument to conf_name and make it an
optional argument to load_paste_app(). This allows us to specify
a different config file for the glance apps than their app name.

find_config_file() is also changed to raise an exception if no
config file is found.

Change-Id: Iec71218f5b2f0a7f057ea02f4549bd743892cc65
Remove unused versions pipeline from PasteDeploy config

Since the version negotiation middleware was introduced, versions
pipeline app in the config is unused. Consequently, the versions
app factory is unused too.

Change-Id: I2d50432de215e51c1e52f8d68eaa0820e9b5bd0b
Merge "Add some test cases for glance.common.config"
Gracefully handle image_cache_dir being undefined

This abstracts out the 'set_paths' method of our two cache drivers into the
base driver for now. It raises an exception when image_cache_dir is not
defined. Fixes bug 888340

Change-Id: Ib0be8c9b29ba1efebd03a0cdb8d001a003fc236f
Update 'glance show' to print a valid URI. Fixes bug #888370.

Change-Id: Ibe8d7974eb2dfca79953b473b904df55daafa748
Adding tests to check 'glance show <ID>' format

Prevent regression on bug 888370

Change-Id: I7dedc31cd19c242af25b8a947dbe936a1ed2eb13
Correcting image cleanup in cache drivers

Fixes bug 888382. Includes some removal of unused code.

Change-Id: I53923bcf1fe13d63f7242cf328eb53e37d28285e
Merge "Allow glance-cache-* find their config files"
Merge "Adding tests to check 'glance show <ID>' format"
Removing assertGreaterEqual

Python 2.6 doesn't support this, so we should use assertTrue
instead. Fixes bug 888711

Change-Id: I78a0603bc4979ae3831394ea57f12fd328e03573
Merge "Gracefully handle image_cache_dir being undefined"