summaryrefslogtreecommitdiff
path: root/openstackclient/compute
Commit message (Collapse)AuthorAgeFilesLines
* Command object docs: server, server imageDean Troyer2014-12-031-79/+107
| | | | | | | | | server server image Some cosmetic changes in the command source, sorting classes, help strings, etc. Change-Id: I3f68dae77b9fe02bc6866684e05aeff943dd9cc3
* Merge "Command object docs: aggregate, console *, keypair"Jenkins2014-12-013-23/+23
|\
| * Command object docs: aggregate, console *, keypairDean Troyer2014-11-193-23/+23
| | | | | | | | | | | | | | | | | | aggregate console log console url keypair Change-Id: Iec9b8404ed5febd061a5dfd674b76aaa8aba67bc
* | Liberalize version matching a bitDean Troyer2014-11-161-0/+1
|/ | | | | | | | | | | | | | | | | For class-loading purposes we can just use the major version, so accept that. Only Identity and Compute were affected; Compute is included just to be pedantically complete. For command groups we also just use the major version so fix Compute and the version option handling. Change the internal default for Identity to a simple '2' so it is also consistent with the rest of the world. Then comes microversioning... Closes-Bug: #1292638 Change-Id: Ibaf823b31caa288a83de38d2c258860b128b87d8
* Fix server create for boot-from-volumeDean Troyer2014-10-241-9/+42
| | | | | | | | | | | | | | | | * server create required --image even when booting the server from a volume. Change options to require either --image or --volume to specify the server boot disk. Using --volume currently uses device 'vda' for the block mapping and ignores any other block mappings given in --block-device-mapping. * server create and server show are both affected by bug 1378842 where an excepion was thrown when no image ID was present in the returned server object, which is the case for a server booted from a volume. * Fix the remaining assertEqual() order problems in test_server.py Closes-Bug: 1378842 Closes-Bug: 1383338 Change-Id: I5daebf4e50a765d4920088dfead95b6295af6a4d
* Merge "Close files on server create, add tests"Jenkins2014-10-241-3/+14
|\
| * Close files on server create, add testsDean Troyer2014-10-141-3/+14
| | | | | | | | | | | | | | | | | | | | The files opened for the --files and --user-data options were never closed, potentially leaking memory in a long-running client. Close them if they are file objects. Add a couple of basic tests for server create. Change-Id: I1658b0caa2d6af17308149cb52196ee28266ddf2
* | Remove now-unnecessary client creation hacksDean Troyer2014-10-181-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clients that can use ksc Session don't need the old junk to fake auth anymore: * compute * volume Clients that still need to be fed credentials can pick directly from the auth object in clientmanager. The _token attribute is removed, the token can be retrieved from the auth object: openstackclient/tests/common/test_clientmanager.py This change will break any plugin that relies on getting a token from instance._token. They should be updated to use the above, or preferable, to use keystoneclient.session.Session to create its HTTP interface object. Change-Id: I877a29de97a42f85f12a14c274fc003e6fba5135
* | Merge "Add plugin to support token-endpoint auth"Jenkins2014-10-171-17/+4
|\ \
| * | Add plugin to support token-endpoint authDean Troyer2014-10-121-17/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ksc auth plugins do not have support for the original token-endpoint (aka token flow) auth where the user supplies a token (possibly the Keystone admin_token) and an API endpoint. This is used for bootstrapping Keystone but also has other uses when a scoped user token is provided. The api.auth:TokenEndpoint class is required to provide the same interface methods so all of the special-case code branches to support token-endpoint can be removed. Some additional cleanups related to ClientManager and creating the Compute client also were done to streamline using sessions. Change-Id: I1a6059afa845a591eff92567ca346c09010a93af
* | | Merge "Fix operation on clouds with availability-zones"Jenkins2014-10-141-1/+1
|\ \ \ | |_|/ |/| |
| * | Fix operation on clouds with availability-zonesMonty Taylor2014-10-111-1/+1
| |/ | | | | | | | | | | | | | | | | In a cloud with AZs, you can get multiple entries back from the service catalog - one for each AZ and then one that is AZ agnostic that's tied to the region. If the region_name is plumbed all the way through, this works as intended. Change-Id: I3b365ea306e8111fc80830672ae8080a5d1dc8e0
* | Update compute server messages for translationSteve Martinelli2014-10-081-121/+118
|/ | | | | | | | Mark some of the messages from the server for translation implements bp use_i18n Change-Id: I503efcfb4ca3dec1c427b58ee4a85de9a241dacd
* Merge "Fix security group list for non-admin"Jenkins2014-09-061-3/+9
|\
| * Fix security group list for non-adminDean Troyer2014-08-271-3/+9
| | | | | | | | | | | | | | Non-admin users couldn't list security groups due to the project lookup failure. That shouldn't stop the listing. Change-Id: I27f6ff4975b35d1de1c852c8d4e830b83c7dec75
* | Merge "Fix server add security group"Jenkins2014-09-061-1/+1
|\ \
| * | Fix server add security groupDean Troyer2014-08-271-1/+1
| |/ | | | | | | | | | | The group resource was being passed when only the name is needed. Change-Id: Ia303804be4e336f9880205d931467cb831e812de
* | Merge "Create message variables for exceptions"Jenkins2014-08-242-9/+13
|\ \ | |/ |/|
| * Create message variables for exceptionsSteve Martinelli2014-08-242-9/+13
| | | | | | | | | | | | | | Instead of inline messages, let's create variables instead, as it's easier to find strings, and mark them for translation. Change-Id: Ibbcfdbc59d12a0cb4af50f73043d3ff7f3c76f99
* | Merge "Normalize more help strings"Jenkins2014-07-246-30/+35
|\ \
| * | Normalize more help stringsDean Troyer2014-07-246-30/+35
| | | | | | | | | | | | Change-Id: I2b21bc904e35c1cc50da369d148e607fe3e8cf90
* | | Merge "Fix server resize"Jenkins2014-07-121-7/+12
|\ \ \
| * | | Fix server resizeDean Troyer2014-07-081-7/+12
| |/ / | | | | | | | | | | | | | | | | | | | | | So apparently we've never resized a server??? Fixed command args and add some tests. Change-Id: I6c3f6fec22390e9d269b7117a42a190d2b4b80ba
* | | Merge "Add basic timing support"Jenkins2014-07-111-1/+3
|\ \ \ | |_|/ |/| |
| * | Add basic timing supportDean Troyer2014-07-081-1/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Clean up make_client() logging"Jenkins2014-07-081-1/+1
|\ \
| * | Clean up make_client() loggingDean Troyer2014-07-081-1/+1
| |/ | | | | | | Change-Id: I0b6760a6401b50e3dfb891af75424ae89df42ebc
* | Add support to list compute extensionsSteve Martinelli2014-07-031-2/+5
|/ | | | | | | | 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
* Fix PEP8 E265 errorsDean Troyer2014-06-271-1/+1
| | | | Change-Id: Ieb9a9af1da27d3935d1a4d3cfb61b0ccb03d099a
* Ignore most of the new hacking 0.9.2 rulesDean Troyer2014-06-131-1/+1
| | | | | | | | 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 "replace string format arguments with function parameters"Jenkins2014-06-1015-74/+74
|\
| * replace string format arguments with function parametersChristian Berendt2014-05-2015-74/+74
| | | | | | | | | | | | | | | | There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
* | Merge "Fix server image create"Jenkins2014-05-281-4/+4
|\ \ | |/ |/|
| * Fix server image createDean Troyer2014-05-081-4/+4
| | | | | | | | | | | | | | | | 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
* | 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 "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
* | Fix 'keypair show' command outputDean Troyer2014-03-071-1/+1
| | | | | | | | | | | | | | | | The attempt to get the data dict out of the keypair resource object uses a key 'keypair. This is incorrect, no key is required. Closes-Bug: 1289594 Change-Id: I7887119c1d800d389cb6f63ea7847bea1e25bb52
* | Merge "Fix format errors in nova security group rule list"Jenkins2014-02-281-7/+15
|\ \ | |/ |/|
| * Fix format errors in nova security group rule listTerry Howe2014-02-201-7/+15
| | | | | | | | | | | | | | | | | | | | * port range was throwing exception for None to/from ports * ip_range didn't always have cidr causing error * ip_protocol None at times and looked bad Closes-Bug #1256935 Change-Id: I451a0f038a3e9646bca3f278c5d6f6d7e3097a83
* | Fix some help stringsAndreas Jaeger2014-02-213-14/+14
|/ | | | | | | | | | This fixes some errors and inconsistencies I found reviewing the help strings: * Capitalize help strings * Add missing space between words (in multi-line strings) * Improve wording Change-Id: I2fb31ab4191c330146e31c1a9651115a6657769a
* Merge "Remove copyright from empty files"Jenkins2014-01-232-28/+0
|\
| * Remove copyright from empty filesAlexander Ignatov2014-01-202-28/+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 "Remove remaining print statements"Jenkins2014-01-231-2/+5
|\ \ | |/ |/|
| * Remove remaining print statementsDean Troyer2014-01-221-2/+5
| | | | | | | | | | | | I think these are the last two stragglers, including debugging lines Change-Id: Ic3dd98480211d0f7d3cc951bec5cd54f902a101f
* | Displaying curl commands for nova and cinder callsFlorent Flament2014-01-021-1/+6
|/ | | | | | | | | | | | 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
* Expand support for command extensionsDean Troyer2013-11-211-0/+16
| | | | | | | | | | | | 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
* Add server image create commandDean Troyer2013-11-181-0/+67
| | | | | | Translation of 'nova image-create', with tests! Change-Id: I8a833aeff6f291e4774063ed235876eb2ba9c13c