summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
* Remove underscore.Josh Kearney2013-02-251-1/+1
| | | | Change-Id: Iaf2791b96e81d6a0d4846adb3128e4dff61faf30
* Merge "Added compute agent support."Jenkins2013-02-221-0/+168
|\
| * Added compute agent support.Josh Kearney2013-02-201-0/+168
| | | | | | | | Change-Id: I818a2ea51a773f50da385cbdd71771a4ac923bd7
* | Correct the version mapping to image service.Josh Kearney2013-02-192-3/+3
|/ | | | | | This was preventing image support from being activated. Change-Id: I1b7ab9174b90c55423b244ca63402d33b4411a49
* Add Cinder API V1 SupportSteve Martinelli2013-02-086-0/+178
| | | | | | | | | | | | | made the changes suggested by dtroyer added client modified setup.py entry points updated pip required added support for create/delete/list volume types openstack list type openstack create type typeName openstack delete type typeNameOrId Change-Id: I43655de151582e37f14dc9550151a66db7a009ab
* Multiple API version supportDean Troyer2013-02-064-11/+354
| | | | | | | | | | | | | | | | * Use multiple entry point groups to represent each API+version combination supported * Add some tests Try it out: * Right now only '* user' commands have multiple overlapping versions; you can see the selection between v2.0 and v3 by looking at the command help output for 'tenant' vs 'project': os --os-identity-api-version=2.0 help set user os --os-identity-api-version=3 help set user Change-Id: I7114fd246843df0243d354a7cce697810bb7de62
* Upgraded to PEP8 1.3.3 to stay aligned with Nova, etc.Josh Kearney2013-01-3117-490/+298
| | | | | | | | Made all the necessary changes to pass new PEP8 standards. Also cleaned up docstrings to conform to the HACKING stanards. Change-Id: Ib8df3030da7a7885655689ab5da0717748c9edbe
* Copy cfg and iniparser from oslo-incubatorDean Troyer2013-01-302-0/+1861
| | | | | | | https://review.openstack.org/20753 introduced tools/install_venv_common.py but not it's dependencies openstack.common.{cfg,iniparser} Change-Id: I270a1d8f6fd8f93988a5e2ccbc446adda0a6cd81
* Use install_venv_common.py from oslo.Josh Kearney2013-01-291-3/+17
| | | | | | | This syncs install_venv_common.py from oslo and reworks the tools/install_venv.py script to use the new library. Change-Id: I3426a7f51b0018e074cc6f4b1d70b38e52464a38
* Merge "Use the cliff framework's ShowOne as intended for `show image`."Jenkins2013-01-281-18/+15
|\
| * Use the cliff framework's ShowOne as intended for `show image`.Josh Kearney2013-01-241-18/+15
| | | | | | | | | | | | | | Also reformat code to follow newer PEP8 version. Full cleanup and PEP8 version bump coming in later patch. Change-Id: Ida3dd9a89660b9c4a91449846dd2d6e223ef187a
* | Merge "Sync latest openstack-common updates."Jenkins2013-01-281-125/+84
|\ \
| * | Sync latest openstack-common updates.Josh Kearney2013-01-241-125/+84
| |/ | | | | | | Change-Id: I09adc9b5c01aa97ffba58dff8a696172e8654e3e
* | Merge "Standardize on a copyright header and ensure all files have them."Jenkins2013-01-2824-170/+254
|\ \
| * | Standardize on a copyright header and ensure all files have them.Josh Kearney2013-01-2424-170/+254
| |/ | | | | | | Change-Id: I64812bca01ca655c9cf9239a0daea84907082a29
* | v3 identity - group and project apiSteve Martinelli2013-01-284-0/+455
|/ | | | | | | | | | | updated with latest comments modified entry points in setup.py added group.py (v3) added project.py (v3) fixed indentation updated to include new headers Change-Id: Ice68b6c5bacb68d2e95321d903043056a9b8e810
* Remove incorrect 'raise'.Josh Kearney2013-01-221-2/+0
| | | | | | Fixes bug 1096102. Change-Id: Ibcdccd949566f47bb516c7562149d6b0100fce18
* Clean up test environment and remove unused imports.Josh Kearney2013-01-227-11/+0
| | | | | | First round of adding more complete unit test coverage. Change-Id: Ic1979c499ca6fcb784892a95954a3527539c4e53
* Adds Glance API v2 support.Josh Kearney2013-01-165-2/+154
| | | | Change-Id: Ib0325e62a7e50aa94e852a73f9a2cb95daa8d5f6
* Fixes setup compatibility issue on WindowsAlessandro Pilotti2012-11-051-39/+63
| | | | | | | | | | | Fixes Bug #1052161 "python setup.py build" fails on Windows due to a hardcoded shell path: /bin/sh setup.py updated using openstack-common/update.py Change-Id: I33d38e0f96b6d124248c4a31959952d61cf1eb16
* Update compute client bitsDean Troyer2012-09-052-36/+559
| | | | | | | * add server create, delete, pause, reboot, rebuild resume, suspend, unpause commands Change-Id: I728ec199e4562bd621c3a73106c90d8b790b459a
* Keyring support for openstackclient.Bhuvan Arumugam2012-08-152-0/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 1030440 If password is defined in keyring, use it; otherwise, prompt for the password. Keying is configured using command line switch, --os-use-keyring or env(OS_USE_KEYRING). * openstackclient/common/openstackkeyring.py The abstract class for keyring, specifically for openstack. The class is used to store encrypted password in keyring, without prompting for keyring password. The encrypted password is stored in ~/.openstack-keyring.cfg file. * openstack-common.py Update openstackkeyring library from openstack.common. * openstackclient/shell.py OpenStackClient.build_option_parser(): New boolean argument, --os-use-keyring, default to env(OS_USE_KEYRING). OpenStackClient.authenticate_user(): Get password from keyring, if it is defined; otherwise, prompt for the password. If user enter a password and keyring is enabled, store it in keyring. OpenStackClient.init_keyring_backend(): New method to define openstack backend for keyring. OpenStackClient.get_password_from_keyring(): New method to get password from keyring. OpenStackClient.set_password_in_keyring(): New method go set password in keyring. * toos/pip-requires Define keyring and pycrypto as one of dependent. Change-Id: I36d3a63054658c0ef0553d68b38fefbc236930ef
* Merge "If no password in env or command line, try prompting."Jenkins2012-07-051-3/+15
|\
| * If no password in env or command line, try prompting.Ken Thomas2012-06-291-3/+15
| | | | | | | | | | | | | | | | | | | | | | Implements blueprint password-prompt This logic was recently added to keystone as a short term fix. The long term fix is to have that same logic here. Basically, if no password is present in the env or command line and there's a tty available for us to prompt, then attempt to use getpass. Change-Id: Ia0eec800b96c8f6ca1c2540e21e0e03c3880c713
* | Add read_versioninfo method.Monty Taylor2012-06-261-4/+17
|/ | | | Change-Id: Iba12b260a30cc1311967a833e26eaeb9bf3afb47
* Add post-tag versioning.Monty Taylor2012-06-251-22/+206
| | | | Change-Id: I98e5f7aa788b1ab1a866b21e0a17a63b8d5efae3
* Refactor cliff.Command.run()Dean Troyer2012-06-206-87/+87
| | | | | | | * All commands now perform their action in take_action(). Those producing output are derived from DisplayCommandBase. Change-Id: Ic93ba9a2ad449d84242b6aa8624b41379c4fb79a
* Fix pep8 issues.Clark Boylan2012-06-132-4/+4
| | | | | | | | Fix several pep8 issues and pin the pep8 test to pep8 version 1.1. This should prevent future changes from being unmergable by the pep8 gate after a pep8 upgrade. Change-Id: I4678a9179579fb5c7afe795fb43a8a89a99ad717
* minor fixesMatt Joyce2012-05-291-1/+1
| | | | Change-Id: Ib5601e1a932e0bfaa0341909416415d1e81ee915
* removing print call in roles get_dataMatt Joyce2012-05-231-1/+0
| | | | Change-Id: I2aebf6099821212d4bd4b4b6d78b9752085168b2
* Merge "Fix 'set user' command"Jenkins2012-05-221-1/+6
|\
| * Fix 'set user' commandDean Troyer2012-05-181-1/+6
| | | | | | | | | | | | | | | | | | * missing --name arguemnt in parser for SetUser() * correct Identity api call for SetUser() Fix bug 1001384 Change-Id: I51169a0585c1bfe106ddd2e390269f69fc32852c
* | Add role CRUD commandsDean Troyer2012-05-181-0/+268
|/ | | | | | * add {add|create|delete|list|remove|show|user-list} role commands Change-Id: I27129168a9f58154fcdb062a533fa926737f822f
* Add endpoint CRUD commandsDean Troyer2012-05-182-1/+227
| | | | | | * add {create|delete|list|show} endpoint commands Change-Id: Ife9fa789d5818d63288b09687b43d802b1b97858
* Clean up tenant and serverDean Troyer2012-05-162-35/+26
| | | | | | | | * remove '_' from class names * add class name to log instances * some cleanups to HACKING Change-Id: I1f6334318ee0d7d83cd3cea0e71ba4f05dd2b5c5
* Merge "Add user CRUD commands"Jenkins2012-05-161-0/+247
|\
| * Add user CRUD commandsDean Troyer2012-05-151-0/+247
| | | | | | | | | | | | | | * add {create|delete|list|set|show} user commands * fix pep8 issues Change-Id: I46fe2375b8b4f95b82d8ba31ee8fb660a067d50a
* | Update service commandsDean Troyer2012-05-152-28/+89
|/ | | | | | | * add {create|delete} service * allow 'service' arg to also search type attribute in show command Change-Id: I992359dc95fab1fbdab0666d5cbb75e44ba6e0f3
* Merge "fix authentication setup in interactive mode and improve error ↵Jenkins2012-05-151-4/+9
|\ | | | | | | handling so tracebacks are not printed twice"
| * fix authentication setup in interactive mode and improve error handling so ↵Doug Hellmann2012-05-141-4/+9
| | | | | | | | | | | | tracebacks are not printed twice Change-Id: I59fb07369edad3b2f2abddba3c0d0f6bbce1eab1
* | Revise command boolean flagsDean Troyer2012-05-113-32/+57
|/ | | | | | | * use --enable|--disable form for boolean 'enabled' value * clean up logging strings Change-Id: Ib4016bbef1763c27ec5a9edf36b926dc0d0b265c
* Move get_client_class() to common.utilsDean Troyer2012-05-114-24/+34
| | | | | | * add constants for API_NAME Change-Id: I8ccf72f032227e0a452d96303181549b1b11a5d1
* Add tenant CRUD commandsDean Troyer2012-05-114-104/+181
| | | | | | | | | * add {create|delete|set} tenant commands * move get_XXXX_properties() to common.utils.get_item_properties() add mixed_case_fields as an optional arg Change-Id: I7b3bd9cefb08e39730886b31213cbe422b5a8453
* Add API versioning supportDean Troyer2012-05-106-13/+40
| | | | | | | | | * Specific versions supported are managed in XXXXXX.client.py with a mapping from version to client class. This is based on the scheme that is included in novaclient; none of the other client libs have that capability. Change-Id: I930b197f1189e7f52c3b0096e73e0773cf925542
* Merge "Add tenant commands, work on service"Jenkins2012-05-102-2/+183
|\
| * Add tenant commands, work on serviceDean Troyer2012-05-102-2/+183
| | | | | | | | | | | | | | * adds {list|show} tenant * fleshes out service commands (still WIP) Change-Id: I9dabb6ed3f128a30f140146928320f033d097a06
* | look at the command the user is going to run before trying to authenticate themDoug Hellmann2012-05-102-20/+29
| | | | | | | | Change-Id: I4edc6a0f1e16be4cd80fe01f62869094b50ef120
* | Add copyright notices and update datesDean Troyer2012-05-105-2/+53
|/ | | | Change-Id: I54a7d99328143205ab97ea930aeeeb69fe92c76c
* More identity client configDean Troyer2012-05-104-47/+68
| | | | | | | | | | | | | | * move auth option checking back to OpenStackShell() to keep the shell-level interaction at that level; add checking for token flow options * make identity.client.make_client() configure keystoneclient.v2_0.Client() properly for both password flow and token flow auth * eliminated ClientManager.init_token(), set _service_catalog in __init__() * compute client handles token flow Change-Id: I42481b5424489387798c4ec6d3e2a723ab1e6067
* Remove printtDean Troyer2012-05-071-54/+0
| | | | | | | | Remove unused common.utils functions prettyprint 0.6 removed printt at the last minute, our references to it turned out to be in unused code; remove it. Change-Id: I38a4d9a169beaecfd53eafc5b10f06201bac0c31