408 Commits

Author SHA1 Message Date
Peter Stachowski
fbe2b0a2a8 Fixed typo in doc/source
There was a typo in the Authentication section of the usage.rst
file.

This has been fixed, along with some lining up of comments in the
test code to make it easier to read.

Change-Id: I342a286055246beaeadc7e763d3b75bd17c32a60
2014-10-28 09:49:28 -04:00
OpenStack Proposal Bot
d596428b41 Updated from global requirements
Change-Id: If9e276a98fa46b4737acb71a82e085a0f4d637e1
2014-10-15 23:46:56 +00:00
Jenkins
ca8bdcde6e Merge "Work toward Python 3.4 support and testing" 2014-10-14 22:17:00 +00:00
Jenkins
77ba6c099b Merge "Fix universal wheel support" 2014-10-09 20:14:16 +00:00
Jenkins
ae56ed1c3a Merge "Use OpenStack branding for trove client" 2014-10-08 22:17:46 +00:00
Andreas Jaeger
f8a83650b8 Fix universal wheel support
There's a typo in setup.cfg, it should be "universal".

Change-Id: I78992d222cf55df25db5fa94a7d8a2ffa462c5c9
2014-09-22 10:41:33 +02:00
Andreas Jaeger
4a3615d8c5 Use OpenStack branding for trove client
Add oslosphinx to get OpenStack branding.
Remove html_static_path since it's unused and issues a warning.
Update copyright year.

Change-Id: I0bdcab8ebc5a201a3f91b4a6c4724536d1157901
2014-09-19 11:53:35 +02:00
amcrn
4c122dca77 Fix Cluster-Create and Cluster-Show Response
the refactoring in Ie1ac42d61e920ac8ea1ebab35c2db096fd313077
broke the responses for the aforementioned commands,
resulting in stacktraces.

Change-Id: Idb6d5677cb854b9dc76ad621910277b687c111a1
Closes-Bug: #1368982
2014-09-12 16:07:43 -07:00
Nikhil Manchanda
e010a91975 Update the README.rst with latest help
The help has substantially changed since the last time the
trove client was published to pypi. Updated the README.rst
with the latest help information.

Closes-Bug: 1366981
Change-Id: I3e2533b4c57f63d20e804c1fca5731fe6a522199
2014-09-08 13:58:32 -07:00
Jenkins
fa33d6e927 Merge "Use 'replica' instead of 'slave'" 2014-09-08 16:23:03 +00:00
Greg Lucas
b287f672ac Use 'replica' instead of 'slave'
Replace the mysql-specific term 'slave' with the more general term
'replica'.

In order to merge properly the client currently handles both 'slave' and
'replica' in certain cases. The 'slave' support will be removed completely
once the trove runtime is updated to be in sync.

Change-Id: Id22d18a84a4ac104ff8af09959e8eb2ae0102e97
Co-Authored-By: Nikhil Manchanda <SlickNik@gmail.com>
Partial-Bug: 1360310
2014-09-05 11:13:37 -04:00
Craig Vyvial
b20b18e8ac adding configuration parameters mgmt api
add the CRUD calls of configuration parameters mgmt calls

partially implements blueprint configuration-parameters-in-db
Change-Id: Iaaea946bdbcab91ca02e5e2cbf956a3980a461ab
2014-09-03 21:16:03 -07:00
Jeremy Stanley
94513614a1 Work toward Python 3.4 support and testing
Change-Id: I4a9c0444af0abf408ffd3899106f4cacf3c93aa1
2014-09-03 19:05:59 +00:00
amcrn
6852bdcefc Clusters troveclient Implementation
adds clusters support to the troveclient.

Co-Authored-By: Ranjitha Vemula <rvemula@ebaysf.com>
Co-Authored-By: Michael Yu <michayu@ebaysf.com>
Co-Authored-By: Mat Lowery <mlowery@ebaysf.com>

Partially implements: blueprint clustering

Change-Id: I6ed2c4c79a17fcf8f14c587cab6a8ec3acaf319f
2014-09-02 16:38:56 -07:00
ridhi.j.shah@gmail.com
33c76fab16 Add a drop config-grp command in update instance
As per the current code in the client, there is no option to detach
the configuration group of the instance. This change gives a user the
option to explicitly drop the config group of the instance as part of
the instance update call.

Change-Id: I7defd110549df87afd267d3ebe998904ff6b7483
Closes-Bug: 1359359
2014-09-01 11:45:18 -07:00
Jenkins
522eb72a3e Merge "Updated from global requirements" 2014-08-31 11:24:47 +00:00
Jenkins
aebe42bccc Merge "Add new command: detach-replica" 2014-08-31 04:29:10 +00:00
OpenStack Proposal Bot
5581b294c2 Updated from global requirements
Change-Id: Ic0a0f060a974fbf605a135f473d55c0a8f5eb4da
2014-08-30 08:36:13 +00:00
Jenkins
084ba0195e Merge "Clean up shell display of slave info" 2014-08-29 08:37:14 +00:00
Jenkins
9756e2d470 Merge "Add visibility filter to datastore versions" 2014-08-27 00:54:56 +00:00
Greg Lucas
837569d96b Add new command: detach-replica
Add new command to detach a replica from its replication
source.

Partially Implements: blueprint replication-v1
Co-Authored-By: Nikhil Manchanda <SlickNik@gmail.com>
Change-Id: Ieca67f042c6bcb33f2a4de1acbb330d3eefc0600
2014-08-26 15:17:09 -04:00
Theron Voran
00e13fad26 Add visibility filter to datastore versions
Allows datastore versions to be hidden from all users except those
explicitly allowed by their tenant. Implemented via a visibility
attribute for datastore versions (defaulting to 'public'), and a
datastore version member table for controlling access to non-public
datastore versions by tenant.

This commit provides the client functionality for integration tests
related to the datastore-visibility feature.

Implements: blueprint datastore-visibility
Docimpact: change to datastore version payload
Change-Id: Ic8024a631530ba295688d7e49e895f50cb2f32ef
2014-08-26 12:57:28 -05:00
Greg Lucas
73a30b3078 Clean up shell display of slave info
Suppress links and improve display of slave information for the 'show' and
'create' commands. Also refactor shell.py to avoid repeating the code for
displaying an instance.

The revised print_instance method also avoids bug 1322822 where the order
in which attributes are queried can affect the display output.

Depends-On: If8a154083d0095606fb3ee115cc9b66ab788cbb4

Partially-Implements: blueprint replication-v1
Partial-Bug: 1322822
Change-Id: Ie1ac42d61e920ac8ea1ebab35c2db096fd313077
2014-08-25 10:58:40 -04:00
OpenStack Proposal Bot
722aeff806 Updated from global requirements
Change-Id: Ifa3413813acf3d5b1d619907469bb129e320200e
2014-08-13 23:24:36 +00:00
Greg Lucas
872abf2c9d Improve help text for --size option
Update help text to indicate that --size may be a required parameter.

Change-Id: If1a40475a8d4a8e1c71c2c1e61a87bacb6e42e00
Closes-Bug: 1336807
2014-07-24 16:52:14 -04:00
Jenkins
0330b94abc Merge "Fix trove help for show and flavor-show" 2014-07-18 12:07:40 +00:00
Christian Berendt
5036106046 Use JSON instead of json in the parameter descriptions
This change only changes the wording of a help string. It should
be 'JSON' instead of 'json'.

Change-Id: I11796e8aa6e475790838db44206e8ed85ebb1505
2014-07-16 12:43:59 +02:00
liuqing
043b987e8a Add CONTRIBUTING.rst
There is no CONTRIBUTING.rst file, the patch will add it.

Change-Id: I493e9d10b91c809af62ccb07c9bd99ae7ed3bdae
Closes-Bug: #1337182
2014-07-08 09:27:48 +00:00
Jenkins
75c5456827 Merge "Fix shell view for secgroup-* commands" 2014-06-27 13:48:16 +00:00
Jenkins
b454cba66a Merge "Add datatore/version name into configuration view" 2014-06-27 13:46:10 +00:00
Jenkins
141d433ceb Merge "Adding command for copying backups" 2014-06-27 12:06:36 +00:00
OpenStack Proposal Bot
a8290234de Updated from global requirements
Change-Id: I2e2333c948ecfca638f4a1004e5256611735a03c
2014-06-27 06:37:23 +00:00
Denis Makogon
181c3d83bd Add datatore/version name into configuration view
Reasons:
 - Both ConfigurationView and DetailedConfigurationView
   for configuration-groups return only the Datastore
   Version ID and not human the readable Datastore Name / Version

Changes:
 - adding datastore version name to configuration show response.

Change-Id: I8fbefd57d40838dafcead0077bfbc6b49c27a8eb
Closes-Bug: #1326584
DocImpact: configuration response and shell view were updated.
2014-06-26 12:25:52 +00:00
Denis Makogon
b8fa51d9d0 Fix shell view for secgroup-* commands
Reasons:
 - currect code writes list of dict as they are,
   without any formatting, actually _print_
   method calls str() on each attribute,
   this issue spoils human-readable form of the shell output.

Changes:
 - updated "secgroup-list" (`rules` attributes was ignored);
 - updated "secgroup-show" (`rules` attribute was ripped off);
 - proposed new call "secgroup-list-rules <secgroup-id>";

Change-Id: Ic3f51b93af106c39de7eb3238f8bcffa3ea3cb95
Closes-Bug: #1300164
DocImpact: added new CLI command.
2014-06-24 11:59:11 +03:00
Jenkins
cba9568e95 Merge "Add 'slave_of' option for enabling replication" 2014-06-24 08:41:06 +00:00
Jenkins
792431c5bb Merge "Updates root-enable & root-show help messages" 2014-06-24 08:37:47 +00:00
Jenkins
344a38a661 Merge "Added optional marker/limit to list command" 2014-06-11 05:42:01 +00:00
Jenkins
13d8666862 Merge "Overwrite HelpFormatter constructur to extend argument column" 2014-06-11 04:22:10 +00:00
Greg Lucas
258b47b2a0 Add 'slave_of' option for enabling replication
Add a new create option (--slave_of) that can be used to enable
replication and configure the newly created instance as a slave of the
specified existing instance.

DocImpact Introduces new option when creating an instance.

partially Implements: blueprint replication-v1
Change-Id: Idf22d3d9e676138969cbdf3afd4903b8e475c313
2014-06-10 08:38:42 -04:00
Jenkins
a48272cb2d Merge "Add datastore filter to backup-list" 2014-06-10 12:26:00 +00:00
Jenkins
d2c24d4a97 Merge "Add instance_metadata functionality to the trove python library" 2014-06-10 02:23:52 +00:00
Christian Berendt
12d484160c Overwrite HelpFormatter constructur to extend argument column
Overwrite the HelpFormatter constructor in the class
OpenStackHelpFormatter to modify the default value of the
max_help_position to extend the width of the argument column
in the help output.

example output before this patch:

    configuration-attach
                        Attaches a configuration group to an instance.
    configuration-create
                        Creates a configuration group.
    configuration-default
                        Shows the default configuration of an instance.
    configuration-delete
                        Deletes a configuration group.
    configuration-detach
                        Detaches a configuration group from an instance.

example output after this patch:

    configuration-attach          Attaches a configuration group to an
                                  instance.
    configuration-create          Creates a configuration group.
    configuration-default         Shows the default configuration of an
                                  instance.
    configuration-delete          Deletes a configuration group.
    configuration-detach          Detaches a configuration group from an
                                  instance.

Change-Id: Ia3ad8e9fefca6da40f55ab3de902c015a0d17006
Closes-Bug: #1326471
2014-06-05 07:27:53 +02:00
Peter Stachowski
71cace23fc Added optional marker/limit to list command
The trove client did not allow you to pass in a marker or limit
for list instances.  These arguments are now allowed, and the
resulting list filtered accordingly.  Both arguments are optional.

Change-Id: I7cb697d57d11f72c0349fbe50c48d8b33593721b
Closes-Bug: #1294950
2014-06-04 17:06:09 -04:00
Steve Leon
fcd19b08a7 Adding command for copying backups
Added sub-command 'backup-copy' that will take a backup ID (could
be from a different region) and copies it to its own region.

Partially implements: blueprint cross-region-backup-availability

Change-Id: Ia9561ead98762fa817e07098a104c39e211315e0
2014-06-03 09:06:42 -07:00
Steve Leon
7170b72ceb Add datastore filter to backup-list
This fix enhances the backup-list command to optionally receive
a datastore name or ID to filter the backup list by. The filter
is sent as a query string.

To attach the query string to the URL and have it still work with
the URL for pagination, i have made some changes in the way url
with query strings are constructed. This includes the pagination
URL.

partially implements: blueprint backup-metadata

Change-Id: I0b9ef3ec7f51ed76517a22f9c0edfdce3694a36f
2014-06-03 09:02:49 -07:00
Sushil Kumar
8a63222132 Updates root-enable & root-show help messages
Reasons:
- Help message for root-enable does not gives complete information, it
  misses that API also resets root, on existence.
- Current help message for root-show makes it feel like current status
  of root user is fetched, but instead we are also returning True for
  historical root access enabled.

Changes:
- Updated the root-enable and root-show API help message.
- Updated README for updated help messages.

Change-Id: Ide7c331bdfe5437e6966f6cd4f331cb3b22d0c3f
Closes-Bug: #1277308
2014-06-03 07:07:41 +00:00
Simon Chang
0462bad1d8 Rename resize-flavor subcommand to resize-instance
The trove resize-flavor <instance> <flavor_id> subcommand actually
changes the flavor of an instance, not the size of the flavor itself.

To improve clarity, the resize-flavor subcommand was renamed as
resize-instance.

To avoid backward compatibility issues, marked deprecated the
resize-flavor subcommand while we introduce the new resize-instance
subcommand.

DocImpact: This potentially affects any user scripts that may
exist.  Any instructions like:
'trove resize-flavor <instance> <flavor_id>'
should be changed to:
'trove resize-instance <instance> <flavor_id>'

Change-Id: Ie801d5632383b67c3f777487f4b6bc608b4a69e8
Closes-Bug: #1324719
2014-06-02 17:22:12 -04:00
Jenkins
68a6424256 Merge "Updated from global requirements" 2014-05-30 23:28:33 +00:00
Jenkins
2cbf1a265e Merge "Fixed positional order of arguments" 2014-05-30 22:36:42 +00:00
Jenkins
70f50944fe Merge "Updates README with current trove help output" 2014-05-30 20:53:38 +00:00