Add heat.template for Redis datastore

Reasons:
- common policy for datastores:
       each datastore should be able to
       be provisioned as part of heat stack.

Changes:
- adding heat.template

Change-Id: I3b44c75b80da7b7b2a296259fbf925d5ec9d71a6
Closes-Bug: #1285157
Resolves volume resize issue

Reasons:
- Cinder APIs are not able to complete the detach/attach properly with
  nova instance.
- resize2fs is not proceeding with e2fsck having "-f" and "-n" options.

Changes:
- Used nova-volume attach-detach APIs instead of cinder APIs.
- Updated e2fsck to use -p option to complete the e2fsck action so that
  resize2fs could proceed.
- Updated tests as per replaced Nova APIs instead of Cinder APIs.

Change-Id: I40f1dc8ca04b3bfcc4eae910515fcedf922c1a9e
Closes-Bug: #1291896
Imported Translations from Transifex

Change-Id: I1143e33296dc7e08e058a1aaef05e0f7bad39a8a
Added fix to support Couchbase resize-flavor

Implemented start_db_with_conf_changes and reset_configuration
operations for couchbase datastore.

Change-Id: I6e59b298bc28377e57659c0f2f80300f41937746
Closes-Bug: #1309317
Merge "Imported Translations from Transifex"
Merge "Add heat.template for Redis datastore"
Merge "Resolves volume resize issue"
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
Migrate v20 not handling exception

Version 20 upgrade creates 2 tables but the downgrade doesn't
remove them (for a stated reason). If you downgrade and then
upgrade, the upgrade will fail because the tables already exist.
This fix add a try block around the upgrade to log an info
message instead of failing.

Change-Id: I37fbe002da7dc764d229575149e4062e38f75881
Merge "Added fix to support Couchbase resize-flavor"
Merge "Migrate v20 not handling exception"
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"
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"
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
Merge "Pretty print JSON sample files"