summaryrefslogtreecommitdiff
path: root/openstackclient/common
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add action 'user password set' for identiy v3"Jenkins2014-09-071-3/+6
|\
| * Add action 'user password set' for identiy v3Mouad Benchchaoui2014-09-071-3/+6
| | | | | | | | | | | | | | | | | | | | | | This new action will allow a user to change their own password by either providing the new password as an argument (--password) or by being prompted to enter the new password. In both cases user will be prompted to enter their current password as required by the v3 API. Closes-Bug: #1337245 Change-Id: I5e1e0fd2b46a4502318da57f7cce2b236fb2d93d
* | Merge "Unordered dicts and lists causes variable results"Jenkins2014-09-071-2/+2
|\ \
| * | Unordered dicts and lists causes variable resultsTerry Howe2014-09-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The unordered dict and lists causes variable results. The user may see different results and tests can fail. Might as well make this more consistent. Change-Id: I7045b40b44cbf3ee0f2ca79c6ea0d279b6d8cfe3
* | | Merge "Leverage openstack.common.importutils for import_class"Jenkins2014-09-071-13/+2
|\ \ \
| * | | Leverage openstack.common.importutils for import_classAaron Rosen2014-09-061-13/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | This patch drops the import_utils method from common.utils and leverages it from openstack.common.importutils instead. Change-Id: If7e7383aa742afe44f750f916c0d90d747793150 Closes-bug: 1365273
* | | Change app.restapi to app.client_manager.sessionDean Troyer2014-08-251-1/+13
|/ / | | | | | | | | | | | | | | | | | | | | This is step 1 toward using Keystone client's session.Session as the primary session/requests interface in OSC. * Move the session create into ClientManager and rename 'restapi' attribute to 'session' * Set up ClientManager and session loggers * Fix container and object command references to restapi/api Change-Id: I013d81520b336c7a6422cd22c05d1d65655e64f8
* | Add container create and delete supportSteve Martinelli2014-08-031-3/+15
| | | | | | | | | | | | | | Add basic container create and delete support to OSC. Change-Id: Ia104db9d7e580d33097ea33a5690998f817995d1 implements: bp swift-client
* | Fix PEP8 E302 errorsDean Troyer2014-07-221-2/+2
| | | | | | | | | | | | Also add remaining skipped checks to HACKING Change-Id: I0c4333ce29597e0a8a233af17c15bed2b4d0711f
* | Merge "Add basic timing support"Jenkins2014-07-112-2/+47
|\ \
| * | Add basic timing supportDean Troyer2014-07-082-2/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for --timing options. Use cliff via a pseudo-command 'Timing' to support multiple outputformats. If an output format other than the default 'table' is selected use CSV since the timing data is in list form. Will pick up timing data for any client object that has a method similar to novaclient's get_timings(). TODO: * Stop instantiating all of the clientmanager client objects just to check for timing data. Descriptor magic required? Change-Id: I7f1076b7a250fba6a8b24b2ae9353a7f51b792b2
* | | Merge "Add support to list volume extensions"Jenkins2014-07-091-1/+15
|\ \ \
| * | | Add support to list volume extensionsSteve Martinelli2014-07-041-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Add support to list compute extensions"Jenkins2014-07-081-9/+19
|\ \ \ \ | |/ / /
| * | | Add support to list compute extensionsSteve Martinelli2014-07-031-9/+19
| | |/ | |/| | | | | | | | | | | | | | | | | | | 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
* | | Merge "Python 3: remove a useless code to safe_encode()"Jenkins2014-07-081-3/+1
|\ \ \ | |_|/ |/| |
| * | Python 3: remove a useless code to safe_encode()Cyril Roelandt2014-07-041-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Remove keyring support from openstackclient"Jenkins2014-07-041-60/+0
|\ \ \ | |/ / |/| |
| * | Remove keyring support from openstackclientAlex Gaynor2014-07-041-60/+0
| |/ | | | | | | | | | | | | | | * The encryption it purports to offer is completely insecure. * It also appears to be broken. Closes-Bug: #1319381 Change-Id: Id15ecfbbfd15f142b14c125bfd85afd5032699ac
* | trust authenticationMatthieu Huin2014-07-031-1/+3
|/ | | | | | | | | 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
* Fix PEP8 E265 errorsDean Troyer2014-06-271-10/+0
| | | | Change-Id: Ieb9a9af1da27d3935d1a4d3cfb61b0ccb03d099a
* Fix PEP8 H405 errorsDean Troyer2014-06-272-6/+18
| | | | Change-Id: Id9ea03e7d88148f84bffe1b18b5b4315e6123012
* Network CRUDTerry Howe2014-06-241-0/+10
| | | | | | | bp/neutron https://wiki.openstack.org/wiki/OpenStackClient/Commands#Network_2 Change-Id: I89ee083154afa544b03587e84becace36d9d522a
* Fix find_resource for keystone and cinderTerry Howe2014-06-171-13/+0
| | | | | | | | | | | | | | | | | | | 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
* Merge "Clean up logging levels"Jenkins2014-06-161-1/+0
|\
| * Clean up logging levelsDean Troyer2014-06-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add support for extension listMatt Fischer2014-06-111-0/+78
|/ | | | | | | | | | | | - 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
* replace string format arguments with function parametersChristian Berendt2014-05-205-6/+6
| | | | | | | | There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
* move read_blob_file_contents to utilsSteve Martinelli2014-04-141-0/+10
| | | | | | | | 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
* Produce a useful error message for NoUniqueMatchTerry Howe2014-03-171-0/+4
| | | | | | | | | 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
* Merge "Add ability to prompt for passwords for user create and set"Jenkins2014-02-221-0/+16
|\
| * Add ability to prompt for passwords for user create and setTerry Howe2014-02-211-0/+16
| | | | | | | | | | | | | | | | | | | | * 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
* | Merge "Rename Openstack to OpenStack"Jenkins2014-02-211-4/+4
|\ \ | |/ |/|
| * Rename Openstack to OpenStacktanlin2014-02-141-4/+4
| | | | | | | | Change-Id: I9e5b245141290a4b642900fbc46b98bd4f44c321
* | Fix misspellings in python openstackclientShane Wang2014-02-071-1/+1
|/ | | | | | | | | Fix misspellings detected by: * pip install misspellings * git ls-files | grep -v locale | misspellings -f - Change-Id: Ic0d3efa26eb9a05ce16a8319c142f5bd1ce23821 Closes-Bug: #1257295
* Merge "Fix keyring issue where there were name space problems"Jenkins2014-01-231-2/+2
|\
| * Fix keyring issue where there were name space problemsTerry Howe2014-01-231-2/+2
| | | | | | | | | | | | | | The import of keyring conflicted with a string named keyring Change-Id: I7416ea1cf453a126dd03dba8bc2900cad35ed2da Closes-bug: #1271987
* | Remove copyright from empty filesAlexander Ignatov2014-01-201-14/+0
|/ | | | | | | | | According to policy change in HACKING: http://docs.openstack.org/developer/hacking/#openstack-licensing empty files should no longer contain copyright notices. Change-Id: Iba09a00f24dfbd1cd03c1c9f70ea216788e64d93 Closes-Bug: #1262424
* Merge "Displaying curl commands for nova and cinder calls"Jenkins2014-01-101-0/+14
|\
| * Displaying curl commands for nova and cinder callsFlorent Flament2014-01-021-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | When using the -v option, displays curl equivalent commands and http messages exchanged with the nova and cinder API servers. Displays the same messages as those displayed with the --debug option of python-novaclient and python-cinderclient. Implements: blueprint curl-commands-in-debugging-messages for nova and cinder related calls Change-Id: Ibc8ef79d874334585b81d652b9c7df9e874fffa9
* | Add support for specifying custom domainsPaul Belanger2014-01-071-3/+13
|/ | | | | | | | | | | | Add the ability to pass user_domain_id / user_domain_name, domain_id / domain_name, and project_domain_id / project_domain_name to keystone. These parameters are the first step needed to getting multi-domain support working via the CLI. Closes-Bug: #1198171 Change-Id: I81a8534913978ff1cce01ec02741ae477e8c5fa4 Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com> Signed-off-by: Bo Tang <btang@cs.utsa.edu>
* Merge "Bring RESTApi closer to ithe imminent keystoneclient.Session"Jenkins2013-12-061-78/+219
|\
| * Bring RESTApi closer to ithe imminent keystoneclient.SessionDean Troyer2013-12-031-78/+219
| | | | | | | | | | | | | | Prepare to use the (soon to be) common Session from keystoneclient * Rework RESTApi to eventually be a subclass of keystoneclient.Session Change-Id: I68e610f8b19a3f6267a93f7bf3de54a228be68aa
* | Merge "Add module list command"Jenkins2013-12-051-0/+60
|\ \
| * | Add module list commandDean Troyer2013-12-031-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | Lists versions of installed python modules (Origianlly proposed as 'version list') Change-Id: I76a51d3d6783f46ef2daa0a41626019a880a2a50
* | | Update OSC's CommandManager subclassDean Troyer2013-12-031-2/+16
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | cliff.commandmanager.CommandManager gained an option, update openstackclient.common.commandmanager.ComamndManager to match. Also add CommandManager.get_command_groups() to return a list of the currently loaded command groups. I expect this to be useful in upcoming client diagnostic commands for plugins/extensions. If these turn out to be generally useful we'll propose them to upstream cliff. Change-Id: Ic15a7ca0ef975ca679e753be861be7c628b8e10c
* | Expand support for command extensionsDean Troyer2013-11-211-8/+25
|/ | | | | | | | | | | | Allows client libraries to have complete access to the rest of the OSC ClientManager. In addition, extension libraries can define global options (for API version options/env vars) and define versioned API entry points similar to the in-repo commands. The changes to ClientManager exposed some issues in the existing object api tests that needed to be cleaned up. Change-Id: Ic9662edf34c5dd130a2f1a69d2454adefc1f8a95
* Fix typoNoorul Islam K M2013-11-191-1/+1
| | | | Change-Id: I7bca8b76c6746121314e688e9ed3825e04350b8d
* Adjust to non-deprecated names in Keyring 1.6.+Dirk Mueller2013-10-241-1/+1
| | | | | | | | Keyring 1.1 moved the concrete backend implementations into their own modules. As we depend on 1.6.1+, we can make use of the new name and remove the old one without deprecation-fallback. Change-Id: I0682b13fc9f488b3f3d9fd057f712909fcd48bc4
* Add options to support TLS certificate verificationDean Troyer2013-10-072-1/+12
| | | | | | | | | | Add --os-cacert and --verify|--insecure options using the same sematics as the other project CLIs. --verify is included for completeness. Bug: 1236608 Change-Id: I8a116d790db5aa4cb17a2207efedce7cb229eba3