summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | Merge "Make 'object save' fast again"Jenkins2017-01-091-1/+1
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Make 'object save' fast againJordan Pittier2017-01-091-1/+1
| | |_|_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'openstack object save' is critically slow to download big objects. While we 'stream' (chunked download) the data, the default chunks_size is 1 byte [1], which is terribly inefficient. [1] : http://docs.python-requests.org/en/master/api/#requests.Response.iter_content Closes-Bug: 1654645 Change-Id: I2223e5897346acd2f2c1fae638d1193cff833c19
* | | | | | | | | | Fix Octavia gate breakage caused by _get_columns()Nir Magnezi2017-01-094-7/+7
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The above mentioned function tries to extract keys() from an item which is type class. This patch fixes the issue by converting item to dict by using to_dict(). Change-Id: Ida520ae9fe64171d105f486ba06eda127a24547b Closes-Bug: #1654887
* | | | | | | | | Merge "Functional tests - flavor"Jenkins2017-01-081-27/+200
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Functional tests - flavorDean Troyer2017-01-061-27/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rework functional tests to remove resource create/delete from setupClass() and teardownClass() methods. * Add tests for more command options * Use JSON output Change-Id: Ib99ef954fe8e1170c7445940180d80b8b9c0a92c
* | | | | | | | | | Merge "Remove unneeded methods from OS_Config class"Jenkins2017-01-081-90/+6
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Remove unneeded methods from OS_Config classDean Troyer2017-01-041-90/+6
| | |_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are in the minimum required version of osc-lib (1.2.0). A few methods remain that need to be released in osc-lib, expect them in the 1.3.0 release soon. Change-Id: I2333946da9a73e73377b646e4c06e99597990945
* | | | | | | | | | Merge "OSC Network Meter"Jenkins2017-01-084-0/+641
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | OSC Network MeterAnkur Gupta2017-01-014-0/+641
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Neutron feature of Metering into OpenStack Client. Meter Rules will be implemented in seperate patchset. Partially Implements: blueprint neutron-client-metering Change-Id: Ie82d42759504cbdb1c991c5183c1f0adf59e60fe
* | | | | | | | | | | Merge "Add options to allow filtering on agent list"Jenkins2017-01-082-1/+75
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Add options to allow filtering on agent listZhou Zhihong2017-01-052-1/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add options to allow filtering via --agent-type and --host on agent list Change-Id: I1800f0777aa92a76b4b95f64f8acc18454809e81 Closes-Bug: #1641868 Partially-Implements: blueprint network-commands-options
* | | | | | | | | | | | Merge "Fix network service provider functional test"Jenkins2017-01-071-4/+1
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Fix network service provider functional testHuanxuan Ao2017-01-061-4/+1
| | |_|_|_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDK refactor broken network service provider functional test, tested this command works, but there is a error in the funtional test, so fix it. Change-Id: I783c58cedd39a05b665e47709b2b5321871e558b Closes-Bug: 1653138
* | | | | | | | | | | | add domain id to expected IdP fields, unskip testsSteve Martinelli2017-01-072-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit Id18b8b2fe853b97631bc990df8188ed64a6e1275 added domain IDs to an Identity provider, our functional tests have a hard match on what to expect when 'showing' an idp, the domain ID was missing. Change-Id: I87a1fd762918551c533668a9aa94f7c6268b79d6
* | | | | | | | | | | | skip tests related to SDK 0912 and keystone IdP changeSteve Martinelli2017-01-078-1/+38
| |_|_|_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the gate is super wedged, i will skip tests and unskip them as necessary. Change-Id: Ia4469738c876ec1293f91b96dcc7d15365f4f37d
* | | | | | | | | | | Merge "Fix "ip availability show" command"Jenkins2017-01-063-5/+11
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ / / |/| | | | | | | | | |
| * | | | | | | | | | Fix "ip availability show" commandHuanxuan Ao2017-01-063-5/+11
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDK refactor broken ip availability show functional test, We can not find a ip availability by network name but only network ID, so we find network and get the ID first, then find the ip availability by the network ID. Closes-Bug: 1653139 Change-Id: I246163fb875e2cdb9e5b091bac500a94268e8aa9
* | | | | | | | | | Fix creating a private flavor with ID autoJens Rosenboom2017-01-052-4/+3
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a private flavor is created with ID auto (=default) and a project is specified for it, instead of trying to add the project to the flavor called "auto" the ID of the newly created project should be used. Change-Id: I19f7a0ec26bd5d147f00ecba3312240e3601567e Closes-Bug: 1654221
* | | | | | | | | Merge "Update the description format"Jenkins2017-01-053-8/+12
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Update the description formatzhiyong.dai2017-01-033-8/+12
| | |_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In network_qos_rule_type.py, network_service_provider.py, server.py and volume_snapshot.py, the description format is using """ """. In this patch, the former format is replaced with "_description = _( )". Change-Id: I6863b01d3534e033df745070037ee45286745c92
* | | | | | | | | Fixes image api URL endpoint for certain scenarioImtiaz Chowdhury2017-01-044-8/+8
| |_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | openstackclient fails to get image list when the image api endpoint has 'v2' substring in the URL. Instead of checking whether the api endpoint URL terminates with '/v2', the current logic is checking whether 'v2' appears anywhere in the endpoint string. This issue was discovered on a production setup where certain server names had 'v2' in their names. For example, when a hostname is gopher.dev20.com, the image list APIs fail. This commit updates the unit test to reflect this scenario. Without the change in openstackclient/api/image_v2.py, all the unit tests fail. Co-Authored-By: sergio.carvalho@workday.com Change-Id: I26b85afd646938272dbabe8e045b337b7df58c7d Closes-Bug: 1652827
* | | | | | | | Merge "Beef up address scope functional tests"Jenkins2017-01-041-21/+127
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | Beef up address scope functional testsDean Troyer2016-12-301-21/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to get more thorough in our functional testing, so start by adding tests for all create and set options, check return values. This also removes most of the setupClass() and teardownClass() methods as they held common state that was subject to race conditions when running tests in parallel. Change-Id: Ib337f9e9d16b4183bb319b58cbe943045f365ff2
* | | | | | | | Merge "Beef up network functional tests"Jenkins2017-01-041-24/+235
|\ \ \ \ \ \ \ \
| * | | | | | | | Beef up network functional testsDean Troyer2016-12-301-24/+235
| | |_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to get more thorough in our functional testing, so start by adding tests for all create and set options, check return values. This also removes most of the setupClass() and teardownClass() methods as they held common state that was subject to race conditions when running tests in parallel. Change-Id: I4179f493cea971b7c576ffbf501330b5c57f52f3
* | | | | | | | Merge "Beef up floating IP functional tests"Jenkins2017-01-041-22/+121
|\ \ \ \ \ \ \ \ | |_|_|_|/ / / / |/| | | | | | |
| * | | | | | | Beef up floating IP functional testsDean Troyer2016-12-301-22/+121
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to get more thorough in our functional testing, so start by adding tests for create options. This also removes the parts of the setupClass() and teardownClass() methods that do not pertain to the static prereqs for testing. Change-Id: I0a090a8abc41613d8970343d1b67d101b4c82c65
* | | | | | | update server migrate '--wait' descriptionlicanwei2016-12-301-1/+1
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'Wait for resize to complete' ==> 'Wait for migrate to complete' Change-Id: I0e08968c0132f0a8e1ef1ce2e6179001315372c3
* | | | | | Merge "Revert "WIP: Skip broken functional tests...""Jenkins2016-12-306-20/+0
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Revert "WIP: Skip broken functional tests..."Dean Troyer2016-12-296-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDK 0.9.11 caused some failures, its blocked now. Revert those breakages that occurred in 0.9.10 -> 0.9.11. This partially reverts commit 188e32f9e642fc5eaaec83d5c231aa890354671a. Change-Id: I8b350250dbdcbf5c4599dfb55f6685c0db18bb30
* | | | | | Merge "Fix a spelling error"Jenkins2016-12-281-1/+1
|\ \ \ \ \ \
| * | | | | | Fix a spelling errorJingLiu2016-12-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic14c769d99986d5c51d26fc276f4d47d6fba3265
* | | | | | | Merge "Add unit tests for usage commands in compute v2"Jenkins2016-12-262-0/+244
|\ \ \ \ \ \ \
| * | | | | | | Add unit tests for usage commands in compute v2jiahui.qiang2016-12-262-0/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add unit tests and fakes for command below in compute v2: usage list usage show Change-Id: Ie533e23375ca6b8ba4cb7e865d39fac652cc0195
* | | | | | | | Merge "Add '--type'and other options to network rbac list"Jenkins2016-12-262-2/+98
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | |
| * | | | | | | Add '--type'and other options to network rbac listguiyanxing2016-12-212-2/+98
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds '--type','--action','--long' filtering options to network rbac list command Change-Id: I21846820ab223bb7832e89eb2d7658bbec271aec Closes-Bug: #1648307 Partially-Implements: blueprint network-commands-options
* | | | | | | WIP: Skip broken functional tests...Dean Troyer2016-12-239-0/+28
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...so we don't have to fix them all in one review. Do not merge this until https://review.openstack.org/#/c/414649 is merged and funtional tests pass. Change-Id: I4f187111d3e4d8c4a613c20a946d6b5d3562e879
* | | | | | Merge "Should support 'auto' and 'none' as network parameter when boot ↵Jenkins2016-12-231-30/+36
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | instances"
| * | | | | | Should support 'auto' and 'none' as network parameter when boot instancesKevin_Zheng2016-12-221-30/+36
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nova added support using 'auto' and 'none' as network parameters since microversion 2.37: http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/rest_api_version_history.rst#n389 we should also add support for this in OSC. Change-Id: I6e5f616dfa48895ebd13144effe9fda7cb94c649 Closes-bug: #1651288
* | | | | | Add support for QoS rule type commandsRodolfo Alonso Hernandez2016-12-224-0/+177
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added following commands: - network qos rule type list Closes-Bug: 1612194 Depends-On: Iecf7bc7acd244a842aae963993f37a64a26b43b9 Change-Id: I38af823c726ceaba9d0b45488fa48e2d93971c92
* | | | | Merge "Introduce overwrite functionality in ``osc router set``"Jenkins2016-12-212-27/+50
|\ \ \ \ \
| * | | | | Introduce overwrite functionality in ``osc router set``Reedip2016-12-192-27/+50
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The overwrite functionality allows user to overwrite the routes of a specific router. Change-Id: I8d3cfe5cab2ffbfa046371c3adcd2cf446c91cbc partially-implements: blueprint allow-overwrite-set-options
* | | | | Merge "Modified API calls in os usage"Jenkins2016-12-211-1/+1
|\ \ \ \ \
| * | | | | Modified API calls in os usagejiahui.qiang2016-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We usually call v3 keystoneclient APIs for V2 OSC, this patch modified 'tenants' to 'projects'. Change-Id: Idbf74f098cd1386aa675c081480b89bbc11c8534
* | | | | | Merge "Add one test for "backup set" command"Jenkins2016-12-211-0/+24
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | Add one test for "backup set" commandzhiyong.dai2016-12-191-0/+24
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | The former tests for "backup set" command miss a test for '--description' option. In this patch, one relative test is added. Change-Id: Ie755d56a68a666d48751ab1ad20c8edb50e69b94
* | | | | Add support for clearing router gatewayReedip2016-12-192-0/+20
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the support to clear the gateway information from a router. Change-Id: I446c556750f080a6fc21fea8f531fd71838d648a Implements: blueprint neutron-client-advanced-router Partially-Implements: blueprint network-commands-options
* | | | Merge "Add support for setting router gateway"Jenkins2016-12-192-7/+163
|\ \ \ \
| * | | | Add support for setting router gatewayReedip2016-12-172-7/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the support to set the gateway information for a router. Implements: blueprint neutron-client-advanced-router Partially-Implements: blueprint network-commands-options Change-Id: Ifb5a4d1965cd7e75c0c8cf2cfb677e0628b699dc Depends-On: I2bda0dd40afd64b6cecca5f64ef2326bda4fac92
* | | | | Tivial:update the description format in volume_snapshot.pyzhiyong.dai2016-12-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the old description format with "_description = _( )" Change-Id: I36d61621309cfceefbd1ab1b930fa94b4bad2036