Cleans and improves heat code path

Reasons:
- Heat code path contains cinder code.
- Heat code path contains nova code.
- Heat template is frozen with Volume support,
  it cannot act in a volume disabled environment.

Changes:
- Adds conditional Volume support in heat.template.
- Adds conditional template rendering.
- Cleans nova code from heat code path.
- Cleans cinder code from heat code path.

Change-Id: I7e4d6edf8bb11de0bcf913a58b257c625468322c
Closes-Bug: #1262378
Removes unused "server" from taskmanager

Reasons:
- server has not got any proper used-case in the code.
- Methods for server creation do not need to return server.

Changes
- Removes server from return of server creation methods.
- Removes server from FreshInstanceTasks.create_instance.

Closes-Bug: #1265896
Change-Id: I729992a7f5124d4a6da12835a08b07e38b583f61
Using base32 encoding to generate DNS records

The Designate driver generate record names by
hashing and 64-base encoding the instance ID.
The problem is that 64-base encoding can generate
hyphens and upper/lower case letters. Hyphens are
illegal when it is at the beginning of the name.
Name is also case insensitive. So the best solution
is to use BASE-32 encoding.

Change-Id: Ie98a0a50a609207df041c5f0bc2f622701ee9848
Closes-Bug: #1262789
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
Relocates generate_random_password to common.utils

Reasons:
- instance.models._create_resources is still uses uuid as root_password.
- generate_random_password needs to be used in a diferent module, so it
  is a candidate to be moved to trove.common.utils, so that any
  new change could be made at one place only, affecting all used-cases.

Changes:
- Relocates generate_random_password to common.utils
- Replaces uuidutils.generate_uuid with generate_random_password in
  trove.instance.models._create_resources(password_length).

Change-Id: Ib58bf83b3c052261418907db41ca963768d2e710
Closes-Bug: #1264330
Updates oslo.context

This change is needed for uuidutils removal in Trove

13eb01c Adding domain to context and log
12bcdb7 Remove vim header
bdabd51 Remove uuidutils imports in oslo modules

Change-Id: I3b4eead93fc2d12ccb6a0837f9100b784b25d8dd
Replace oslo.uuidutils module with trove.utils

Oslo is removing uuidutils during the icehouse cycle.
Consequently we need to remove all references to uuidutils, and
replace them with the corresponding function from trove.utils.

Change-Id: Idd4b25e98624dfb6a25e275cac44a54324f50449
Closes-bug: 1253497
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
move datastore manager to the datastore version

This moves the datastore manager field to the datastore version object
so that we can have managers per datastore version and they can be
shared if nessesary.

implements blueprint move-manager-to-datastore-version

Change-Id: I1c889a01005ec482bcd44e0e19475bc972e1af04
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
Adds Missing _() for Exception Message Translation

Reasons:
- Exception messages missing underscores. This is necessary to
  mark messages as ready for translation, and is already the
  defacto standard across the trove codebase,as per,
  https://wiki.openstack.org/wiki/Translations
- Because of incorrect Exception messages, it does not overrides
  the default message of BadRequest.

Changes:
- Adds the missing underscore function to wrap a few user-facing
  exception messages.

Change-Id: Ib4a183f717146493e514b8169679a57cc2ecfd01
Closes-Bug: #1264688
Merge "Cleans and improves heat code path"
Merge "Adds Missing _() for Exception Message Translation"
Merge "Using base32 encoding to generate DNS records"
Merge "Removes unused "server" from taskmanager"
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