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
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
RootReport through Taskmanager

Reason:
- guestagent should be free from direct Trove back-end DB connection.
Changes:
- extending taskmanager provisioning flow;
- taskmanager reports about root creation;
- tests.

Closes-bug: #1257489
Change-Id: I5f2502d8b61542658682a5ff74735749e5a1ca2b
Disable redundant DB initialization on guesagent's start

Reasons:
 - Guestagent uses conductor to communicate with database.
 - No direct connection to DB is required.
   But GA still initializes DB connection on start.
   This prevent running guestagent without MySQL installed in guest,
   which could be useful for datastores other then MySQL.

Changes:
 - This patch disables DB initialization on GA start.

Closes-bug: #1256046
Change-Id: I23dafdfbc7b04c24f1b4ddd714005eb615641cd6
Replaces local generate_uuid with common.utils

Reasons:
- generate_uuid is defined locally to use truncated uuid,
  without any specific need.
- This may result in similar UUIDs.
- Since tests work fine with usual common.utils.generate_uuid.

Reasons:
- Replaces local generate_uuid with generate_uuid from common.utils.

Change-Id: I5d46ba78169ce26c18c05160f02a8b01f88aca40
Closes-Bug: #1272685
Fix Occasional test_one_network_label_exact Fail

fixes the occasional tox failure for test_one_network_label_exact by
saving and restoring the original conf values before every test.

see bug details for more information.

Closes-Bug: #1272806

Change-Id: Ib051b5325c0914f2ab3bc293b0052abe8257996d
Makes the backup tests less onerous

The backups test code was looking for an exact number of elements to
be returned from the backups list calls. This made running the tests
kind of a pain, so this commit counts the number of backups before a
backup is created and uses this for the later assertions.

Change-Id: I186c9e04a91e86fca612078415413468757297ca
Simplify swift storage load logic

* Use the swift connect to download files.
* Consolidate fake swift objects.

Closes-Bug: #1253752

Change-Id: Ieb1ec1c468e863109e71fe5a0277834cbc692169
Merge "Mask database user's password in trove logs"
Merge "RootReport through Taskmanager"
Add Neutron support

Currently create instance doesnt work in OS installation with Neutron.
To get it work, additional parameter 'nics' should be specified
in Nova 'create' call.
This change allows user to pass 'nics' parameter when create instance.
Also possible to specify list of network IDs which should be attached
to instance if networks are not specified by user.

Closes-Bug: #1257838

Change-Id: Ifd98a880dfa22e9677e802bcd779acd9146ec671
Fix default_datastore migration script

Fixes the migration script introduced earlier to remove
dependencies on the Trove database model classes.

Change-Id: I71762baa095039f65e97b3413a7ff0fc3e0014ec
Closes-Bug: 1259642
Merge "changing the routes for the api to be clear"
Merge "Fix Occasional test_one_network_label_exact Fail"
Merge "Makes the backup tests less onerous"
Merge "Simplify swift storage load logic"
Merge "Disable redundant DB initialization on guesagent's start"
Merge "Fix default_datastore migration script"
Merge "Replaces local generate_uuid with common.utils"
Changing DNS to pass string to driver

This commit also moves the "get_ip_address" functions out of
instance.views and into the models code under the SimpleInstance class,
where it's renamed get_visible_ip_addresses().
Also, the content field (the ip address) is now passed to the driver
instead of set on the Entry object by the manager, which allows more
flexibility for dealing with various drivers and will hopefully prevent
issues in the future.
Finally, integration tests were added to keep this from breaking
in the future.

Closes-Bug: 1273446

Change-Id: I70bf37838cc5cecfe579fe6001df79d7f6f5d53e