670 Commits

Author SHA1 Message Date
Terry Howe
79488377eb Catch SystemExit for parse args
If you have a test with parse args it fails with no error
messages.  This change throws an exception.

Change-Id: I545aba346620a352fe570d394dbd4d6bd2daa995
2014-07-06 10:02:51 -06:00
Jenkins
b3736fd9df Merge "Remove keyring support from openstackclient" 2014-07-04 19:45:30 +00:00
Steve Martinelli
9b2e264ada Add support to list volume extensions
Since cinderclient has support to list extensions, we should add
some of the logic to our list extensions command.

Change-Id: I7dc7ca325ea9b82194bba6d875e7b8dc1884d77e
Closes-Bug: #1337687
2014-07-04 14:27:16 -04:00
Cyril Roelandt
1fedd38de6 Python 3: remove a useless code to safe_encode()
The safe_encode method returns bytes, so we cannot concatenate its output with
text strings. This call does not seem needed after all, so let's just remove
it.

Change-Id: I6c18427559147d4c732ff7daa6d6006e7e5f6365
2014-07-04 10:25:53 +02:00
Steve Martinelli
270c7fe967 Add support to list compute extensions
Since novaclient has support to list extensions, we should add
some of the logic to our list extensions command.

Closes-Bug: #1337684
Change-Id: I3074225780142df265a34add03e60c0f7c64c711
2014-07-03 23:53:57 -04:00
Alex Gaynor
b8f534df01 Remove keyring support from openstackclient
* The encryption it purports to offer is completely insecure.
* It also appears to be broken.

Closes-Bug: #1319381
Change-Id: Id15ecfbbfd15f142b14c125bfd85afd5032699ac
2014-07-04 01:56:18 +00:00
Jenkins
7f59fa5943 Merge "trust authentication" 2014-07-04 00:44:51 +00:00
Jenkins
e43c0f2b9b Merge "Python 3: do not use __builtin__" 2014-07-03 17:13:53 +00:00
Matthieu Huin
5672c688d1 trust authentication
This patch enables authenticating by using a trust. The trust ID
must be set with the parameter --os-trust-id or the env variable
OS_TRUST_ID. Trusts are available for the identity v3 API.

Co-Authored-By: Florent Flament <florent.flament@cloudwatt.com>
Change-Id: Iacc389b203bbadda53ca31a7f5a9b8b6e1a1f522
2014-07-03 10:12:02 +02:00
Cyril Roelandt
169587ddbd Python 3: do not use __builtin__
Use six.moves.builtins instead, this works with both Python 2 and 3.

Change-Id: I57e7257d4f06c805f26383e0778ad104d50ea139
2014-07-03 00:27:35 +02:00
Jenkins
8e12949958 Merge "Remove backslash usage from a few tests" 2014-07-02 21:22:11 +00:00
OpenStack Proposal Bot
0ab1791439 Updated from global requirements
Change-Id: I7f7714625a6cfb6bd8e0d313d27e898e178a1efb
2014-07-02 15:47:14 +00:00
Steve Martinelli
3bdfef827c Remove backslash usage from a few tests
Noticed these in the code, figured we should stick to not using
backslashes if possible.

Change-Id: I55e5402683141e14df7c2b38883b1f3cc2a6bb6a
2014-07-02 00:00:33 -04:00
Jenkins
ddf0c16a10 Merge "Fix PEP8 E126 and E202 errors" 2014-06-27 21:41:34 +00:00
Jenkins
58583b55ca Merge "Fix PEP8 E265 errors" 2014-06-27 21:41:33 +00:00
Jenkins
63b1c06024 Merge "Fix PEP8 H405 errors" 2014-06-27 21:41:31 +00:00
Jenkins
42765a15f3 Merge "Sort/clean setup.cfg" 2014-06-27 17:48:27 +00:00
Jenkins
4bebd8ac12 Merge "Rename token classes to match command" 2014-06-27 17:48:25 +00:00
Dean Troyer
1d2cd677cf Sort/clean setup.cfg
Change-Id: I68a1073d7ef4e6610233961c4aba8c4378ee584b
2014-06-27 09:14:58 -05:00
Dean Troyer
1fca946890 Rename token classes to match command
The token create/delete commands were renamed but not the class names.
Rename them to match.

Change-Id: Icbf9c0a954ed0332fa4c99e4ee2612bb11f89e3a
2014-06-27 09:14:58 -05:00
Dean Troyer
4914a8d107 Fix PEP8 E126 and E202 errors
Do both as they are all in the same set of files that required
major re-formatting.

Change-Id: I6e8a8ce19a55105124a33c0e2487fc4b4e06d252
2014-06-27 09:12:55 -05:00
Dean Troyer
11f3654f6e Fix PEP8 E265 errors
Change-Id: Ieb9a9af1da27d3935d1a4d3cfb61b0ccb03d099a
2014-06-27 09:12:55 -05:00
Dean Troyer
a78d75f290 Fix PEP8 H405 errors
Change-Id: Id9ea03e7d88148f84bffe1b18b5b4315e6123012
2014-06-27 09:12:38 -05:00
Alex Gaynor
86e0cf70cf Fixed typos in the identity client
Change-Id: I76042110f5a008d4c097862a572448448f92a504
2014-06-26 23:05:30 -07:00
Terry Howe
8f59524c3e Network CRUD
bp/neutron
https://wiki.openstack.org/wiki/OpenStackClient/Commands#Network_2

Change-Id: I89ee083154afa544b03587e84becace36d9d522a
2014-06-24 15:00:25 -06:00
Jenkins
adf9349c40 Merge "sync oslo bits" 2014-06-23 16:02:09 +00:00
OpenStack Proposal Bot
eeebd0db8c Updated from global requirements
Change-Id: Ia54da66d13b2667375a8a85c97ced25fd97b6b25
2014-06-23 05:34:50 +00:00
Steve Martinelli
a368983705 sync oslo bits
update gettextutils.py, strutils.py, install_venv_common.py
remove iniparsers.py

oslo-incubator commit 1223cf

Change-Id: I23923d580f57ab6c12622f10d9f278c44c863feb
2014-06-20 16:18:33 -04:00
Jenkins
a732bfae49 Merge "Update docs and release notes for 0.4.0" 2014-06-20 20:05:58 +00:00
Dean Troyer
3fa5fa5ba7 Update docs and release notes for 0.4.0
Change-Id: Iad6cfe5dee63adb9e60a0ea9811217b3175eb99c
2014-06-20 12:15:52 -05:00
Jenkins
23f64a469a Merge "Complete Identity v3 list command filters" 2014-06-20 15:46:39 +00:00
OpenStack Proposal Bot
3019f11032 Updated from global requirements
Change-Id: I708fe9d2f10e53d61e67130ff41b0f92cddef64d
2014-06-20 03:38:56 +00:00
Dean Troyer
9dd3a5326c Complete Identity v3 list command filters
Complete the 'group list' and 'user list' filter options following
the refactor in https://review.openstack.org/69878

Change-Id: Ib4af417c56d4f7da4b88852f191af615cc7fa2ec
2014-06-19 13:00:02 -05:00
Jenkins
c6cc1d72d5 Merge "Refactor role list subcommand for identity v3 api" 2014-06-19 17:14:03 +00:00
Jenkins
0a491b2ac8 Merge "Change the token verb to issue/revoke" 2014-06-18 22:44:24 +00:00
Terry Howe
25d6955bb4 Change the token verb to issue/revoke
Change the token verb to issue/revoke as documented in:

https://wiki.openstack.org/wiki/OpenStackClient/Commands#token
https://wiki.openstack.org/wiki/OpenStackClient/Commands#Actions

Change-Id: I44f77f98ad3269c4f2149301c204804dcb75ac81
2014-06-18 14:58:04 -06:00
Jenkins
982b418da7 Merge "Update docs template" 2014-06-18 15:40:04 +00:00
Jenkins
ddcc668393 Merge "Add a docs job to tox.ini" 2014-06-18 15:38:49 +00:00
Jenkins
1f2189d6de Merge "Add token delete command for identity v2" 2014-06-18 15:37:40 +00:00
Steve Martinelli
deaff7274e Update docs template
To make things more consistent across all openstack projects, the
developer docs should be upgraded to the newer template used by
keystone and keystoneclient (and other projects).

I dropped in the necessary static files and themes, and updated
the config file to make the changes at build time.

Change-Id: I5a268cff3cd5af29ad712705d540b9d1d6667d56
Partial-Bug: #1331304
2014-06-18 03:47:37 +00:00
Steve Martinelli
89cbdd1ae1 Add a docs job to tox.ini
A noticed that there wasn't a docs option when running tox.
Thought it would be a good idea to add one.

Partial-Bug: #1331304
Change-Id: I5af9ff5d5986ad546146c0fa73eb98256fd00c5f
2014-06-18 03:41:42 +00:00
Terry Howe
0b2987fef3 Fix find_resource for keystone and cinder
The find_resource method had two hacks in in to support cinder
and keystone and I have removed those in favor of a monkey patch
for cinder.

The find_resource method used to attempt to UUID parse the id, but
it would do a manager.get anyway.  I changed it to skip the UUID
parsing.  This will make things run minorly faster and it supports
LDAP for keystone.

The find_resource used to attempt to use display_name=name_or_id
when finding.  This was a hack for cinder support, but it breaks
keystone because keystone totally messes up with the bogus filter
and keystone refuses to fix it.

Change-Id: I66e45a6341f704900f1d5321a0e70eac3d051665
Closes-Bug: #1306699
2014-06-17 10:24:26 -06:00
Dean Troyer
6380b8b959 Image create and set command updates and tests
Refactor image create and set commands to properly handle properties.
This is particularly tricky with exclusive booleans as in this case leaving
both choices off the command line should NOT assume a default value but
leave the existing value unchanged.

Properties were not being updated correctly in the 'image set' command.
Refactor it to use the same pattern as in other SetXxx commands.
Add tests for arg handling.

Change-Id: I123a64c9b4feecab25a3e2013cc047f55b1c9967
2014-06-16 23:30:46 -04:00
Jenkins
aba1fb2268 Merge "Refactor oauth1 code for updates" 2014-06-17 01:23:25 +00:00
Jenkins
fbb9e7aefa Merge "Clean up logging levels" 2014-06-16 21:32:31 +00:00
Jenkins
5c2d9f386b Merge "Updated from global requirements" 2014-06-15 00:17:45 +00:00
Steve Martinelli
d5aaba9d82 Refactor oauth1 code for updates
The keystoneclient code for oauth1 support has changed.
As such, we should remove the delete, list and authenticate
functions, since they are not in keystoneclient.

Also, we must now pass in the project id when creating a
request token. Additionally we must now pass in roles
when authorizing a request token.

Added functional tests to ensure output and input args
are the same.

bp add-oauth-support
Change-Id: I559c18a73ad95a0c8b7a6a95f463b78334186f61
2014-06-14 17:21:17 -04:00
Jenkins
0da5bfe428 Merge "Ignore most of the new hacking 0.9.2 rules" 2014-06-14 18:37:12 +00:00
Jenkins
99e7660d56 Merge "Add support for extension list" 2014-06-14 06:25:38 +00:00
OpenStack Proposal Bot
5805596013 Updated from global requirements
Change-Id: I44f13a22528824a8b24ffb3b0e3075e870e5ee58
2014-06-13 22:57:28 +00:00