Instance details view shows hostname (if it has it) or IP

Currently the hostname and IP is controlled by two config values:
trove_dns_support and add_addresses. I dont see a point of having
the hostname and IP indenpendent. It causes issues for old instances
when DNS is enabled.

I propose to simplify the view by showing hostname if it is set or
show the IP if it is not set.

Closes-bug: #1260567

Change-Id: Ia1fd47cbee89b10d53b0821e104a34eb31543846
Make use of IP filtering when creating DNS records

Previously, the return list from get_ip_address in
trove.instance.views was not filtering by the CONF.ip_regex.
(See blueprint add-ip-addr-filter-to-instance-view for more
information). DNS uses this method to get the IP. Therefore
it was not creating record with the right IP. Moving the filtering
logic to the get_ip_address method will ensure that both DNS and
instance view will obtain the right IP.

Change-Id: I4ce7c65e24f6d105f555e6c36d788558daa25f12
Closes-Bug: #1260089
Added Redis Crud Operations

blueprint redis-support

Change-Id: I741b3a39e1ec24ee81d441788be72f72726eda10
Remove copyright from empty files

According to policy change in HACKING:
http://docs.openstack.org/developer/hacking/#openstack-licensing
empty files should no longer contain copyright notices.

Change-Id: I3992a72c3614e2d0c65aee91e69d89ff806824fc
Closes-Bug: #1262424
Add Volume Resize filesystem size assertion

Verify that the filesystem size on the volume increases and is about
the size of the Cinder volume.  This checks for the case where the
Cinder volume device may have increased but the filesystem may not
have been resized thus not representing the actual available volume
size.

Change-Id: I06059cd18ec78085187c4e86ea9288d35ee4a5f6
Implements: blueprint add-volume-total-attribute
Spelling correction in taskmanager/models.py

Changes:
-Corrected the definition spelling.

Change-Id: I8b3560ed9fb6b8cfaee0abe43df6500ac8f11027
Closes-Bug: #1270113
Validate databases for user grants

Change-Id: I397f18322774772d1c15653a4b815abf528399ad
Closes-Bug: #1257021
Edits on help strings

Fixes include rework of text, missing or extra spaces, wrong
capitalization and no sentence style capitalization.

Change-Id: If3d981d1736583b38328eeca5cc392fe10a7a0d0
changing the routes for the api to be clear

The map.resource creates a ton of excess routes that are not necessary
for our service. This will make things more explicit and we will know
which routes are being used from viewing api routes.

Implements blueprint clean-up-trove-api-routes

Change-Id: I149642188f42ffdbf8ff11b3acc79daf76dcb2b0
Datastores improvements

List of improvements:
- added default_version field in datastore show output
- admin can list deactivated versions too
- admin can see extanded info about datastore version (image_id, packages)
- add possibility to retrive version by uuid (without specified datastore)

Implements: blueprint datastore-type-version-followon

Change-Id: I9b0c3547fb6a881a01db9e6e3d8d72077bc5ee29
Mask database user's password in trove logs

Currently passwords are logged in plaintext in trove-api and
trove-taskmanager logs. This fix will mask the passwords in the logs.
Syncing modules log, common.py from rpc  and versionutils from oslo.
common.py requires versionutils.py.

Change-Id:I50deb003d866e85e7c7ec8ab3ce7248d1c005e57
Closes-Bug: #1254914
Merge "Add Volume Resize filesystem size assertion"
Merge "Make use of IP filtering when creating DNS records"
Merge "Validate databases for user grants"
Merge "Datastores improvements"
make datastore_version_id required

The datastore addition didn't migrate existing instances,
which causes existing installations to blow up after upgrading.
This commit addresses that by inserting best-guess dummy data
into the db.  Operators will need to clean up the values to match
their actual usage.

Change-Id: I7ae064cea9b654a4501b91877b779fb4073623af
Closes-Bug: #1259642
Merge "Remove copyright from empty files"
Merge "Added Redis Crud Operations"
Merge "Instance details view shows hostname (if it has it) or IP"
Merge "Edits on help strings"