315 Commits

Author SHA1 Message Date
Steve Martinelli
6146213e32 Add list and delete authorizations for oauth commands
* List user authorizations
* Delete user authorization
* Grouped the commands with oauth prefix

Change-Id: I032ffa25181aad0fb4689f69cdca5a7adc6e29f1
2013-07-16 15:06:47 -05:00
Dean Troyer
bbb71e7ce2 Add --catalog to service show
Shows endpoints from the service catalog rather than the system services.

Change-Id: I842916af9f7c0a76c4d3e27e419bf0fec059ec78
2013-07-16 11:31:28 -05:00
Alessio Ababilov
f768ea2b22 Update openstack-common.conf format
Change-Id: Ifa6718331d3da91f0e9515a809484808bd6317f9
2013-07-16 15:20:03 +03:00
Jenkins
6cb58fa16b Merge "Add authenticate method to oauth code" 2013-07-15 13:08:34 +00:00
Dean Troyer
75dcdb0c66 Add show limits command
* This is a combination of the compute and volume API limits as they are
  very similar.  As such, the command lives in a new command group
  'openstack.common' that is unversioned.
* Implements 'limits show [--absolute|--rate]

Updated for https://review.openstack.org/#/c/36772/

Bug: 1172057

Change-Id: I2bd181cd0d098f7143360ae67944c2f221379af5
2013-07-12 12:13:27 -05:00
Steve Martinelli
1a0d5ccc68 Remove api = apiName calls from each method
As discussed in https://review.openstack.org/#/c/36352/ for each
command, we were setting api = identity or volume... etc,
this was for an old way of calling commands that are is no longer
used.

Also removed openstackclient/common/command.py

Change-Id: I2705f35d343f2ae729dc22d6aed0b852b2f8ca19
2013-07-12 11:07:33 -05:00
Steve Martinelli
713908385a Add authenticate method to oauth code
Forgot to add one last method when I initially checked in
the first set of code; the authenticate method will return an
actual keystone token that the user may now use.

Also, I added some changes to other methods because the client
has been updated.

Change-Id: Ie2707689e0df1fb1bc92177f932baf23fe1ca920
2013-07-10 20:21:58 -05:00
Jenkins
f0d3bf85d8 Merge "Sync install_venv_common from oslo" 2013-07-08 23:48:29 +00:00
Jenkins
d756975614 Merge "Add EC2 credentials CRUD" 2013-07-08 18:45:50 +00:00
Monty Taylor
4022e41c64 Sync install_venv_common from oslo
Change-Id: I0a57c658e0f89d13963862013793e12ae208c05b
2013-07-05 22:31:15 -04:00
Monty Taylor
d7501c352d Update documentation with info about setup.cfg
Change-Id: If87df1e6415d0b70b6605b1d89eda639fc44a0b6
2013-07-05 22:30:54 -04:00
Jenkins
bf3ee1e9a5 Merge "Finish up v3 role commands" 2013-07-05 17:10:22 +00:00
Jenkins
a54b88fa9f Merge "Add methods for user and group interactions" 2013-07-05 16:41:36 +00:00
Dean Troyer
7298dd5e72 Add EC2 credentials CRUD
ec2 credentials: create, delete, list, show

Change-Id: I82ff84ed433cd9a2da9534bf5f584a2e1a3fe68c
2013-07-03 12:11:44 -05:00
Steve Martinelli
f29a849ffc Finish up v3 role commands
* Add remove role
* Add --role to group list
* Add --role to user list
* Fix groups in AddRole()
* Remove the tweaks to utils.find_resource for domains; will address
  that across domains, projects, users and groups in another patch.
  I want to nail down the structure of these commands and get that into place

Change-Id: I8673dd8221ef88978dada5a2833c187026bdb31a
2013-07-03 11:51:23 -05:00
Jenkins
f18d674efa Merge "Move tests into project package." 2013-07-02 14:26:25 +00:00
Jenkins
b63e8d5241 Merge "Remove python3 incompatible exception syntax." 2013-07-02 14:26:15 +00:00
Steve Martinelli
9dbf46b837 Add methods for user and group interactions
* Add user to group
* Contains user in group
* Remove user from group

Change-Id: If5219fa9d4761d7b97950c39556b3e1b8aab6517
2013-07-02 08:58:55 -05:00
Jenkins
674dd48ad9 Merge "Add OAuth support for Identity V3" 2013-07-01 19:19:47 +00:00
Monty Taylor
196daf859b Move tests into project package.
There are several reasons for this. One is that the majority of
OpenStack packages behave this way. The second is that it makes writing
software that extends something easier to test (which is a clear usecase
for openstackclient) And third, tests/__init__.py implies a global
package named "tests" - which I'm pretty sure we're not providing.

Change-Id: Ic708ffd92aea78c2ffc1a8579af0587af4fca4ff
2013-06-30 23:30:54 -04:00
Monty Taylor
108f78d989 Remove python3 incompatible exception syntax.
Change-Id: I5f0687a83362ceebf03bae4a0a5b109aad7e5200
2013-06-30 23:30:54 -04:00
Jenkins
d50b575064 Merge "Fix py26 tests: assertDictEqual" 2013-06-26 21:56:21 +00:00
Steve Martinelli
dd3aa0b671 Add OAuth support for Identity V3
Added client side support for:
* consumer CRUD
* create request token
* create access token
* authroize request token

blueprint: delegated-auth-via-oauth

Change-Id: I8d325fcab07ac4dfd124a6e55053ded8d6bf662e
2013-06-26 11:40:30 -05:00
Dean Troyer
bc3039a43c Fix py26 tests: assertDictEqual
assertDictEqual is not present in py26 so shim it in here
stolen from python-keystoneclient/tests/test_auth_token_middleware.py

Change-Id: Ifd5990a8c03d11ee93cddc2f61653255970d974c
2013-06-25 10:35:22 -05:00
Jenkins
1d7f6488c9 Merge "Add volume backup commands" 2013-06-11 20:34:43 +00:00
Monty Taylor
d542def039 Remove explicit distribute depend.
Causes issues with the recent re-merge with setuptools. Advice from
upstream is to stop doing explicit depends.

Change-Id: Ic83dca8c17799335b76311d1d657adcd1dc94f01
2013-06-11 11:33:28 -07:00
Hugh Saunders
ea31333c49 Add volume backup commands
Change-Id: Iedccd329ff6fb3155eb29649cd0bc84cfc5ebedf
Implements: blueprint volume-backup
2013-06-03 16:40:59 +01:00
Chuck Short
7183a11f09 python3: Introduce py33 to tox.ini
Introduce py33 to tox.ini to make testing with
python3 easier.

Change-Id: I7a775ac51e0bc0a5929184af47d51ea1cc4e3219
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-06-01 19:58:34 -05:00
Jenkins
f4f85a2f79 Merge "Tweak volume commands and add k=v argparse action" 2013-05-30 16:25:36 +00:00
Zhenguo Niu
bac0718764 Rename requires files to standard names.
Rename tools/pip-requires to requirements.txt and tools/test-requires
to test-requirements.txt. These are standard files, and tools in the
general world are growing intelligence about them.

Change-Id: I903213fda94a833335abaa7ad9a90bbb688ec15a
Fixes: bug #1179008
2013-05-29 17:38:13 +08:00
Jenkins
4430092706 Merge "Fix identity v2.0 entry point" 2013-05-28 15:35:39 +00:00
Jenkins
b7565c297d Merge "Add domain and description to user for v3 identity" 2013-05-28 15:23:40 +00:00
Dean Troyer
bf588ed9c4 Fix identity v2.0 entry point
Change-Id: Ifae91a612fcd8b66660b93f6ea81d37e0f1bce1d
2013-05-24 16:59:35 -05:00
Dean Troyer
ea9ec1c6bc Tweak volume commands and add k=v argparse action
Basic cleanups:
* change metadata to property
* add new KeyValueAction to parse the property options
* multiple properties can be set using multiple --property args
* consistent formatting
* do lookups for volume args

Change-Id: Ib6c43f01ad46b395aee8c61e886f42e2a5f5573e
2013-05-24 15:02:52 -05:00
Steve Martinelli
02a4f16f16 Add domain and description to user for v3 identity
* splitting the changes seen in 27142 to a few new patches
* this one will just update v3 user to have description and domain

Change-Id: I9b4c365703da27e26ddc702f37cf5928e19cebdc
2013-05-17 06:42:48 -05:00
Monty Taylor
d49fcb726d Migrate to pbr.
Fixes bug 1179007

Change-Id: Ief74b121dcad28bb1c2b6044ef72e0cbd51e8f65
2013-05-16 10:36:08 -07:00
Monty Taylor
967d929207 Migrate to flake8.
Fixes bug 1172444

Change-Id: Ieca721663aea2fd31753df4abfb5b01a7145b26a
2013-05-16 10:36:02 -07:00
Monty Taylor
016a0b301e Fix flake8 errors in anticipation of flake8 patch.
Change-Id: Ifdc4322b699f2bd91a6900e55695acd3d736568e
2013-05-14 08:28:48 -07:00
Jenkins
d6c760263b Merge "Switch to noun-verb command forms" 2013-05-13 14:57:38 +00:00
Josh Kearney
a2e3a16221 Rename all instances of 'metadata' to 'property'.
Change-Id: I454cbe685dc5afa0a09ecc976a90d6eb6bc57d14
2013-05-07 11:18:38 -05:00
Doug Hellmann
b16f210bbf Switch to noun-verb command forms
Reverse the commands to use nouns followed by
verbs to allow users to take full advantage of
tab completion.

Compound nouns (e.g., "floating-ip") are also
reversed (e.g., "ip floating list" and "ip fixed list").

blueprint nouns-vs-verbs

Change-Id: Icf09fb8d7dbd09772bddbbeb74f9a379d9189b72
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-04-30 06:54:02 -04:00
Dean Troyer
53bbff67eb Add console commands
Adds:
* console-log
* console-url

Part of blueprint nova-client

Change-Id: Ibea7f96382283770988d05379d41a148f8cd8c4f
2013-04-25 14:36:46 -05:00
Jenkins
6b478390fb Merge "Add compute keypair commands" 2013-04-25 19:24:24 +00:00
Jenkins
e273691c67 Merge "Add fixed-ip and floating-ip commands" 2013-04-25 19:23:16 +00:00
Jenkins
c5e9048dc4 Merge "Adds image create and delete functionality." 2013-04-25 18:30:19 +00:00
Josh Kearney
6da61e03f0 Adds image create and delete functionality.
We use the V1 API for `create` since it does not
yet exist in the V2 API in glanceclient.

For blueprint glance-client.

Change-Id: Ifa819c14f6a013f4530d16247a671e5a1c740a28
2013-04-23 14:09:20 -05:00
Dean Troyer
e9021c213b Add fixed-ip and floating-ip commands
Adds:
* fixed-ip commands: add, remove
* floating-ip commands: add, create, delete, list, remove
* floating-ip-poo command: list

Also uses NAME_ATTR in the Resource class if present to determine
the attribute to be used for searching in utils.find_resource()

Change-Id: Ifd8fa60f880fc4050dea182ac24553cc2c4bff15
2013-04-14 20:26:42 -05:00
Dean Troyer
364769f978 Add compute keypair commands
Add create, delete, list, show keypair commands

Part of blueprint nova-client

Change-Id: Ieba00d3b3e3a326f875c01ac2a2b9bbd036cd7c9
2013-04-12 17:28:21 -05:00
Dean Troyer
3641b03690 metadata is one word
Change-Id: I2baff95c9b6dcc95edf5d5da74814ff37883cd2b
2013-04-08 17:23:50 -05:00
Jenkins
95bf187a4f Merge "Add metadata support for volume" 2013-04-02 15:25:03 +00:00