278 Commits

Author SHA1 Message Date
Christian Berendt
3b485de6b0 replace string format arguments with function parameters
There are files containing string format arguments inside
logging messages. Using logging function parameters should
be preferred.

Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
2014-05-20 13:49:56 +02:00
Dean Troyer
870e7ddbcc Change volume create --volume-type to --type
This makes it consistent with the other --type options in OSC.  Also
add a few more volume_create tests.

Change-Id: I50ef927932cabf157ecdfd6c4faa1914b4fdf413
2014-05-15 09:25:07 -05:00
Jenkins
a93851d6af Merge "Implement CRUD operations for Identity Providers" 2014-05-09 21:38:20 +00:00
Jenkins
03b9a7282b Merge "Fix help message for ip floating delete" 2014-05-07 16:40:41 +00:00
Yejia Xu
3b57117f8e Display all server log when --lines option is None
Without --lines option, `console log show xxx`
cmd will break.

Change-Id: I4027aacac245e6916c1808fd9f878fb708c8a5f0
Closes-Bug: #1316870
2014-05-07 05:15:22 +00:00
Yejia Xu
f7f8fe4e7c Fix help message for ip floating delete
Previously, the help message incorrectly had the
string "IP address to add to server". This should
probably read "IP address to delete".

Change-Id: If592b736448199f84c30e0cbc8110a0a76e2c140
Closes-Bug: #1316877
2014-05-07 05:13:41 +00:00
Jenkins
834867b8bf Merge "volume type create should display properties" 2014-05-06 06:27:28 +00:00
Terry Howe
37231b5801 volume type create should display properties
The volume type create command should properly output the
properties.  The code was doing a create on the volume type and
then setting the properties, but it was printing out the volume
object from the create.

Change-Id: I23c8a0182e77bb71903ad87c1b01ba2b62405f3b
Closes-Bug: #1303978
2014-05-05 14:21:50 -06:00
Yejia Xu
2cc3a2fdbd Skip auth in cinderclient
cinderclient can't work well with keystone v3 auth
info. We should do it in openstackclient just like
compute extension.

Closes-Bug: #1315963
Change-Id: I46f794c5315f6a9fe1d9a0e5dc7b84f067d7f792
2014-05-05 17:09:28 +00:00
Marek Denis
ef9496a4fc Implement CRUD operations for Identity Providers
Operations for:
    * adding Identity Provider
    * listing Identity Providers
    * showing Identity Provider
    * updating Identity Provider
    * deleting Identity Provider

Change-Id: I4557168309f93e4670116b5c3c0e29252ff0c40f
Implements: bp/add-openstackclient-federation-crud
2014-04-24 14:55:54 +02:00
Jenkins
2643df7405 Merge "Make endpoint commands more consistent" 2014-04-23 23:11:49 +00:00
Jenkins
845f6705bf Merge "Fix the project option to user list so it filters" 2014-04-23 23:11:48 +00:00
Jenkins
8ec78a10f8 Merge "Pass arguments to v3 keystoneclient by kwarg" 2014-04-17 02:40:36 +00:00
Jenkins
3c3f212d8b Merge "Make bash comple command best effort to authorize" 2014-04-17 02:06:11 +00:00
Jenkins
398dc6c0bd Merge "In anticipation of network agents, rename compute" 2014-04-17 02:04:18 +00:00
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
Jamie Lennox
022b6d95d1 Pass arguments to v3 keystoneclient by kwarg
Keystoneclient has added the positional decorator which emits a warning
if arguments aren't passed by keyword. This means we are getting
warnings in certain places in openstackclient.

Change-Id: Ic5446cd6f122cbb56fce543011386d53bc31fe18
Closes-Bug: #1302199
2014-04-04 08:09:43 +10:00
Terry Howe
e72072adc3 Fix the project option to user list so it filters
The --project option to the user list command was not implemented
* Allow users to be filted by project
* Support id or name of project with the find_resource command
* Make sure the report does not contain duplicates

Change-Id: Ic0e10cccd7749d38a7d4b80bbdc68e61a660084b
Closes-Bug: #1177255
2014-04-01 09:03:45 -06:00
Terry Howe
bea6e6ac23 Make endpoint commands more consistent
Make endpoints more consistent across create, show, etc
* Make the name option required for create
* Use a common function to fetch services by id, name or type
* Have show work by endpoint id or by service id, type or name
* Have show display all the fields by default
* Remove capability to filter queries by attribute value pairs

Change-Id: Idaa4b8d930ba859fd62de777e44a10b1ed58c79b
Partial-Bug: #1184012
2014-03-28 12:33:58 -06: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
Jenkins
cf8506d2bd Merge "Fix 'keypair show' command output" 2014-03-10 16:40:50 +00:00
Jenkins
3293138121 Merge "Add --volume option to image create command" 2014-03-08 03:50:54 +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
Terry Howe
211cd31d7a Make bash comple command best effort to authorize
If authorization fails for the complete command, generate the bash complete anyway.
* Added best_effort flag to command
* Attempts to authorize for bash complete, but if it fails, it tries anyway

Change-Id: I796258f8044f42abc6a51164d920a26f73397962
Partial-Bug: #1283550
2014-03-06 18:41:37 -07: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
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
9ccaacbe27 Merge "Fix format errors in nova security group rule list" 2014-02-28 01:44:48 +00:00
Terry Howe
e9015b94f9 In anticipation of network agents, rename compute
Rename the compute agents in anticipation of network agents

Change-Id: I201121915638d89dfbe46a7e0026aa4c2777e590
Closes-Bug: #1285800
2014-02-27 10:55:37 -07: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
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