186 Commits

Author SHA1 Message Date
Michael Basnight
fd43cbd73b Massive refactoring to the troveclient
The new client adheres to the standards of the other clients
now. It prints out tables, uses ENVVAR's for auth, no longer
stores pickled json in a login token, uses openstack common,
and moves the cli operations into a v1 module for the future
of trove when it has a v2 api.

Please note for compatibility, the troveclient.compat module
has the old cli. In order to deploy it, amend the setup.cfg
to include the compat module.

implements blueprint cli-compliance-upgrade

Change-Id: Ie69d9dbc75ce90496da316244c97acca1877a327
2013-10-09 19:21:08 -07:00
Vipul Sabhaya
12a577f15a Remove trove as default value for Service Name
* This causes service catalog lookup issues when the Catalog
  contains service_type = database, but service_name = somethine_else

fixes bug 1228372

Change-Id: I1f7eebb06d7f57c0ecc95d8c05104f43e803c406
2013-09-23 14:56:11 -07:00
Jenkins
4a82591c79 Merge "Replace OpenStack LLC with OpenStack Foundation" 2013-09-23 16:24:39 +00:00
Michael Basnight
30851b5b5b Removing reddwarf doc references
Change-Id: I5272b50e8899cf23f5d76f5d753f0e893c04666d
2013-09-20 12:35:34 -07:00
ZhiQiang Fan
e3a301ff28 Replace OpenStack LLC with OpenStack Foundation
Some files still use trademark OpenStack LLC in header, which
should be changed to OpenStack Foundation.

Change-Id: Ib30cd06cdd13b9f949e028753716aa55736f4a40
Fixes-Bug: #1214176
2013-09-20 05:09:59 +08:00
Jenkins
deba3d7686 Merge "Added optional availability_zone flag for instance" 2013-09-16 18:10:07 +00:00
Jenkins
28d5f26eb7 Merge "Fixed cli for root enabled" 2013-09-13 01:12:21 +00:00
Jenkins
77e46b4f3e Merge "Adds support for admin to create flavors through mgmt API" 2013-09-12 22:51:29 +00:00
Sushil Kumar
c47d8c36a7 Adds support for admin to create flavors through mgmt API
Extending the management API to allow for an admin to
create flavors categorized on service type in trove.

Change-Id: I8d5910e6dd9e497d1a8be4ffd58aa339d12db74f
Implements: blueprint service-type-filter-on-flavors
2013-09-10 20:04:23 +00:00
daniel-a-nguyen
9445b00f4e Fixed cli for root enabled
Change-Id: I48e08c15709c51e8112f41cec390dd0e73864f28
Fixes: bug #1216135
2013-09-10 10:39:08 -07:00
Alex Gaynor
9310edb33d Added support for running the tests under PyPy with tox
This is a precursor to having them run under check and gate.

Change-Id: I98692ac2591d488f0c5c6e64b1c176b21254289c
2013-09-05 10:02:27 -07:00
daniel-a-nguyen
cac11f2b15 Added optional availability_zone flag for instance
Change-Id: I8ab62831481ceb27e672a265b0deaa6e3d39260a
Implements: blueprint availability-zone-instance-create
2013-09-04 10:57:14 -07:00
Jenkins
04362650e0 Merge "PEP8 with tox -epep8 check fails" 2013-09-03 04:17:13 +00:00
Denis M
812755e8a0 PEP8 with tox -epep8 check fails
Change-Id: Ife06919f321ab4ad73bece2e6080fbd7d947eeef
Fixes: bug #1219014
2013-08-30 20:32:17 +03:00
Nikhil Manchanda
87329ef2ad Removed instance reset_password from python-troveclient
The reset_password operation no longer exists and needs to be removed
from python-troveclient.

Change-Id: Ic162ef6deb86716fa12fa5541699f602c246563e
Fixes: bug 1199507
2013-08-20 13:55:24 -07:00
Monty Taylor
aa024468a8 Sync with global requirements
Change-Id: I708ffe506e1be9a72a92edfec911e3ee70481ff1
2013-08-05 18:49:11 -03:00
Riddhi Shah
8f96a61b6a API for Modify User Attributes - username, host, password
At present, when a Cloud Database user creates a username, password and hostname for a database user,
he does not have the ability to modify these user attributes.
This API enables the Cloud DB user to make changes to one or more of these user attributes (username,hostname,password).
These changes are in the troveclient to enable simple command line requests

Implements: blueprint modify-userattributes

Change-Id: I0887f2d927eec8c77c0f562c9d855a370591231a
2013-07-25 11:05:06 -05:00
justin-hopper
b98893926d Fix Description param for Backups
If description is not specified do not send as null

Fixes: bug 1201990

Change-Id: Idf160cb5f8862665ded47146e96af521cf438519
2013-07-17 18:11:58 -07:00
Riddhi Shah
91595273be Wildcards in User Host
This bug-fix, allows wildcards to be used for user host via
providing ability to use '%' and '_'.

Change-Id: Iebec499368b83f285283a0a8a80a2a63f0831dea
Fixes: bug #1199197
2013-07-09 14:59:32 -05:00
Jenkins
7c4f5cf0f1 Merge "Sync requirements with openstack/requirements" 2013-07-08 23:28:53 +00:00
Jenkins
ebc91a9d42 Merge "Start using pyflakes" 2013-07-08 23:25:37 +00:00
Dirk Mueller
5c56497714 Sync requirements with openstack/requirements
Don't require higher/different versions than
openstack/requirements. It seems those higher
requirements are not needed after all (I wasn't
able to figure out why it was added)

Change-Id: I4ea313212c0ead30e88669051f541d179eb2ecf0
2013-06-29 13:10:03 +02:00
Dirk Mueller
4ddb58ce9e Start using pyflakes
Instead of globally disabling pyflakes warnings,
disable only those that occur frequently and
fix the rest. Enable gating on those.

Change-Id: I774d809ebcda2339b30c104b031211a3b2c491bd
2013-06-26 13:48:18 +02:00
Dirk Mueller
0908ed6e23 Add License, AUTHORS and ChangeLog to package
Fixes LP Bug #1186518

Change-Id: I886504f3298d2e72834ffcc572023a779f3a6225
2013-06-26 13:37:40 +02:00
Michael Basnight
9916c8f273 Rename from reddwarf to trove.
Implements Blueprint reddwarf-trove-rename

Change-Id: Ib2d694c7466887ca297bea4250eca17cdc06b7bf
2013-06-21 20:15:23 +00:00
Michael Basnight
bc90b3e088 Migrate to testr.
Change-Id: I497fc21a0795b8921f989d7a00b6a73f7730cd22
2013-06-18 00:05:22 -07:00
Monty Taylor
741d82c0e8 Move to flake8/hacking.
Change-Id: I57d6ddf55b032542233d30ee4c876d244802a4bf
2013-06-17 22:42:35 -07:00
Monty Taylor
257d4a8601 Update to pbr/d2to1.
Change-Id: I5f4bb2cb3d068fec24a58b7d9b395b9cc31fa613
2013-06-17 22:25:41 -07:00
Monty Taylor
684daae39f Renamed reddwarfclient repo to troveclient.
Change-Id: I5462f951afb85828c9add0ad9201213e959d7406
2013-06-14 18:18:04 -04:00
Steve Leon
facd76606b Renaming security group URL API
- Renaming API to match openstack

Fix bug # 1187181

Change-Id: I00d63c6fb40391de78d4a517fe9ff11e486f75a8
2013-06-03 18:04:30 -07:00
Steve Leon
61008d058d Making the 'volume' param optional
This is needed for ephemeral volume support.

LP bug https://bugs.launchpad.net/reddwarf/+bug/1175719

Change-Id: I389bf6afe0b29713ff7f299c26731244045c165d
2013-05-10 09:49:40 -07:00
Steve Leon
2305423acc Making param 'size' optional for non-volume support.
Param 'size' is only needed when volume-support is enabled.
When volume-support is not enabled, ie using root partition or ephemeral,
the size is not needed.

LP bug 1175719

Change-Id: Iaf891e70fd24ad59a6a5034fd1e6fd798f0d7282
2013-05-06 17:15:01 -07:00
Jenkins
e63e3a69ed Merge "Adding GET API to backup" 2013-04-30 00:36:27 +00:00
Steve Leon
0f2391b901 Adding GET API to backup
Get backup by ID.

Change-Id: I0a6422ab12449212d144d9fdec1a4c7b282bed85
BP: blueprints.launchpad.net/reddwarf/+spec/consistent-snapshots">https://blueprints.launchpad.net/reddwarf/+spec/consistent-snapshots
2013-04-29 14:12:57 -07:00
Jenkins
85479507fb Merge "Renaming backup_id param" 2013-04-24 20:54:03 +00:00
Jenkins
430661e88d Merge "Stop appending default host if none is provided." 2013-04-22 19:53:08 +00:00
Steve Leon
0f4c1f7ba3 Renaming backup_id param
Change-Id: Ice5cb9a214f2f8d8e51853c4c2d0201cb14ea6ba
2013-04-22 11:07:41 -07:00
Ed Cranford
fb9cb1f2f6 Stop appending default host if none is provided.
Appending the default hostname broke backward
compatibility. This change reverses that change.
Now, usernames with @ in them will need to
specify their host deliberately, but that is
a small edge case compared to every single
user call being modified without the client user's
knowing.

Fixes Bug #1171559

Change-Id: I2f2e9adc252e2b1cd03b1bb0c4a53d48d5c11e53
2013-04-22 12:53:09 -05:00
Jenkins
ab4525b1c5 Merge "adding the mgmt migrate to specific host api call" 2013-04-11 17:38:55 +00:00
Jenkins
c20f018fd8 Merge "Adding backup resource to quota command" 2013-04-11 15:15:55 +00:00
Steve Leon
daba7cba30 Adding backup resource to quota command
Adding handle for error 422

Change-Id: I4c60984ec7196f346da99769f21f7372a35b3f86
2013-04-10 18:13:31 -07:00
Tim Simpson
6222dea140 Use a plain dict for Quotas.show method.
This also fixes the XML version translator to convert the strings
to integers.

implements blueprint use-plain-dict-for-quotas-show

Change-Id: I4764313a863e9c1fd0ee8fa00645b57535d47c76
2013-04-10 10:39:09 -05:00
Jenkins
df4175ea5c Merge "Renaming backupRef to backupId" 2013-04-04 00:49:16 +00:00
Jenkins
0456b4f636 Merge "Enhancing the quota feature to remove the hard requirements for quota update" 2013-04-03 23:53:56 +00:00
Steve Leon
bd9d311b91 Enhancing the quota feature to remove the hard requirements for quota update
Quota update no longer requires to have all the resources to be passed.
Just the resources to be updated are sufficient.

This effort is needed for quota backup

Change-Id: Ied8bf699db83f2322052ac29f2271a80d64f64d5
2013-04-03 16:46:54 -07:00
Steve Leon
267a361869 Renaming backupRef to backupId
Change-Id: I93f1132822f90e51f761db6346b5a19e2dc1a0a5
2013-04-02 16:00:00 -07:00
Steve Leon
50cefc7f90 Adding client commands for Backup feature
- Added create, list and delete backup commands
- Updated the create instance command to include optional param 'BackupRef'
- Added 'backups' subcommand to 'instance' used to list all backups for that instance.

Change-Id: Icc32e7097858708d0ed0f4c309d4c86f5cbd8aa6
BP: https://blueprints.launchpad.net/reddwarf/+spec/consistent-snapshots
2013-04-01 11:00:50 -07:00
Jenkins
0921900be4 Merge "Updated TYPE_MAP for security group rules" 2013-03-26 19:12:24 +00:00
Jenkins
3dce0e8871 Merge "Adds optional host parameter to users." 2013-03-26 19:05:01 +00:00
Nikhil Manchanda
11ba71c48e Updated TYPE_MAP for security group rules
Updated TYPE_MAP for security group rules so that from_port and
to_port are correctly identified as ints for XML.

Fixed bug:1160238

Change-Id: I432c7f01fc16c476d6452a4ac4e219dbfa6d0388
2013-03-26 01:57:59 -07:00