Pretty print JSON sample files

Pretty print JSON samples to follow JSON formatting conventions (
https://wiki.openstack.org/wiki/Documentation/Conventions#JSON_formatting_conventions).

Change-Id: I26b2404e79d000d206516cea68d88acf23717569
Partial-Bug: #1217503
Datastore_versions.name shouldn't be unique

The name column in the datastore_versions table is not supposed
to be defined with a unique index. The migrate version 18 was
intended to fix this but the method used to correct the column
definition doesn't work. Added a migrate version 26 to use
UniqueConstraint.drop() instead.

After some discussion, it was decided that downgrade would be
a no-op because it is difficult to reliably create a unique
index on a column with data in it, and further, the column wasn't
supposed to be unique in the first place.

Change-Id: Ida552982de6702db6ed4d40c0167e7d542c0ded4
Closes-Bug: #1310834
Fix prepare call for redis guest agent

Changes:
- The mount point ownership now changed to redis user and group
- Redis restarted to use new config elements

Change-Id: I972cd0c7f6baaed8d8c2a61d096f39a283685237
Closes-Bug: #1298536
Added support of resize-flavor to Redis datastore

trove resize-flavor was not supported for Redis;
If this command is indeed invoked, then the DB VM
would be stuck at the RESIZE state forever, as the
revert function (reset_configuration) is not implemented too;

This patch implements the resizing functionality for Redis

Change-Id: I93a1fe6e583636d72b8d399418d80bd124b36285
Closes-Bug: #1300477
Merge "Datastore_versions.name shouldn't be unique"
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
Specify correct constraint name for postgresql

The UniqueConstraint is not named 'name,' this causes postgres to fail
with the following error:
UTC ERROR: constraint "name" of relation "datastore_versions" does not
exist
The constraint name should be 'datastore_versions_name_key' in the case
of postgresql.

Since postgres isn't tested in trove's gate yet (Fix:
I53e7fa2729542b88b43cd3de51e15118adaeec57) this has been tested locally
to make sure it stack.sh (which runs trove-manage db_sync) works.

Co-Authored-By: Nikhil Manchanda <SlickNik@gmail.com>
Change-Id: I265925566b8e84d92c838cb3b39ad1f8502cd052
Related-Bug: #1321093
Merge "Fix prepare call for redis guest agent"
Merge "Added support of resize-flavor to Redis datastore"
Imported Translations from Transifex

Change-Id: I4717369e33a43b2e267a7290b251a78be405899f
debug level logs should not be translated

According to the OpenStack translation policy available at
https://wiki.openstack.org/wiki/LoggingStandards debug messages
should not be translated. Like mentioned in several changes in
Nova by garyk this is to help prioritize log translation.

Change-Id: Ia38a426a1a3154302b19f2dc603487175566c863
Closes-Bug: #1318384
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
Merge "Pretty print JSON sample files"
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"