Tests added for glance/cmd/cache_pruner.py

Related to blueprint glance-cmd+unittests

Integration test test_cache_pruner_main added to cover
chain of calls between glance/cmd/cache_pruner.py and glance/image_cache
module.
Unit test test_cache_pruner_main_runtime_exception_handling added to
cover exception handling for main() method of cache_pruner.py

Change-Id: I7d7b182260a407aed1288a5d136e03cbe029523f
Sync gettextutils from Oslo

Sync the latest code from Oslo to support Glance i18n.

afdbc0a Fix E501 in individual openstack projects
9d529dd Make Message keep string interpolation args
ec6d900 Add support for locales missing from babel
221c37d Allow the Message class to have non-English default locales
0e1af5b Implementation of translation log handler
2cfc1a7 Translation Message improvements

Partially implements bp i18n-messages

Change-Id: Ia56a94e42ebe1d9b539b7bc513b0342e9b2450b3
Check --store parameter validity before _reserve

Currently the value of the --store parameter is checked after the call
to _reserve is made. Thus the image is actually created on the
database even though the store is invalid, and then returns a E400.

Change-Id: Ic27ed30e605794342161530e8a8eacd6e6deb5d9
Closes-bug: #1260314
Merge "Tests added for glance/cmd/cache_pruner.py"
Merge "Sync gettextutils from Oslo"
Use common db migrations module from Oslo

Changes due to use common migration module instead of Glance
implementation.
Removed glance.db.sqlalchemy.migration module and related code.

blueprint db-use-oslo-common-code

Change-Id: Ib7e2e478a84a90cc9c773f2733dc60b88834fd23
Merge "Check --store parameter validity before _reserve"