summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
* Complete Identity v3 list command filtersDean Troyer2014-06-194-30/+362
| | | | | | | Complete the 'group list' and 'user list' filter options following the refactor in https://review.openstack.org/69878 Change-Id: Ib4af417c56d4f7da4b88852f191af615cc7fa2ec
* Merge "Refactor role list subcommand for identity v3 api"Jenkins2014-06-195-333/+302
|\
| * Refactor role list subcommand for identity v3 apiQiu Yu2014-06-135-333/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently parts of user list and group list command are actually functioning as role listing, which is quite counter intuitive and misleading. This refactor change move role related logic to a single place of role list command. It now allows role grants listing for user/group + domain/project combinations. If no user or group specified, it will list all roles in the system, which is the default behaviour. Change-Id: I4ced6df4b76f018d01000d28b4281ad9f252ffcc
* | Merge "Change the token verb to issue/revoke"Jenkins2014-06-182-3/+3
|\ \
| * | Change the token verb to issue/revokeTerry Howe2014-06-182-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Add token delete command for identity v2"Jenkins2014-06-183-0/+45
|\ \ \ | |/ /
| * | Add token delete command for identity v2Terry Howe2014-05-233-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | Identity v2 has undocumented support for token delete and keystoneclient also has support. Change-Id: Ib98d17958ceb88f7b63471691dee71fdb884ce2e Closes-Bug: #1318442
* | | Fix find_resource for keystone and cinderTerry Howe2014-06-174-15/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Image create and set command updates and testsDean Troyer2014-06-163-182/+569
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Refactor oauth1 code for updates"Jenkins2014-06-175-141/+451
|\ \ \
| * | | Refactor oauth1 code for updatesSteve Martinelli2014-06-145-141/+451
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Clean up logging levels"Jenkins2014-06-162-10/+44
|\ \ \ \ | |/ / / |/| | |
| * | | Clean up logging levelsDean Troyer2014-06-132-10/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following logging levels are set according to the combination of --verbose, --quiet and --debug options: verbose_level logging level options 0 --quiet ERROR 1 (none) WARNING 2 --verbose INFO 3+ --verbose --verbose DEBUG or --debug Logging levels for the requests and iso8601 modules are forced to ERROR. This is the first step in bp use-logging-not-print The difference between '--debug' and '--verbose --verbose' is --debug triggers cliff's exception handling and traceback display. Change-Id: Ide2233b3316471d279260fb1e7255a6ca2072023
* | | | Merge "Ignore most of the new hacking 0.9.2 rules"Jenkins2014-06-142-3/+4
|\ \ \ \
| * | | | Ignore most of the new hacking 0.9.2 rulesDean Troyer2014-06-132-3/+4
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | So we can update requriements.txt. But fix a couple of easy ones: * Fix E251 (1 occurrance) * Fix E131 (1 occurrance) Change-Id: I62aaa423aa6da9e9f0ca026ec586b51cc6a6df03
* | | | Merge "Add support for extension list"Jenkins2014-06-145-0/+271
|\ \ \ \ | |/ / / |/| | |
| * | | Add support for extension listMatt Fischer2014-06-115-0/+271
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add support in the common section for extension list. This only supports Identity for now. Once the APIs for volume and compute are supported in the respective APIs, they will be added. Once network is added to this client, it will be added (the API already supports it). - Include extension fakes for volume and compute for pre-enablement. Change-Id: Iebb0156a779887d2ab06488a2a27b70b56369376 Closes-Bug: #1319115
* | | Merge "Add role assignments list support to identity v3"Jenkins2014-06-133-0/+571
|\ \ \ | |/ / |/| |
| * | Add role assignments list support to identity v3henriquetruta2014-05-303-0/+571
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The assignments manager and its test class were created. Some fake stubs were also added on the fakes.py module. The "openstack role assignment list" command was created. Change-Id: Iae94f4fee608ea3e09ff38961ad22edc38efb89c Implements: blueprint roles-assignment-list Closes-Bug: 1246310
* | | Merge "Add tests for identity endpoints"Jenkins2014-06-102-0/+288
|\ \ \
| * | | Add tests for identity endpointsMatt Fischer2014-05-152-0/+288
| | | | | | | | | | | | | | | | | | | | Change-Id: If15cc74fafbbe52fa86aa353f2598aa31daf0695 Closes-Bug: #1319450
* | | | Merge "replace string format arguments with function parameters"Jenkins2014-06-1048-214/+215
|\ \ \ \ | |_|/ / |/| | |
| * | | replace string format arguments with function parametersChristian Berendt2014-05-2048-214/+215
| | |/ | |/| | | | | | | | | | | | | | | | | | | There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
* | | Merge "Fixed several typos throughout the codebase"Jenkins2014-05-283-3/+3
|\ \ \
| * | | Fixed several typos throughout the codebaseAlex Gaynor2014-05-213-3/+3
| |/ / | | | | | | | | | Change-Id: I048ee857fc1215fea7f60978364894e1b5abdf66
* | | Merge "Fix server image create"Jenkins2014-05-282-9/+5
|\ \ \ | |/ / |/| |
| * | Fix server image createDean Troyer2014-05-082-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | The final find_resource() call errored because servers.create_image() returns an image ID rather than an Image resource. Reset expectations and arguments. Change-Id: I1b9132f66091f9df76198724156acb7a6fb2f6fe
* | | Change volume create --volume-type to --typeDean Troyer2014-05-153-18/+158
| |/ |/| | | | | | | | | | | This makes it consistent with the other --type options in OSC. Also add a few more volume_create tests. Change-Id: I50ef927932cabf157ecdfd6c4faa1914b4fdf413
* | Merge "Implement CRUD operations for Identity Providers"Jenkins2014-05-093-0/+575
|\ \
| * | Implement CRUD operations for Identity ProvidersMarek Denis2014-04-243-0/+575
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Fix help message for `ip floating delete`"Jenkins2014-05-071-1/+1
|\ \ \
| * | | Fix help message for `ip floating delete`Yejia Xu2014-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Display all server log when --lines option is NoneYejia Xu2014-05-071-3/+7
|/ / / | | | | | | | | | | | | | | | | | | | | | Without --lines option, `console log show xxx` cmd will break. Change-Id: I4027aacac245e6916c1808fd9f878fb708c8a5f0 Closes-Bug: #1316870
* | | Merge "volume type create should display properties"Jenkins2014-05-061-9/+4
|\ \ \
| * | | volume type create should display propertiesTerry Howe2014-05-051-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Skip auth in cinderclientYejia Xu2014-05-051-0/+11
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Make endpoint commands more consistent"Jenkins2014-04-235-118/+74
|\ \ \
| * | | Make endpoint commands more consistentTerry Howe2014-03-285-118/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Fix the project option to user list so it filters"Jenkins2014-04-232-5/+26
|\ \ \ \ | |_|/ / |/| | |
| * | | Fix the project option to user list so it filtersTerry Howe2014-04-012-5/+26
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Pass arguments to v3 keystoneclient by kwarg"Jenkins2014-04-1713-72/+83
|\ \ \
| * | | Pass arguments to v3 keystoneclient by kwargJamie Lennox2014-04-0413-72/+83
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Make bash comple command best effort to authorize"Jenkins2014-04-171-1/+12
|\ \ \
| * | | Make bash comple command best effort to authorizeTerry Howe2014-03-061-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "In anticipation of network agents, rename compute"Jenkins2014-04-171-4/+4
|\ \ \ \
| * | | | In anticipation of network agents, rename computeTerry Howe2014-02-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename the compute agents in anticipation of network agents Change-Id: I201121915638d89dfbe46a7e0026aa4c2777e590 Closes-Bug: #1285800
* | | | | move read_blob_file_contents to utilsSteve Martinelli2014-04-142-8/+12
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Correct display of project/tenant id on display of credentials"Jenkins2014-03-231-2/+4
|\ \ \ \
| * | | | Correct display of project/tenant id on display of credentialsChris Johnson2014-03-211-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Produce a useful error message for NoUniqueMatchTerry Howe2014-03-172-0/+76
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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