summaryrefslogtreecommitdiff
path: root/openstackclient/compute/v2/server.py
Commit message (Collapse)AuthorAgeFilesLines
* Update the docs for new nic optionsSteve Martinelli2015-04-191-1/+1
| | | | Change-Id: I4c8b93ede80f993eab8badfbba6bf1c530844d54
* Better help for --nic in create serverDavanum Srinivas2015-04-151-2/+9
| | | | | | | | Use the help string from python-novaclient for a better user experience. Closes-Bug: #1444685 Change-Id: If7b8e3f68a0c6ad82b9959f162670b5568d5d12d
* Merge "Rename --verify for server resize to avoid conflict"Jenkins2015-03-051-3/+3
|\
| * Rename --verify for server resize to avoid conflictzhiyuan_cai2015-02-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently server resize command has a verify argument for user to confirm resize operation. But this argument is also registered by openstack client shell which is used to enable server certificate verification. So verify argument can not be correctly passed to server resize command. This patch renames --verify to --confirm (nova client has a resize-confirm command) to solve this problem. Change-Id: I751aa3df16c3b637b82944dd350afc5cbab62120 Closes-Bug: #1416542
* | Handle novaclient >2.20.0Dean Troyer2015-03-031-1/+5
|/ | | | | | | | | | As of 2.21.0 novaclient moved all of the v1_1 classes to v2 with a deprecation warning. The version-non-specific interfaces provided in novaclient.client are insufficient to support a few specific commands in OSC so we need to conditionally import directly from the correct classes. Closes-Bug: #1418024 Change-Id: I864b1908737803069dc1419c9cbca391b985c932
* tenant_id to project_id in server showMarcos Fermin Lobo2015-02-041-0/+4
| | | | | | | | | | The result of 'server show VM_NAME' command shows tenant_id instead of project_id. All openstack components are moving from 'tenant' to 'project' naming when we are talking about openstack projects. Change-Id: I50053b72e79e1ff3167fa573728da1a81a8e5ed8 Closes-Bug: #1417614
* Merge "Improving the help of the lock command."Jenkins2015-02-021-1/+2
|\
| * Improving the help of the lock command.Pedro Navarro2015-02-011-1/+2
| | | | | | | | | | | | | | | | | | | | The lock command allows you to block the actions on the server for the non-admin users. Improving the help so that api users understands better what locking a server implies. Change-Id: I925c946751602dc0f6bd1d31b514bc20bca585fa Closes-Bug: #1366279
* | Add 'find by name' to --nic for creating serverzhiyuan_cai2015-01-271-1/+35
|/ | | | | | | Add 'find by name' feature to --nic option for creating server. Closes-Bug: #1353040 Change-Id: Idd0a30415d8360a57e33efedf2467593652683d4
* add multi-delete support for compute/image/net/volumewanghong2014-12-231-6/+8
| | | | | | | | | | | | | | This is part1, add support for these objects: compute.server imagev1.image imagev2.image network.network volume.volume volume.backup volume.snapshot Closes-Bug: #1400597 Change-Id: Ice21fee85203a8a55417e0ead8b509b8fd6705c1
* 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
* 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
* 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
* 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 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-241-7/+10
|\ \ | |/ |/|
| * Create message variables for exceptionsSteve Martinelli2014-08-241-7/+10
| | | | | | | | | | | | | | Instead of inline messages, let's create variables instead, as it's easier to find strings, and mark them for translation. Change-Id: Ibbcfdbc59d12a0cb4af50f73043d3ff7f3c76f99
* | 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
* Fix PEP8 E265 errorsDean Troyer2014-06-271-1/+1
| | | | Change-Id: Ieb9a9af1da27d3935d1a4d3cfb61b0ccb03d099a
* Merge "replace string format arguments with function parameters"Jenkins2014-06-101-29/+29
|\
| * replace string format arguments with function parametersChristian Berendt2014-05-201-29/+29
| | | | | | | | | | | | | | | | There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
* | 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
* Fix some help stringsAndreas Jaeger2014-02-211-12/+12
| | | | | | | | | | 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
* Add server image create commandDean Troyer2013-11-181-0/+67
| | | | | | Translation of 'nova image-create', with tests! Change-Id: I8a833aeff6f291e4774063ed235876eb2ba9c13c
* Merge "Remove tenant round 3 - other commands"0.2.alpha1Jenkins2013-07-311-4/+4
|\
| * Remove tenant round 3 - other commandsDean Troyer2013-07-311-4/+4
| | | | | | | | | | | | | | Mostly options and help strings: * image, server, project usage, volume Change-Id: I788b0660f8c2daacde53c20a72dd1afc60cf5159
* | Merge "Add security group commands"Jenkins2013-07-311-0/+73
|\ \ | |/ |/|
| * Add security group commandsDean Troyer2013-07-291-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add security group: create, delete, list, set, show * Add server: add secgroup, remove secgroup * Add security group rule: create, delete, list * Add Oslo's strutils and gettextutils * Adds parseractions.RangeAction() to handle option arguments of either a single number or a range of numbers: '--port 25' or '--port 1024:65535' Blueprint: nova-client Change-Id: Iad2de1b273ba29197709fc4c6a1036b4ae99725f
* | Merge "Begin Python 3 compatability"Jenkins2013-07-311-4/+4
|\ \
| * | Begin Python 3 compatabilityDean Troyer2013-07-291-4/+4
| |/ | | | | | | | | | | | | | | | | | | | | * use six.iteritems() * replace basestring with six.string_types * convert print statements to functions (they're all debugging and should be removed eventually anyway) * clean up OpenStack copyright: LLC -> Foundation Change-Id: Icb14212bcb408e63816bfec3922a697bc1a6c946
* | Add server ssh commandDean Troyer2013-07-291-0/+159
|/ | | | Change-Id: I9317ad6a47818d5479a046b4be8c5adbbce613ef
* Add server resize commandDean Troyer2013-07-291-64/+115
| | | | | | | | | | | | * add server resize * update --wait handling for server create, reboot, rebuild * move _wait_for_status to utils Blueprint: nova-client Rebased after https://review.openstack.org/38162 was committed Change-Id: I7a43b996feecadc7628fcfe20cd5b17333762739
* Add server migrate commandDean Troyer2013-07-291-0/+92
| | | | | | | | | Blueprint: nova-client Note: I've tested that the API calls are made correctly but do not have an environment with migration proerly enabled to watch it complete... Change-Id: Ideaf0985d43aa2be22390cf0d2850124c549632d
* Add server commands: (un)lock, (un)rescue, (un)set, add/remove volumeDean Troyer2013-07-291-26/+317
| | | | | | | | | * server lock/unlock, rescue/unrescue, set/unset * add/remove volume Blueprint: nova-client Change-Id: I3709ecdb297ab15ad44df09d89af840164271a66
* Merge "Fix --password in server rebuild"Jenkins2013-07-261-2/+2
|\
| * Fix --password in server rebuildDean Troyer2013-07-221-2/+2
| | | | | | | | | | | | | | | | Use correct attribute to get password in server rebuild command. Fixes bug 1190722 Change-Id: Ibe2ccb8840a385319781885b8aadca6e1ba4cc43
* | Add server diagnose for compute apiSteve Martinelli2013-07-231-3/+15
| | | | | | | | | | | | Add server diagnose for compute api as per blueprint: nova-client Change-Id: I0a2c13e36e1e13f61ef4ba00ec146634f9644648
* | 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
* Remove api = apiName calls from each methodSteve Martinelli2013-07-121-9/+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
* metadata is one wordDean Troyer2013-04-081-2/+2
| | | | Change-Id: I2baff95c9b6dcc95edf5d5da74814ff37883cd2b
* 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
* Upgraded to PEP8 1.3.3 to stay aligned with Nova, etc.Josh Kearney2013-01-311-109/+66
| | | | | | | | 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-241-12/+10
| | | | Change-Id: I64812bca01ca655c9cf9239a0daea84907082a29
* Clean up test environment and remove unused imports.Josh Kearney2013-01-221-1/+0
| | | | | | First round of adding more complete unit test coverage. Change-Id: Ic1979c499ca6fcb784892a95954a3527539c4e53
* Update compute client bitsDean Troyer2012-09-051-32/+546
| | | | | | | * 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