summaryrefslogtreecommitdiff
path: root/openstackclient/compute
Commit message (Collapse)AuthorAgeFilesLines
* Update the docs for new nic optionsSteve Martinelli2015-04-191-1/+1
| | | | Change-Id: I4c8b93ede80f993eab8badfbba6bf1c530844d54
* Merge "Defer client imports"Jenkins2015-04-191-8/+9
|\
| * Defer client importsDean Troyer2015-04-151-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | So we really weren't deferring the loading of client libs dadgummit, do that for real where possible. This shaves a couple of tenths off the static import times. Also defer as much import-time procesing as possible. This is a little ugly in api.auth but this also eliminates import of the auth plugins until they are needed. Change-Id: Ia11d4b9cf98231d37449103fc29101dc17afb009
* | 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
* | Add warning message if unknown version suppliedTerryHowe2015-04-131-0/+3
|/ | | | | | | Print a warning message if an unknown api version is supplied. An attempt will be made to run the command anyway. Change-Id: Idec8e88fe9621f10ec4b7eecd90708fb3730f56f
* Add the ability to set and unset flavor propertiesMarek Aufart2015-03-191-3/+75
| | | | | | | | | | Added flavor set and unset command which allow manage flavor properties called extra_specs. Command flavor show output was extended with these properties. Closes-Bug: 1434137 Change-Id: Ie469bade802de18aab9d58eda3fff46064008163
* Merge "Add ability for diplaying hypervisor statistics"Jenkins2015-03-101-0/+33
|\
| * Add ability for diplaying hypervisor statisticslin-hua-cheng2015-03-061-0/+33
| | | | | | | | | | | | | | | | Added new command 'hypervisor stats show' for displaying the hypervisor stats over all compute nodes. Change-Id: I4f98c69135b04d4f6cea67cd6350d5d99fb79dba Partial-Bug: #1423748
* | Merge "Add 'uptime' in 'hypervisor show'"Jenkins2015-03-081-0/+13
|\ \
| * | Add 'uptime' in 'hypervisor show'lin-hua-cheng2015-03-061-0/+13
| |/ | | | | | | | | | | | | | | | | | | Fetch the 'uptime' by making a call to hypervisor-uptime. Update the help for 'hypervisor show' to mention that it supports by Name or Id. Change-Id: I31060d203e87749cfc05810c2d9db42f2416051d Partial-Bug: #1423748
* | Merge "Fix help messages"Jenkins2015-03-061-2/+2
|\ \ | |/ |/|
| * Fix help messagesRamaraja2015-03-041-2/+2
| | | | | | | | | | | | | | | | Update help message for openstack security group rule delete Update help message for openstack security group rule list Change-Id: I017ffd424ca25b6c62193b91068eb1ba7de6c919 Closes-Bug: #1417854
* | Add hypervisor docslin-hua-cheng2015-03-051-7/+7
| | | | | | | | Change-Id: I444734925316e876afcbfdeffafea9973a837022
* | 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-033-11/+19
|/ | | | | | | | | | 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
* Merge "Added capabilities/options to 'openstack flavor list' command to ↵Jenkins2015-02-061-6/+52
|\ | | | | | | match capabilities already provided by 'nova flavor-list':"
| * Added capabilities/options to 'openstack flavor list'Igor_Bolotin2015-02-031-6/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | command to match capabilities already provided by 'nova flavor-list': —public | --private | --all options allows to list public only (default), private only or all flavors. —long displays more field. This option also fetches properties (extra-specs) for each flavor using separate API call for each flavor and it’s too slow to be done by default. However as an administrator - sometimes I need to be able to see them for all flavors. Removed empty “Extra Specs” column as well as "Swap" and "RXTX Factor" from default output. DocImpact Closes-Bug: #1416780 Change-Id: I30cfa2c75e28daf17b936543a177c23ae1743c37
* | 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
* Deprecate project usage list commandDean Troyer2015-01-151-6/+23
| | | | | | | | | | | | | | | | | | | | | | | Rather than pointing the 'project usage list' entry point directly to ListUsage, this makes a ListProjectUsage subclass to alias the desired command and still allow for changing behaviour or issuing a deprecation messages. This implementation simply sets a new 'deprecated' attribute in the command class that cliff will use to skip this command when generating help output. The actual skipping of the command in help output is dependant on https://review.openstack.org/147349 merging in cliff, this review will simply have no effect on help output until a version of cliff with that update is present. The deprecation message printed is somewhat generic until https://review.openstack.org/147381 is merged in cliff. Until that is merged, the deprecation message will not have the name of the actual command given by the user in it, but rather the text 'this command'. Closes-bug: #1406654 Change-Id: Ie08d4f88d71a660fca1862405351109cd0aa86b6
* Fine tune some of the helps commandsSteve Martinelli2015-01-133-6/+6
| | | | | | | | | try and add some consistency with the show and delete commands. replace 'show x' with 'display x' change 'delete a y' with just 'delete y' Change-Id: I47dfa8ee23ac5c41b355796415eb515155832f65
* Merge "Add docs for usage show/list"Jenkins2015-01-021-6/+6
|\
| * Add docs for usage show/listSteve Martinelli2014-12-311-6/+6
| | | | | | | | Change-Id: Iaf911d69a0b63d705f8789a4640018a428b87be6
* | Command docs: flavorDean Troyer2014-12-311-12/+19
| | | | | | | | Change-Id: Ie85ff7706ef08b70ab8ba99533465d90904cf393
* | Add docs for listing availability zonesSteve Martinelli2014-12-311-1/+1
|/ | | | Change-Id: I4c005e1d8089b46feca6cd3266f63c408648f074
* Merge "list availability zones for compute"Jenkins2014-12-311-0/+102
|\
| * list availability zones for computeSteve Martinelli2014-12-161-0/+102
| | | | | | | | | | | | | | Adds the command `os availability zone list` Change-Id: I77bf52a9b84a62c3771a4838c9ea0c3af03eedb2 Closes-Bug: #1400795
* | Merge "Add usage show command"Jenkins2014-12-311-0/+74
|\ \
| * | Add usage show commandSteve Martinelli2014-12-261-0/+74
| | | | | | | | | | | | | | | | | | | | | | | | Should show basic usage by project id, if not specified then use the project id the user is authN'ing with. Change-Id: I0284a5efd84075b18e1a7117cc9f8f7fecf16274 Closes-Bug: #1400796
* | | Merge "Fix a few issues with 'usage list'"Jenkins2014-12-311-3/+6
|\ \ \ | |/ /
| * | Fix a few issues with 'usage list'Steve Martinelli2014-12-261-3/+6
| |/ | | | | | | | | | | | | * Added number of servers column, was missing * Added a new line character after the initial usage message Change-Id: I6c4e5bda6ba9ceafa92ecf13987c56d0bbe99961
* | Compute calls ignore region selectionTerry Howe2014-12-241-0/+1
| | | | | | | | | | | | | | | | Calls to compute commands ignore region selection. The region is not passed to the get_endpoint call. Change-Id: I1ccfc56d7cb27a00b8982232a40ace21f2c0e9a2 Closes-Bug: 1405416
* | 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
* | Don't import form keystoneclient.openstack.commonJamie Lennox2014-12-171-1/+1
|/ | | | | | | | The keystoneclient.openstack.common directory is where we sync files from oslo incubator. It is not a public directory and should not be being consumed by openstackclient. Change-Id: I011bb95c2c824e2dbc4b822ca922ae77b8d9b955
* 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