summaryrefslogtreecommitdiff
path: root/openstackclient/compute
Commit message (Collapse)AuthorAgeFilesLines
...
| * Clean up properties (metadata) formattingDean Troyer2013-07-211-19/+57
| | | | | | | | | | | | | | | | | | | | * Reformat default dict output to key='value' using utils.format_dict() * Changes utils.get_item_properties() to pass the specific field to the formatter function rather than the entire resource object, this allows the formatter to handle multiple attributes. * Updates server, volume, volume type commands Change-Id: I90eebf6b84ae200532f09cd925f371598ea54a64
* | Merge "Add aggregate commands"Jenkins2013-07-191-0/+322
|\ \ | |/ |/|
| * Add aggregate commandsDean Troyer2013-07-191-0/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add aggregate: add host, create, delete, list, remove host, set, show * Add list --long option * Filter 'availability_zone' from the metadata fields * Rename 'metadata' column to 'properties' in all output Bug: 1172032 Blueprint: nova-client Change-Id: Icd408c2b34af07f5102f53d3778d8546952a12c5
* | Remove api = apiName calls from each methodSteve Martinelli2013-07-1211-37/+0
|/ | | | | | | | | | | As discussed in https://review.openstack.org/#/c/36352/ for each command, we were setting api = identity or volume... etc, this was for an old way of calling commands that are is no longer used. Also removed openstackclient/common/command.py Change-Id: I2705f35d343f2ae729dc22d6aed0b852b2f8ca19
* Remove python3 incompatible exception syntax.Monty Taylor2013-06-301-2/+2
| | | | Change-Id: I5f0687a83362ceebf03bae4a0a5b109aad7e5200
* Fix flake8 errors in anticipation of flake8 patch.Monty Taylor2013-05-141-1/+1
| | | | Change-Id: Ifdc4322b699f2bd91a6900e55695acd3d736568e
* Rename all instances of 'metadata' to 'property'.Josh Kearney2013-05-071-3/+3
| | | | Change-Id: I454cbe685dc5afa0a09ecc976a90d6eb6bc57d14
* Add console commandsDean Troyer2013-04-251-0/+123
| | | | | | | | | | Adds: * console-log * console-url Part of blueprint nova-client Change-Id: Ibea7f96382283770988d05379d41a148f8cd8c4f
* Merge "Add compute keypair commands"Jenkins2013-04-251-0/+160
|\
| * Add compute keypair commandsDean Troyer2013-04-121-0/+160
| | | | | | | | | | | | | | | | Add create, delete, list, show keypair commands Part of blueprint nova-client Change-Id: Ieba00d3b3e3a326f875c01ac2a2b9bbd036cd7c9
* | Merge "Add fixed-ip and floating-ip commands"Jenkins2013-04-253-0/+290
|\ \
| * | Add fixed-ip and floating-ip commandsDean Troyer2013-04-143-0/+290
| |/ | | | | | | | | | | | | | | | | | | | | | | Adds: * fixed-ip commands: add, remove * floating-ip commands: add, create, delete, list, remove * floating-ip-poo command: list Also uses NAME_ATTR in the Resource class if present to determine the attribute to be used for searching in utils.find_resource() Change-Id: Ifd8fa60f880fc4050dea182ac24553cc2c4bff15
* | metadata is one wordDean Troyer2013-04-081-2/+2
|/ | | | Change-Id: I2baff95c9b6dcc95edf5d5da74814ff37883cd2b
* Removed unused imports.Josh Kearney2013-03-154-4/+0
| | | | Change-Id: Ib1bae16f996559c008fb1fe0b74f26b152854ea8
* Added compute hypervisor support.Josh Kearney2013-03-111-0/+84
| | | | Change-Id: Ib8109550b06d152773394a1d15f6202b9f9b029c
* Merge "Add compute hosts support."Jenkins2013-03-081-0/+83
|\
| * Add compute hosts support.Josh Kearney2013-03-061-0/+83
| | | | | | | | Change-Id: I51c443512a82729564b76e6f835195ff193232d2
* | Merge "Clean up args and help strings in server commands"Jenkins2013-03-081-9/+9
|\ \
| * | Clean up args and help strings in server commandsDean Troyer2013-03-061-9/+9
| |/ | | | | | | | | | | | | Help string corrections and align args with wiki at https://wiki.openstack.org/wiki/UnifiedCLI/Mapping#server Change-Id: Ifd6f587d383534142003277e64532f77ecb37106
* | Merge "Change create flavor to use default arguments"Jenkins2013-03-081-22/+26
|\ \ | |/ |/|
| * Change create flavor to use default argumentsDean Troyer2013-03-061-22/+26
| | | | | | | | | | | | | | | | | | Most of the arguments required by the create flavor API can have reasonable defaults and therefore can be made optional in the CLI. This brings create flavor in line with the documented args in the wiki at https://wiki.openstack.org/wiki/UnifiedCLI/Mapping#flavor Change-Id: Iecb3baf72f9dc3981742ff7989780894e37921c9
* | Added compute service support.Josh Kearney2013-03-051-0/+111
|/ | | | Change-Id: I548e35396534b5498f31a45c752984f6d33357c3
* Merge "Added compute flavor support."Jenkins2013-03-011-0/+186
|\
| * Added compute flavor support.Josh Kearney2013-02-281-0/+186
| | | | | | | | Change-Id: Idb1eb2f838074ce5fb3d4aa7b72fd747ac6915c7
* | Remove underscore.Josh Kearney2013-02-251-1/+1
|/ | | | Change-Id: Iaf2791b96e81d6a0d4846adb3128e4dff61faf30
* Added compute agent support.Josh Kearney2013-02-201-0/+168
| | | | Change-Id: I818a2ea51a773f50da385cbdd71771a4ac923bd7
* Upgraded to PEP8 1.3.3 to stay aligned with Nova, etc.Josh Kearney2013-01-312-115/+69
| | | | | | | | Made all the necessary changes to pass new PEP8 standards. Also cleaned up docstrings to conform to the HACKING stanards. Change-Id: Ib8df3030da7a7885655689ab5da0717748c9edbe
* Standardize on a copyright header and ensure all files have them.Josh Kearney2013-01-244-24/+48
| | | | Change-Id: I64812bca01ca655c9cf9239a0daea84907082a29
* Clean up test environment and remove unused imports.Josh Kearney2013-01-222-2/+0
| | | | | | First round of adding more complete unit test coverage. Change-Id: Ic1979c499ca6fcb784892a95954a3527539c4e53
* Update compute client bitsDean Troyer2012-09-052-36/+559
| | | | | | | * add server create, delete, pause, reboot, rebuild resume, suspend, unpause commands Change-Id: I728ec199e4562bd621c3a73106c90d8b790b459a
* Refactor cliff.Command.run()Dean Troyer2012-06-201-7/+7
| | | | | | | * All commands now perform their action in take_action(). Those producing output are derived from DisplayCommandBase. Change-Id: Ic93ba9a2ad449d84242b6aa8624b41379c4fb79a
* Clean up tenant and serverDean Troyer2012-05-161-12/+9
| | | | | | | | * remove '_' from class names * add class name to log instances * some cleanups to HACKING Change-Id: I1f6334318ee0d7d83cd3cea0e71ba4f05dd2b5c5
* Revise command boolean flagsDean Troyer2012-05-111-2/+2
| | | | | | | * use --enable|--disable form for boolean 'enabled' value * clean up logging strings Change-Id: Ib4016bbef1763c27ec5a9edf36b926dc0d0b265c
* Move get_client_class() to common.utilsDean Troyer2012-05-111-3/+5
| | | | | | * add constants for API_NAME Change-Id: I8ccf72f032227e0a452d96303181549b1b11a5d1
* Add tenant CRUD commandsDean Troyer2012-05-111-25/+1
| | | | | | | | | * 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-101-1/+1
| | | | | | | | | * 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
* Add copyright notices and update datesDean Troyer2012-05-101-0/+17
| | | | Change-Id: I54a7d99328143205ab97ea930aeeeb69fe92c76c
* More identity client configDean Troyer2012-05-101-3/+8
| | | | | | | | | | | | | | * 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
* Add Identity to ClientManagerDean Troyer2012-05-041-3/+6
| | | | | | | | * Make the Identity client in identity.client.make_client() * Auth via ClientManager.identity * Skip extra auth roundtrip in compute client Change-Id: I0190639e38f83997c233195f6cc27ff3afdfba10
* Fix "help" command and implement "list server" and "show server"Doug Hellmann2012-05-042-46/+175
| | | | | | | | | | | blueprint client-manager blueprint nova-client bug 992841 Move the authentication logic into a new ClientManager class so that only commands that need to authenticate will trigger that code. Implement "list server" and "show server" commands as examples of using the ClientManager, Lister, and ShowOne classes. Change-Id: I9845b70b33bae4b193dbe41871bf0ca8e286a727
* Add openstack-common and test infrastructure.James E. Blair2012-04-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix pep8 errors (project is pep8 clean now). Update setup.py to use openstack-common style dependencies. Remove the unused novaclient dependency. Change the keystoneclient dependency to a git URL. Add test-requires, and move some pip-requires dependencies into it. Remove the test_utils unit test which wasn't testing anything that is actually present in the project. Add the test_authors unit test. Use tox for running tests locally. See: http://wiki.openstack.org/ProjectTestingInterface Tox can manage virtualenvs, and is currently doing so for running tests in Jenkins. It's just as, or more, useful for running tests locally, so this starts the migration from the run_tests system to tox. The goal is to reduce duplicate testing infrastructure, and get what's running locally on developer workstations as close to what is run by Jenkins as possible. Run_tests.sh will now call tox to facilitate the transition for developers used to typing "run_tests.sh". Developers will need tox installed on their workstations. It can be installed from PyPI with "pip install tox". run_tests.sh outputs those instructions if tox is not present. New facilities are available using tox directly, including: tox -e py26 # run tests under python 2.6 tox -e py27 # run tests under python 2.7 tox -e pep8 # run pep8 tests tox # run all of the above tox -e venv foo # run the command "foo" inside a virtualenv The OpenStack nose plugin is used when running tox from the command line, so the enhanced, colorized output is visible to developers running the test suite locally. However, when Jenkins runs tox, xunit output will be used instead, which is natively understood by jenkins and much more readable in that context. Change-Id: Ib627be3b37b5a09d3795006d412ddcc35f8c6c1e
* Begin to add Keystone authDean Troyer2012-04-271-4/+5
|
* Clean up command outputDean Troyer2012-04-261-6/+2
|
* Use cliffDean Troyer2012-04-251-6/+42
|
* Set up common utilsDean Troyer2012-04-251-1/+7
|
* Add openstackclient bitsDean Troyer2012-04-193-0/+55