summaryrefslogtreecommitdiff
path: root/keystoneclient/shell.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix and enable Gating on H404Dirk Mueller2013-08-151-5/+3
| | | | | | | Enable gating on the Hacking H404 check - docstring should start with a summary. Change-Id: I80612a15bd11f689e9e9f4dc2ff812138630ddbd
* flake8: fix alphabetical imports and enable H306Dolph Mathews2013-08-011-2/+2
| | | | Change-Id: I0f4fcc9796e8529e7217dc24abe95660633cad33
* Use Python 3.x compatible print syntaxDirk Mueller2013-06-231-3/+5
| | | | | | | | Adding an extra pair of braces helps here to let Python 3.x interpret it as print function, while not confusing the Python 2.x print operator. Change-Id: I05af267ecfbcc80753726743fdf82c330350afcb
* Cleanup shell's authentication check.Jamie Lennox2013-06-121-67/+55
| | | | | | | | The original logic for whether shell had enough information to authenticate a user was confusing and will be very difficult to extend to other forms of authentication. Change-Id: I88763a651e494e60070a30f0824505acb09310cb
* Suggestion of a new arguments display in the help, to reflect required onesChristophe Sauthier2013-05-251-1/+2
| | | | | | Fix bug 1182130 Change-Id: I9823d057aff11e7d90c8098ea31cdbf4d709c39f
* help text improvementsAlan Pevec2013-03-081-5/+6
| | | | | | | | | from comments in Ibbc7fab2033d8f037262b465b98d1713579adfc2 v2: synced to the README manpage will be updated in https://review.openstack.org/#/c/20976 Change-Id: I33006a4b935b9272fd99775936a17b3cfd08e294
* Allow request timeout to be specified.Joshua Harlow2013-01-181-3/+28
| | | | | | | | | Add a new cli argument (--timeout) which is by default 600 seconds which will be set in the requests library so that timeouts can occur correctly. Change-Id: I845c55dfb6f6b8345663ccdb5b150a2655f20026
* Make it possible to debug by running module.0.2.1Adam Young2012-12-201-0/+4
| | | | Change-Id: I6ac6f18c4737b19e03a9be07718f8b64d43953c2
* Use requests module for HTTP/HTTPSDean Troyer2012-12-181-19/+13
| | | | | | | | | | | | | * Implement correct certificate verification * Add requests to tools/pip-requires * Fix OS_CACERT env var help text * Add info to README * Rework tests to use requests Pinned requests module to < 1.0 as 1.0.2 is now current in pipi as of 17Dec2012. Change-Id: I120d2c12d6f20ebe2fd7182ec8988cc73f623b80
* modify ca-certificate default valueWu Wenxiang2012-12-151-1/+1
| | | | | | | | modify the value from env[OS_CA_CERT] to env[OS_CACERT] to ensure the help message and codes keep consistent. Fixes: bug 1086278 Change-Id: I0a502069cd3743f812c8145cbce73cd091e57de6
* Rename --no_cache to --os_cache.Dan Prince2012-12-071-7/+6
| | | | | | | | | | | | Some changes to make keystoneclient more backwards compatible by disabling key caching by default. This patch renames the CLI option for when to use the auth token cache to --os-cache and sets it to False by default. It also changes the ENV variable to OS_CACHE (instead of OS_NO_CACHE). Change-Id: I6e549feec6ee7500e398a1eceb5bb44cd7d40347
* bug-1040361: use keyring to store tokensGuang Yee2012-12-041-1/+37
| | | | | | | User can optionally turn off keyring by specifying the --no-cache option. It can also be disabled with environment variable OS-NO-CACHE. Change-Id: I8935260bf7fd6befa14798da9b4d02c81e65c417
* Add --version CLI opt and __version__ module attrBrian Waldon2012-11-281-0/+5
| | | | Change-Id: I8c39a797e79429dd21c5caf093b076a4b1757de0
* Merge "Check for auth URL before password (bug 1076235)"0.2.0Jenkins2012-11-161-5/+5
|\
| * Check for auth URL before password (bug 1076235)Dolph Mathews2012-11-071-5/+5
| | | | | | | | Change-Id: I9cebbf199e8cf3d9dd7de532b30da9f732a6dab1
* | Merge "check creds before token/endpoint (bug 1076233)"Jenkins2012-11-161-14/+14
|\ \ | |/
| * check creds before token/endpoint (bug 1076233)Dolph Mathews2012-11-071-14/+14
| | | | | | | | Change-Id: I09894b3fd94d18b192efca8742b09c3ceaad9895
* | Merge "Update README and CLI help"Jenkins2012-11-161-16/+29
|\ \
| * | Update README and CLI helpDolph Mathews2012-11-141-16/+29
| | | | | | | | | | | | | | | | | | | | | | | | - Provide more verbose help for config options - Suppress deprecated options from help - Updated options & docs in README file Change-Id: Ic0dc2575a15f2cff513c5013266e8f8112e167a2
* | | Merge "Warn about bypassing auth on CLI (bug 1076225)"Jenkins2012-11-161-3/+15
|\ \ \ | |/ / |/| / | |/
| * Warn about bypassing auth on CLI (bug 1076225)Dolph Mathews2012-11-071-3/+15
| | | | | | | | Change-Id: Id7c32e3870d5edc00007c26761c59b119e3b530e
* | Merge "HACKING compliance: consistent usage of 'except'"Jenkins2012-11-131-1/+1
|\ \
| * | HACKING compliance: consistent usage of 'except'Dolph Mathews2012-11-051-1/+1
| | | | | | | | | | | | Change-Id: I13988e94d7e20a9179874ec5be072bdb8db3a95e
* | | removing repeat attempt at authorization in clientJoe Heck2012-11-091-8/+5
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | blueprint solidify-python-api * extended and updated documentation strings * updated README.rst with latest options * made debug a pass-through value, optionally set on client (instead of just being pulled from environment variable) * adding AccessInfo object and associated tests (access.AccessInfo meant to be a cacheable object external to client and ultimately to replace service_catalog and it's existing functionality) * extending authtoken to support lists of endpoints * maintaining a single entity for client.management_url with first from list of possible endpoints * create project_name and project_id synonyms to match tenant_name and tenant_id * replacing authenticate call to a pure method, not overloading the resource/manager path that confuses base URL concepts. * throw AuthorizationFailure if client attempts to access keystone resources before it has a management url * special case listing tenant using auth_url for unscoped tokens authorized through client * special case listing tokens.authenticate for Dashboard to allow unscoped tokens to hand back parity information to dashboard Change-Id: I4bb3a1b6a5ce2c4b3fbcebeb59116286cac8b2e3
* | Merge "Update --os-* error messages"Jenkins2012-11-071-8/+8
|\ \ | |/ |/|
| * Update --os-* error messagesDolph Mathews2012-10-301-8/+8
| | | | | | | | Change-Id: Ic1b3d6baef1fee74cff3bdc92dfe9bccae75a29e
* | Fixes https connections to keystone when no CA certificatesSam Morrison2012-10-201-1/+1
|/ | | | | | | | are specified. Fixes bug 1064835 Change-Id: I77987f01cc1395a4857ebdcb0bb6adf697866dd7
* bootstrap a keystone user (e.g. admin) in one cmdDolph Mathews2012-10-101-0/+2
| | | | Change-Id: I67ec8cad0f1893113f8041d8bffb9a078a8b9bbe
* switching options to match authentication pathsJoe Heck2012-09-251-14/+35
| | | | | | as defined in http://wiki.openstack.org/UnifiedCLI/Authentication Change-Id: I1b5a0ce21040e536d3a9fbc39a2a08b51124880d
* removing deprecated commandline optionsJoe Heck2012-09-201-23/+0
| | | | Change-Id: Ie0cb579583012cf41ff34946a48b16f132ac2421
* Merge "splitting http req and resp logging also some pep8 cleanup in shell.py"Jenkins2012-08-231-2/+3
|\
| * splitting http req and resp loggingJoe Heck2012-08-231-2/+3
| | | | | | | | | | | | also some pep8 cleanup in shell.py Change-Id: I71aa2586a0196c0a6ba64b892b56c9d221bdcc1d
* | Change underscores in new cert options to dashesDean Troyer2012-08-221-4/+13
|/ | | | | | | | | | | | * --os_cacert -> --os-cacert * --os_cert -> --os-cert * --os_key -> --os-key * OS_CA_CERT didn't match --os-cacert, change to OS_CACERT Fixes bug 1040162 Change-Id: Ib03ff492b6ab2b76e54974e5436a444725615ea6
* Add '--insecure' commandline argument0.1.2Sascha Peilicke2012-07-201-2/+13
| | | | | | | | | | Allows to ignore validation errors that typically occur with self-signed SSL certificates. Making this explicit is important as one would typically only use this in development or in-house deployments. This should also fix bug 1012591. Change-Id: I1210fafc9257648c902176fbcfae9d47e47fc557
* If no password in env or command line, try promptingKen Thomas2012-07-101-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | Implements keystone portion of blueprint prompt-for-password For security reasons, having the password on the command line or in the environment is an issue for us. (See the blueprint for details.) This change will simply make one attempt to prompt for a password if (1) nothing was specified already and (2) there's a tty available for the user to respond on. If we don't get a password, then the existing error will be raised. Remoted getpass from pip-requires, it's in the std lib Tweaked a comment Tweaked error message Don't catch Ctl-C Fix import to match conventions Missed a tweak during the rebase. Added suggested password prompt Change-Id: I54bca2397da7bd366f7ac503e767b109efc093e7
* add keystone bash-completionDominik Heidler2012-07-061-0/+28
| | | | Change-Id: I84d3897fc056d411fdaaee301465c72e20a66ff8
* Support 2-way SSL with Keystone server if it is configured to enforceLiem Nguyen2012-07-031-2/+43
| | | | | | | 2-way SSL. See also https://review.openstack.org/#/c/7706/ for the corresponding review for the 2-way SSL addition to Keystone. Change-Id: If0cb46a43d663687396d93604a7139d85a4e7114
* Change CLI options to use dashesDean Troyer2012-06-281-11/+25
| | | | | | | | | | Change documented options to use dashes instead of underscores in option names. Continue to support old underscore names for backward compatibility for a release or two (TBD). Blueprint: command-options Change-Id: Ied0d325a9fdd32f80bf8c993887e1975aa6adf16
* Drop support for legacy OS args0.1.0Dolph Mathews2012-06-211-30/+0
| | | | Change-Id: If37778e6bb8c34d88974f2dbf22207110a3dea1a
* pep8 1.1 changes and updatesJoe Heck2012-06-011-69/+87
| | | | Change-Id: I8bc3582bb3f35a3d841bb1e8c03b62ba61ff92d7
* Drop support for OS --tenant_id (bug 960977)Dolph Mathews2012-03-291-4/+0
| | | | Change-Id: I36849c53e1c63609fc9df7fcd1c245bb3d3a6872
* Useful messages for missing auth data (bug 946297)Dolph Mathews2012-03-211-28/+40
| | | | Change-Id: I5afe543ff883358fddfb4c8b546de1d68415e0e3
* Backslash continuations (python-keystoneclient)Zhongyue Luo2012-03-171-1/+1
| | | | | | | | Fixes bug #940023 Backslash continuations removal for python-keystoneclient Change-Id: I816fc39ced20bb8ba8a42d3f07a03da94a76f8ea
* Merge "CLI shows help without args (bug 936398)"Jenkins2012-03-161-1/+1
|\
| * CLI shows help without args (bug 936398)Dolph Mathews2012-03-131-1/+1
| | | | | | | | Change-Id: If0adfc5283f725c797ee6043fbfc59a775d9b462
* | Change CLIAuth arg namesDean Troyer2012-03-141-29/+72
|/ | | | | | | | | | | | | | | | | | Change the argument names used for common Keystone authentication per the updated http://wiki.openstack.org/CLIAuth: --auth_url -> --os_auth_url --password -> --os_password --username -> --os_username --tenant_id -> os_tenant_id --tenant_name -> os_tenant_name --region -> os_region_name All old args are depricated but available for backward compatibility. Fixes bug 954532 Change-Id: I26f8e0cf491549f5836c4079ff86e4823c0ef9a7
* Fix --tenant_id corner case with ec2-create-creds commandDean Troyer2012-02-241-2/+2
| | | | | | | | | And add some tests for that case Rebased after CLI changes merged Rebased again after more bit rot discovered Change-Id: I95fa5ab19bff1d5e884b5c3675a123b134866e21
* Merge "Help output tweaks, Vol I"Jenkins2012-02-241-5/+11
|\
| * Help output tweaks, Vol IDean Troyer2012-02-221-5/+11
| | | | | | | | | | | | | | | | | | | | | | Fixes bug 936399 and bug 936424 * Refer to 'Identiy API' rather than 'Keystone API' * 'keystone help' and 'keystone --help' now produce the same output, the list of sub-commands * updates README Change-Id: I179149807a0aa66947e4ac17ad2839a653a55888
* | Improve usability of CLI.jakedahn2012-02-231-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixes bug #936422 * Fixes bug #932223 * Depends on bcwaldon's review: https://review.openstack.org/#change,4305 * This review proposes making changes outlined in this spreadsheet: https://docs.google.com/spreadsheet/ccc?key=0Ak6TA47h_6fwdGZwRE5WWEJBdEhnckpMTG5RcWFjY3c#gid=0 This cleans up the CLI, normalizing commands and arguments, correcting optional and required arguments and flags. * included https://review.openstack.org/4270 here per Brian's request Note that some commands have changed names to conform to noun-verb form: user-update-password -> user-password-update add-user-role -> user-role-add remove-user-role -> user-role-remove ec2-create-credentials -> ec2-credentials-create ec2-list-credentials -> ec2-credentials-list ec2-delete-credentials -> ec2-credentials-delete token -> token-get Change-Id: I8128fa105a1b8002199211f9e475b1a7a6229b8c