summaryrefslogtreecommitdiff
path: root/openstackclient/compute/v2
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Use a common decorator to log 'take_action' activation"Jenkins2015-09-118-37/+37
|\
| * Use a common decorator to log 'take_action' activationJoshua Harlow2015-09-018-37/+37
| | | | | | | | | | | | | | | | | | Instead of duplicating the same log statement throughout the code, the same logic can be provided by a shared decorator that abstracts away the logging capability and unifies it behind a common function instead. Change-Id: Icc63bced7347c8bbf0299a4c5821425a10892a79
* | Merge "Add filtering by user for 'openstack server list'"Jenkins2015-09-101-1/+16
|\ \
| * | Add filtering by user for 'openstack server list'kafka2015-09-081-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new option to search by user when listing servers, include support for domain scoped users, also update docs Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Closes-Bug: #1483974 Change-Id: Ifdade6dc9ca8400fbd85f6b55793ab15ed17b97d
* | | Merge "Add support for listing servers of other projects"Jenkins2015-09-101-0/+18
|\ \ \ | |/ /
| * | Add support for listing servers of other projectsAshish Singh2015-09-081-0/+18
| |/ | | | | | | | | | | | | | | | | | | Added project and project-domain option to server list command for listing servers based on project name or id Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Change-Id: Iaadfffe734ad8a72fa4b1eeb2222748c66f7fae0 Closes-Bug: #1488486
* | Properly handle port arguments for ICMPDean Troyer2015-09-031-4/+7
| | | | | | | | | | | | | | | | | | | | The Compute API requires 'from_port' and 'to_port' to be -1 for ICMP security group rules. It happily accepts them empty or None but the resulting rules do not work. So we force the values for ICMP rules. Closes-bug: #1477629 Change-Id: Iba57211014caca16be7c9a28d15d4db2a6c51b8d
* | Ignore flavor and image find errors on server showTerryHowe2015-08-281-4/+10
|/ | | | | | | | | | If there is an error finding an image or a flavor during image show, ignore it and just print the id of the flavor or image. This code is also used during server create and server rebuild, but only to display the results. Change-Id: I5362158ab8ffc3e5a0800904d6ea15420c3a8627 Closes-bug: #1489901
* Making --property as required when openstack flavor unsetjiaxi2015-07-181-0/+1
| | | | | | | | When using openstack flavor unset, the --property is needed, so the --property should be a required parameter. Close-Bug: #1474237 Change-Id: Id6913e1b263eddeb5dd44c3edb957206b68f816c
* Merge "Show which aggregate a hypervisor is member of"Jenkins2015-07-131-0/+23
|\
| * Show which aggregate a hypervisor is member ofDavid Moreau Simard2015-07-021-0/+23
| | | | | | | | | | | | | | | | | | This adds support for showing which host aggregates a hypervisor is member of, if any. It supports hypervisors with or without nova cells. Closes-bug: #1470875 Change-Id: I0cfe4f15fa8f8ba0be3295b79cd438998893114c
* | Fix address parsing for server ssh commandTerryHowe2015-07-081-15/+37
|/ | | | | | | | | There seem to be three formats for the server address field and the old code only supported the old format. This code adds a parser for all three formats. Change-Id: I7f12d2c69ff70556907ea6f31a0e0bba91b68b49 Closes-Bug: #1469843
* Merge "Fix security group list command"Jenkins2015-06-031-1/+1
|\
| * Fix security group list commandTerryHowe2015-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Security group list command tries to get a project list and this may fail with a multitude of exceptions including but not limited to 401, 404, ConnectionRefused and EndpointNotFound. Rather than try to capture every possibility, this patch just catches the base class. Converting project ids to names is less important than having a working security group list command. Change-Id: I68214d2680bad907f9d04ad3ca2f62cf3feee028 Closes-Bug: #1459629
* | Add --wait to server deleteMatt Riedemann2015-05-291-0/+17
|/ | | | | | | | | | | | | | This allows the server delete command to wait for the server to be deleted (obviously). The wait method is the same model that Tempest uses, i.e. wait for a 404 on server GET (successful deletion), fail if the server went to ERROR status, or fail if a timeout is reached. The default timeout of 300 seconds is also what Tempest uses. Closes-Bug: #1460112 Change-Id: I0e66c400903e82832944d1cad61e7eb30177c3e8
* Fix client error while rescuing an instanceAmey Bhide2015-05-221-3/+3
| | | | | | | | Typo server._info -> server Closes-Bug: #1457983 Change-Id: I606505d73b3aae90bac636e960275926284b4ea6
* Security group rule delete brokenTerryHowe2015-05-071-35/+4
| | | | | | | | | | Nova client was changed to take a rule id for security group rule delete. https://github.com/openstack/python-novaclient/blob/master/novaclient/v2/security_group_rules.py#L72 Change-Id: I0a69f3f196a36f267ee85a651b09aa8d3c328121 Closes-Bug: #1450872
* Merge "Fix security group create description bug"Jenkins2015-04-231-1/+3
|\
| * Fix security group create description bugDean Troyer2015-04-221-1/+3
| | | | | | | | | | | | | | | | --description is optional in our CLI but the server requires it to be non-empty. Set a default value of the given name. Closes-Bug: #1434172 Change-Id: I81507a77ad8d815000ff411784ae71e229c77f78
* | Merge "Security group rule create fails"Jenkins2015-04-231-0/+1
|\ \ | |/ |/|
| * Security group rule create failsRamaraja Ramachandran2015-04-221-0/+1
| | | | | | | | | | | | | | | | | | By default the --dst-port value is set to None when no --dst-port argument is provided. By making the default value (0, 0), this allows novaclient to proceed without any error. Change-Id: Ibb58f5df5ed1890a8f499dd2467b12b0e79d547b Closes-Bug: #1443963
* | 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
* 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-032-2/+11
|/ | | | | | | | | | 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