Use six.moves.urllib.parse instead of urlparse

To keep Python 3.x compatibility, use six.moves.urllib.parse to
replace urlparse.

Closes-Bug: #1279611
Change-Id: I1867ef3ab0fd13cc7fd0875b419e06c2d96963c2
Remove unused variables

o trove/backup/models.py:SWIFT_CONTAINER = CONF.backup_swift_container

  This variable was added in the following commit.

    commit ce208d6cabba227576f492e7647d9da5a89e7c25
    Author: ruiyuan-shen <ruiyuan.shen@hp.com>
    Date:   Mon Mar 18 14:07:37 2013 -0700

        Add snapshot ORM to reddwarf

  But there is no evidence that was used.

o trove/dns/rsdns/driver.py:DNS_HOSTNAME = CONF.dns_hostname

  This variable was added in the following commit.

    commit 0c34c75dc44876245709987a18ea004607fca815
    Author: Sudarshan Acharya <sudarshan.acharya@rackspace.com>
    Date:   Fri May 18 15:49:12 2012 -0500

        DNS Support for Instance IP.

  But there is no evidence that was used.

o trove/instance/models.py:SERVER_INVALID_ACTION_STATUSES
   = ["BUILD", "REBOOT", "REBUILD", "RESIZE"]

  This variable was removed in the following commit.

    commit 54a4ada785fd90af5134e7f38360938e0b435696
    Author: Ed Cranford <ed.cranford@rackspace.com>
    Date:   Thu Jul 12 15:01:01 2012 -0500

        Delete can now delete errored instances.

o trove/instance/models.py:VALID_ACTION_STATUSES = ["ACTIVE"]

  This variable was removed in the following commit.

    commit 9ccef6fea42454bb22c0d67bd4d2a0765f13d370
    Author: Tim Simpson <tim.simpson@rackspace.com>
    Date:   Wed Jun 27 11:12:28 2012 -0500

        Allowing resizes to be performed when MySQL is down.

Closes-Bug: #1286990
Change-Id: I79f5bb124f2702317d8d337c969c9ff8ea69a769
Test restore full and restore incremental

Closes-Bug: #1280487
Change-Id: I29ce959d595a604b2df1adf7beec6ade5030105e
Fixes insecure update of /etc/fstab file

Reasons:
- While updating /etc/fstab in write_to_fstab in
  trove/guestagent/volume.py, the temporary file-name was easy to
  guess and had a permanent name making it prone to unwanted access.
- The temporary file-permission was set to 666, making it insecure.

Changes:
- Uses NamedTemporaryFile for temporary file creation.
- Used file reading instead of copying the file.
- These changes eliminate the chances of guessing the file-name,
  as well as updating the same.

Change-Id: I07c3980e40fe218d35605a851a17535cd3972c11
Closes-Bug: #1267991
Removes volumes redefinition in fake nova_client

Reasons:
- The redefinition of nova_client.volumes was making it,
  nova_client.volumes.volumes, if we needed to call the volume APIs
  from nova_client.
- nova_client.volumes is already defined when defining "class FakeClient".

Changes:
- Removes redefinition of nova_client.volumes.

Change-Id: I5981d461e5a0fd000214c35d5d0be58d86d6d368
Closes-Bug: #1292457
fix default rabbitmq configuration values in sample cfgs

The rabbit_* configuration options have default values in the library
code, but they are not visible in the sample configuration file. This
change adds the config values to the sample configuration files.

It also removes the other unused notifier_* config attributes.

Change-Id: I4ae76ef78b7a0a04c2ea5a24fd3000e9c1561f81
Closes-Bug: #1281975
Remove IDENTIFIED BY clause for MySQL REVOKE

IDENTIFIED BY is not documented for REVOKE in MySQL 5.5 and 5.6 and
furthermore produces a syntax error on MySQL 5.6.

Change-Id: Ib7bf1ba0ce049c1ed8a90292064a1e05724170e0
Closes-Bug: #1292690
Update sqlalchemy migrate scripts for postgres

pgsql <= 8.3 was lax about char->other casting but this was tightened
up in 8.4+. We must now specify the USING clause for such a cast to
succeed. The SQL queries generated by sqlalchemy for pgsql don't
support this, so an override is needed to support pgsql for the trove
migrate scripts.

Closes-bug: 1293465
Change-Id: I217fc861036911e61bafe706e338bb3b8f49e708
Fixed unit test to not actually run backup command

One unit tests is still trying to execute the actual backup command
instead of the mocked backup command. This is causing an issue on
the Jenkins slave where it is trying to run as sudo (and failing).
Fixed the test to use a mock runner, and not try to run innobackupex.

Change-Id: Ifff7945be158a08167cdd282ed8eb18952224eee
Closes-bug: 1291516
Merge "Fixes insecure update of /etc/fstab file"
Setup trove for translation

The upstream-translation-job exists already but fails since trove
is not setup properly for translation.

Add the usual babel.cfg file, update setup.cfg for translation and
create initial trove.pot file.

Change-Id: I65ca2c974fc54e005ba8887dceb66ac08432c6d1
Merge "Remove IDENTIFIED BY clause for MySQL REVOKE"
Merge "Update sqlalchemy migrate scripts for postgres"
Merge "Setup trove for translation"
Change Cassandra to Service Start vs Bin

starts cassandra with 'sudo service cassandra start' vs.
'sudo /usr/sbin/cassandra' to avoid having cassandra stopped if the
guestagent is stopped. see the bug details for more information.

Change-Id: Ifab557aaff5023f4b0fb4b91193785a0deb5ee2f
Closes-Bug: #1295313
Pop instead of get for timeout kwarg

In utils.py execute_with_timeout() method was updated
to do kwargs.pop() instead of kwargs.get()

Closes-Bug: #1292692
Change-Id: Id69e66f5e312a2bd2501bae18ddd050dd4296ff5
Imported Translations from Transifex

Change-Id: Ib11144ccb6d567f820db7adae0a9ae7bde32f511
Merge "Fixed unit test to not actually run backup command"
Start using oslosphinx theme for docs

Change-Id: I0d08e7abbbf51d526d379e8fcea7151ba16d1746
Tox tests should not require errors in rigid order

Fix the tox tests to not require Validation Error messages to be returned
in a specific order. Since the order of validation errors can be
non-deterministic, the tests should merely check for existence of the error.

Change-Id: I615359cfb7129b2af9f22c43ad4475b53f7acab3
Closes-bug: 1294850