Fail a test if time.sleep called for no reason

If a mild error screws something up in task manager, an entire class
of tests will continue polling using GET requests until they hit their
rate limit, destroying any attempt to parse the test output to see
what is wrong. This pull request fixes that.

Change-Id: I7c00a174dfb7970357ee2bd71550983d68e0e8ae
Closes-Bug: 1315518
Get service endpoints from catalog

* Add catalog to TroveContext
* Populate context with catalog in middleware
* No new keystone calls made
* If *_url from conf available, it overrides catalog
* Following clients now use service_catalog:
    * cinder
    * heat
    * nova
    * swift
* Add new conf options (necessary to maintain parity with flexibility
  of *_url in conf):
    * os_region_name
    * cinder_service_type
    * heat_service_type
    * nova_service_type
    * swift_service_type

Closes-Bug: #1222891
Change-Id: I669bfd9fe63e538f9412f53723c6606b04c2e2ae
Imported Translations from Transifex

Change-Id: I4717369e33a43b2e267a7290b251a78be405899f
Fix heat template for cassandra

Reasons:
 - heat template for cassandra misses OS::Neutron::Port resource which is 
   required for NICs that can be applied to an instance.

Changes:
 - adding OS::Neutron::Port cassandra heat template.

Change-Id: I9661ae5d6e0695b7fd56d97cc6cd6ab874a3b5d0
Closes-Bug: #1308131
Consider datastore version when generating configs

This commit upgrades the bit of code which determines the datastore
config to render. Currently that code only acknowledges the datastore
manager, but with this config it's possible (but not required) to let
it use a unique config based on version or even flavor.

Author: Tim Simpson <tim.simpson@rackspace.com>
Co-Authored-By: Craig Vyvial <cp16net@gmail.com>

Change-Id: I17ac1ab03bad4ad3606e0cf3d945ca8d7313f96c
Implements: blueprint datastore-configs-cant-use-multiple-versions
Updated from global requirements

Change-Id: Iff9ed526e36185fd524683a50eb4264c362bda23
Merge "Imported Translations from Transifex"
Merge "Updated from global requirements"
Merge "Get service endpoints from catalog"
Remove all mostly untranslated PO files

We only import PO files that are at least 75 % translated,
so we can delete now all other PO files. The patch only
removes the mostly untranslated files. Once a file becomes mostly
translated, the bot will import it again.

This removes all languages besides en_US.

Change-Id: Ia2953a0e78afc4b440f3a42363184aad629c9434
Closes-Bug: #1317794
Merge "Consider datastore version when generating configs"
Update database-api to follow OpenStack conventions

Update pom.xml for building the database-api document to follow the
conventions used by the OpenStack documentation team:
* Remove "review" from published guide
* Disable Disqus
* Use latest clouddocs-maven-plugin (2.0.2)
* Fix canonicalURL so that it points to the current location
* Fix formatting and whitespace of file

Remove hardcoded publication date from cdb-devguide, this gets
generated at build time.

Update doc-test.conf for pom.xml change.

Change-Id: I90eb16917edbb99d99147c4a8116f5bcf28e6975
Imported Translations from Transifex

Change-Id: I957748b50cf6832c0c3e9a04d2036a6c5d234c8d
Cleans up ServiceUser.__str__ method

Reasons:
- ServiceUser.__str__ in trove/tests/util/users.py contains code
  after the return statement.
- This code after unconditional return statement has no use.
- Thus, ServiceUser.__str__ method needs cleanup.

Changes:
- Removes the statements after return statement.
- Adds tenant name to the __str__.

Change-Id: Ic5e35969f435e01d94da7eb434cd8de19e2c9873
Closes-Bug: #1269437
Remove admin_token from configs

A previous review removed the admin_token from the sample config file.
It appears that devstack doesn't use that file but instead uses one of
the .test files.

Admin tokens are actively discouraged as a form of authenticating in
auth_token middleware and the behaviour when using admin_token in
combination with a username and password (as this default produces in
devstack) can lead to problems in authentication.

Closes-Bug: #1299332
Change-Id: I78d2c184f7937006b808d580e3663ab055f7c5fe
Corrects mgmt-taskmanager startup method

Adds 'conf' as an argument to mgmt_main which is accessed in startup
method.

Change-Id: Ie17ed92137200f0562894950df0479749492faf4
Closes-Bug: #1323395
Corrects the class name "ExtensionManager"

Corrects ExtensionManager to extensions.ExtensionManager which was
earlier written without the package name.

There were no errors encountered as first condition of the condition set
always evaluated True.

Change-Id: I1fd4016105a99a7baaad6d2613b0e709a09aeeb2
Closes-Bug: #1323400
Merge "Fix heat template for cassandra"
Clean up openstack-common.conf

The issues are detected by new change about update.py
in I68c0108304be8a315bcefe939c22019caab9bc98. This patch
doesn't depend the oslo-incubator patch.
 * remove unused module config
 * add missing module loopingcall and remove module
   cfg in openstack-common.conf
 * sort the modules in openstack-common.conf

Closes-Bug: #1323622
Change-Id: I10cca7386ea8e586f7e35a2f0e5b3c5c14906d7e
Merge "Cleans up ServiceUser.__str__ method"