383 Commits

Author SHA1 Message Date
Steve Martinelli
01db6d977f move read_blob_file_contents to utils
Thinking ahead, a few other upcoming keystone features could
benefit from reading contents from a file. Thus, moving the
function from policy to utils.

Change-Id: I713ab0e5a00c949ad996daf83b775a7c19044888
2014-04-14 22:16:59 -05:00
Jenkins
ee22070473 Merge "Correct display of project/tenant id on display of credentials" 2014-03-23 18:43:24 +00:00
Chris Johnson
8117256d7d Correct display of project/tenant id on display of credentials
This change corrects the display of ec2 credentails within the
ListEC2Creds method. Added explicit headers and corrected data listt o
specify tenant_id instead of project id.

Change-Id: I2ea579082bee800d774f202bdc38e2d546e57e77
Closes-Bug: #1292337
2014-03-21 11:22:22 -04:00
Terry Howe
4900c64d09 Produce a useful error message for NoUniqueMatch
Most of the CLIs use a NoUniqueMatch, so produce a useful
error message if that happens.  Added some tests for
find_resource as well.

Change-Id: I85ba61d5f6d1be5bd336a1cc4b02501492905f33
Closes-Bug: #1293846
2014-03-17 17:32:41 -06:00
Steven Hardy
0c0803d363 identity v3 allow project list filtering by domain
The underlying keystoneclient interface allows filtering by domain,
so support it in the cli interface because it makes project list
much nicer to use in a multi-domain deployment.

Change-Id: If3f5cf1205c1e9cf314f8286a3ae81bda4456b8f
Closes-Bug: #1289513
2014-03-13 09:32:21 +00:00
Jenkins
ce63fa0121 Merge "Add ability to set key value pairs in projects" 2014-03-13 06:33:24 +00:00
OpenStack Jenkins
65f094e738 Updated from global requirements
Change-Id: I73f40a5fd569d0a5e341aabbece1885a7478d7f5
2014-03-10 21:37:10 +00:00
Jenkins
cf8506d2bd Merge "Fix 'keypair show' command output" 2014-03-10 16:40:50 +00:00
Jenkins
46322387b6 Merge "Fixed spelling error, compatability to compatibility" 2014-03-08 03:50:55 +00:00
Jenkins
3293138121 Merge "Add --volume option to image create command" 2014-03-08 03:50:54 +00:00
Jenkins
b03680aea5 Merge "Fixed Spelling errors - compatability to compatibility" 2014-03-08 00:33:11 +00:00
Jenkins
b0c0b48fdc Merge "Fixed spelling errors - occurance to occurence" 2014-03-08 00:33:10 +00:00
Dean Troyer
27ebdeb57d Fix 'keypair show' command output
The attempt to get the data dict out of the keypair resource object uses a
key 'keypair. This is incorrect, no key is required.

Closes-Bug: 1289594
Change-Id: I7887119c1d800d389cb6f63ea7847bea1e25bb52
2014-03-07 15:34:31 -06:00
Dolph Mathews
3435f188a4 add interface and url to endpoint list
endpoint list is not terribly useful without these details

Change-Id: I65b0bdf7667d73ceaad5856171678cabcde003f3
2014-03-07 11:51:15 -07:00
Alex Holden
00188f092c Fixed spelling error, compatability to compatibility
Change-Id: I72c1254666a741ffe1070cf8275af889fa323f52
2014-03-07 09:40:29 -08:00
Alex Holden
97667079dc Fixed Spelling errors - compatability to compatibility
Change-Id: I9da380cef8b798e21fd35882763bd05f5cf1e33e
2014-03-07 09:39:02 -08:00
Alex Holden
14548aa69a Fixed spelling errors - occurance to occurence
Change-Id: Ie0550a1168448d85043d9b4943edd732b1f10307
2014-03-07 09:38:05 -08:00
Terry Howe
70e6333e7d Add ability to set key value pairs in projects
Add supporto of extra key value pairs for projects (aka tenants)
* Added option --property key=value to create and set commands
* Support for versions v2 and v3

Change-Id: I84064b8b308579d1b66c83b1ed3d1a37614ec087
Closes-Bug: #1220280
2014-03-06 14:22:17 -07:00
OpenStack Jenkins
64a33b0aa5 Updated from global requirements
Change-Id: Ic90d9682a9c15795928c0c5b64c41bd06d74243a
2014-03-05 19:30:08 +00:00
Terry Howe
e6e0dbf754 Add --volume option to image create command
Add ability to create an image from a volume.
* Added --volume command to image create
* Added --force option to image create
* Added block to access volume manager in image create
* Tests added for the volume option

Change-Id: I3910a2b5e04acd0d15dd230747ba6ebca07aa316
Closes-Bug: #1207615
2014-03-05 11:26:13 -07:00
Jenkins
808fa65210 Merge "Update release notes for 0.3.1" 2014-02-28 23:14:51 +00:00
Jenkins
9ccaacbe27 Merge "Fix format errors in nova security group rule list" 2014-02-28 01:44:48 +00:00
Dean Troyer
038269cf7f Update release notes for 0.3.1
* update README
* update man page
* fix doc errors

Change-Id: I5682654bf482289879c8ba9016e348f2b2782971
2014-02-27 17:36:28 -06:00
Jenkins
b7f673cb81 Merge "Fix volume commands with multiple regions" 2014-02-26 23:18:34 +00:00
Jamie Lennox
8be3e249b6 Use cacert values when creating identity client
These were ignored when the client was created with a username and
password.

Change-Id: Id7557a5b07a41c7f79ab1a05ede385da31889940
Closes-Bug: #1284957
2014-02-26 13:29:19 +10:00
OpenStack Jenkins
125393210b Updated from global requirements
Change-Id: Icad0fcf4125b4aefac7ed8f0df5bef2c6ee64594
2014-02-23 09:31:55 +00:00
Jenkins
8fe50fc75d Merge "Fix some help strings" 2014-02-23 06:17:49 +00:00
Jenkins
034a9d158f Merge "Add ability to prompt for passwords for user create and set" 2014-02-22 06:00:18 +00:00
Terry Howe
eddab62109 Fix volume commands with multiple regions
The region_name was not passed into the the client causing volume
commands to fail if there were multiple regions.

Change-Id: I066dbbc4852f412e017daeeb16a3f186d3f91d2f
Closes-Bug: #1241177
2014-02-21 17:22:26 -07:00
Terry Howe
033f27fe4d Add ability to prompt for passwords for user create and set
* Add get_password method to the utilities
* Add --password-prompt option
* Call the get_password method if a prompt is requested
* Various tests

Change-Id: I1786ad531e2a2fbcc21b8bc86aac0ccd7985995a
Closes-Bug: 1100116
2014-02-21 14:42:22 -07:00
Andreas Jaeger
5043293156 Fix some help strings
This fixes some errors and inconsistencies I found reviewing the
help strings:
* Capitalize help strings
* Add missing space between words (in multi-line strings)
* Improve wording

Change-Id: I2fb31ab4191c330146e31c1a9651115a6657769a
2014-02-21 19:40:41 +01:00
Jenkins
8b494f08b2 Merge "Update oslo incubator bits" 2014-02-21 18:27:51 +00:00
Jenkins
2cae50c442 Merge "Rename Openstack to OpenStack" 2014-02-21 01:36:26 +00:00
Terry Howe
ada9d35cbe Fix format errors in nova security group rule list
* port range was throwing exception for None to/from ports
* ip_range didn't always have cidr causing error
* ip_protocol None at times and looked bad

Closes-Bug #1256935

Change-Id: I451a0f038a3e9646bca3f278c5d6f6d7e3097a83
2014-02-20 20:17:53 +00:00
Dean Troyer
99cea54741 Update oslo incubator bits
* update gettextutils.py, strutils.py, install_venv_common.py
* remove cfg.py, openstackkeyring

oslo-incubator commit 630d3959b9d001ca18bd2ed1cf757f2eb44a336f

Change-Id: I0ae9b9dc72ec88ed64a8c353b9c51734ee2cd24c
2014-02-20 14:09:01 -06:00
Jenkins
2958421755 Merge "Glance client no longer isa http client" 2014-02-20 20:00:59 +00:00
Cyril Roelandt
5f9e7d09cb Python 3: the content of a FakeResponse must be bytes
Encode '_content' if necessary.

Change-Id: I25c1e1cd5330f0519bf062be840045d0ef520b28
2014-02-18 00:49:10 +01:00
tanlin
d8bdd2b5ed Rename Openstack to OpenStack
Change-Id: I9e5b245141290a4b642900fbc46b98bd4f44c321
2014-02-14 09:16:20 +08:00
Jenkins
2f5e8232aa Merge "Python 3: fix a syntax error" 2014-02-11 21:36:46 +00:00
Jenkins
e068cd0d71 Merge "FakeResponse: use a default status code" 2014-02-11 21:35:55 +00:00
Jenkins
c8354b8d83 Merge "Fix misspellings in python openstackclient" 2014-02-11 18:44:30 +00:00
Cyril Roelandt
9dc3eb5b18 FakeResponse: use a default status code
When running some tests from test_restapi.py, the following error happens:

    TypeError: unorderable types: NoneType() < int()

In Python 2, comparing NoneType and integers is possible:

    >>> None < 2
    True

But in Python 3, it's not allowed. Fix this by using a default status code.

Change-Id: Ic0fad5c68f3bf2dd8a2b98423549903f982192c9
2014-02-11 17:31:37 +01:00
Jenkins
9aa207eb9d Merge "Use six.iteritems() rather than dict.iteritems()" 2014-02-11 15:41:40 +00:00
Cyril Roelandt
eaa4c3e1a6 Python 3: fix a syntax error
"raise AttributeError, name" is invalid in Python 3.

Change-Id: Id61bd3747f49c2bd810cbfeae56506e7ed9d2bd0
2014-02-11 15:44:54 +01:00
Cyril Roelandt
3a5abf743c Use six.iteritems() rather than dict.iteritems()
This is compatible with both Python 2 and 3.

Change-Id: I6fe3e9bf9ece699badbdb9933118af90642a91e9
2014-02-11 02:53:24 +01:00
Jeremy Stanley
380d78c856 Remove tox locale overrides
* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.

Change-Id: I89ff5c22be053f09defb04b3ec589d74bffcae9d
Closes-Bug: #1277495
2014-02-10 03:10:52 +00:00
Terry Howe
ecc4fb330d Glance client no longer isa http client
If the client has-a http_client, then is must not be an is-a.  This has been tested with the current version of glanceclient and the master branch.

Closes-Bug: #1269821
Change-Id: I14d67eb094bfb4c2dbc07106343488298b6a9409
2014-02-07 13:43:02 -07:00
Shane Wang
8aa0b07fbc Fix misspellings in python openstackclient
Fix misspellings detected by:
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: Ic0d3efa26eb9a05ce16a8319c142f5bd1ce23821
Closes-Bug: #1257295
2014-02-07 13:26:48 +08:00
Jenkins
632363328b Merge "Add token create subcommand for identity v3 api" 2014-01-31 17:28:02 +00:00
Qiu Yu
a8d828f330 Add token create subcommand for identity v3 api
Implements token create subcommand which is an equivalent of keystone
token-get command. Original "wrap" parameter for keystone token-get is
not implemented yet due to cliff Bug #1269299

This is a part of: blueprint add-identity-token-support

Change-Id: I2255021c9d1f10f757686583b1ebe40b5f3a9ecb
2014-01-29 15:59:12 +08:00