Adds volume_used to trove show <instance>

Reasons:
- There are two attributes coming from trove related to volume
  attached, total size of volume and used space of volume.
- Used space is an important attribute for a user, it would help to
  plan the resize of volume before the attached volume gets finished.

Changes:
- Adds display of used volume attribut, with "trove show" command.
- Avoids display in dicts-form.
- do_show method now displays total space, and used space for the
  atttached volume, as

    |       status      |                ACTIVE                |
    |      updated      |         2014-01-12T22:17:20          |
    |       volume      |                  1                   |
    |    volume_used    |                 0.13                 |
    +-------------------+--------------------------------------+

Change-Id: I64bddd167c1645077854bd74185886bb45fc69a0
Closes-Bug: #1265144
Datastores improvements

Improvements for client:
- added datastore field in instances list
- fixed datastore and version fields in instance show output
- fixed mistakes in help texts
- add possibility to retrieve version by uuid (without specified datastore)

Implements: blueprint datastore-type-version-followon

Change-Id: Id41da29ce9732823bc4696301953e9cf8cdc82f5
Merge "Adds volume_used to trove show <instance>"
Updates common.check_for_exceptions and its calls

Reasons:
- exceptions.from_response has 3 arguments but is being called with
  one argument less, which is url.

Changes:
- Updated common.check_for_exceptions to support urls as needed by
  troveclient.openstack.common.apiclient.exceptions.from_response.
- Adds url to exceptions.from_response calls in troveclient.

Closes-Bug: #1266239

Change-Id: Ie18c90349479f740369f63c48a8d9b463641f84d
Support Extensions to Trove Client

extensions on the contrib path (i.e. troveclient/v1/contrib/*.py),
extensions on the python path that follow the naming convention of
*_python_troveclient_ext, and entry-points will now be discovered
and loaded.

due to the mismatch of the api version and the troveclient
package name, '1.0' vs. '1', the client has been patched to look
for contrib in troveclient/v1 vs. the standard troveclient/v1_0

Change-Id: I3ea7bb5ba471b0d421581dcfda7216f429cb7b65
Closes-Bug: #1267577
Merge "Updates common.check_for_exceptions and its calls"
Update to the latest code from Oslo

Update apiclient code for python3.3 support

Сhanges from oslo-incubator related to apiclient:

Change 41dc2b4:  Encode response from FakeHTTPClient
Change e6494c2:  Use six.iteritems to make dict work on Python2/3
Change 0d8f18b:  Use urlutils functions instead of urllib/urllib2
Change 16fb43b:  Replace data structures' attribute with six module
Change fdb0f0f:  Common ConnectionRefused class
Change 9d0ec6a:  Use six.iteritems for python 3.3 support in apiclient module
Change 12bcdb7:  Remove vim header
Change 4c22556:  Use py3kcompat urlutils functions instead of urlparse
Change 3970d46:  Fix typos in oslo
Change 1771a77:  Adjust import order according to PEP8 imports rule
Change da611e6:  Transform the for loop to expression

Change-Id: If2bbb247f0202bae6dd5a8bd66d9708738e52d71
Grants DB access to Users in Instance create API

Reasons:
- When database and users are provided as arguments, created users do not
  get access on suggested databases in cli instance create command.
- This was happening because database was not passed along with user info.

Changes:
- Concatenated the database information with the user info.

Change-Id: I3475f0eab1201b963bb32b2155c175a9483ef92f
Closes-Bug: #1272421
Use Resource() class from common Oslo code

In the process of unification of the clients code we should
reuse common functionality from Oslo. Resource() class from trove
duplicates Oslo funclionality, so we replace it with inheritance

Related to blueprint common-client-library-2

Change-Id: I9809bd3036a5b544b8ff011432f64dc5af793f61
Adding support for incremental backups

* Adds a parent argument to backup-create.
* Adds parent_id to the backup create body if present.

Implements: blueprint incremental-backups

Change-Id: I76f720ae4eadf2a1977c4c2cbf286db4db079b63
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.

Syntax to specify '--nic' parameter is same as in novaclient.
--nic <net-id=net-uuid,v4-fixed-ip=ip-addr,port-id=port-uuid>
This parameter can be specified multiple times, to attach multiple
network interfaces to instance.

Closes-Bug: #1257838

Change-Id: I76fb0d99512b1ee70441c924835a900ba0b7acd1
Fixes troveclient raising undefined exception ConnectionError

Reason: ConnectionError exception is raised which is not defined in
        python-troveclient/troveclient/openstack/common/apiclient/exceptions.py

Change: ConnectionError should be renamed to ConnectionRefused.

Closes-Bug: #1240950

Change-Id: I73219d29efd71185cdf6ff56a7fe41165541681f
Merge "Add Neutron support"
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: Icad4ffa9843baeb9c437d2e2c0b0d35c24abc68a
Closes-Bug: #1262424
Merge "Support Extensions to Trove Client"
Merge "Use Resource() class from common Oslo code"
Merge "Adding support for incremental backups"
Merge "Grants DB access to Users in Instance create API"
adds support for configurations management

Reason:
Adding configuration group support for the python-troveclient

Changes:
adding configuration api calls
adding the compat client for tests and xml
added the shell cmds for the configurations in the client
made the path to datastore/version/parameters
added unit tests

partially implements blueprint configuration-management

Change-Id: Ifc0b4077c93a805898b4cd157e33172f64e85b55
Merge "Remove copyright from empty files"