summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add project purge command to oscSteve Martinelli2017-06-132-0/+482
| |/ | | | | | | | | | | | | | | | | See the initial implementation: https://github.com/openstack/ospurge/blob/master/ospurge/client.py Partial-Bug: 1584596 Change-Id: I3aa86af7c85e7ca3b7f04b43e8e07125f7d956d1
* | Merge "Don't show hint about vlan transparent in network set"Jenkins2017-06-222-18/+15
|\ \ | |/ |/|
| * Don't show hint about vlan transparent in network setHong Hui Xiao2017-06-122-18/+15
| | | | | | | | | | | | | | Update this attribute is not allowed in neutron. Change-Id: I38010b26e116246c13dbb6cc6a777d2f22f6dc30 Closes-Bug: #1691776
* | Add default-quota to subnet pool commandsReedip2017-06-123-6/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add --default-quota option to subnet pool create and set commands. Setting default-quota back to None may break the current Neutron behavior, therefore support for Unset command is not provided in this patch. Neutron API: https://github.com/openstack/neutron/blob/a0e0e8b6686b847a4963a6aa6a3224b5768544e6/neutron/api/v2/attributes.py#L239 Closes-Bug: #1667294 Change-Id: Ia4e7c23a49e91a090133c729353cdb8e62bc5674
* | volume functest: ensure snapshots deleted when volume deleteAkihiro Motoki2017-06-0610-129/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | Deleting snapshot may take time. The current volume API does not allow to delete volumes with snapshots, so if deleting snapshot may take time, a delete request for a parent volume will fail. This sometimes causes functional test failures in slow environments. wait_for_status() checks whether volume status is in error statuses but previously the expected error status was wrong. Cinder API uses lower case as volume status, so it did not work expectedly. Change-Id: I095894ba39f23bf81d71351818d24dbb5ca459fb
* | Merge "Replace "Display Name" by "Name" in volume list"Jenkins2017-06-057-33/+231
|\ \
| * | Replace "Display Name" by "Name" in volume listRui Chen2017-05-267-33/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current "volume list --name" command use "display_name" as search_opts to send to cinder API, and show the result table with "Display Name" column title in osc, cinder list API support "name" as search opts too, and there is "name" attribute in volume response body, so we can replace all "Display Name" by "Name" in order to keep "volume list" command consistent with other commands, like: server list, network list and so on, only use "Name" attribute for all objects. Support a mapping for volume list -c "Display Name" (Volume v1 and v2) and volume create/show -c "display_name" (Volume v1) for minimal backward compatibility until R release. Change-Id: I120be0118e7bb30093b4237c5eeb69a9eedef077 Closes-Bug: #1657956 Depends-On: I1fb62219b092346ea380099811cbd082cae5bafe
* | | Merge "To display image size in human friendly format"Jenkins2017-06-016-4/+77
|\ \ \
| * | | To display image size in human friendly formatBadhmapriya Boopalan2017-01-116-4/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include option '--human-readable' to 'image show' command. This option displays image size in human readable format (such as K, M, G, T,..) Related Commit: I0ef74c2ec978483fe49156c88acf5c369a8fa5c2 Closes-Bug: #1640086 Change-Id: I28cd5702925d51303d0607ed8dccf12c56434682
* | | | Trivial fix typosVu Cong Tuan2017-05-307-15/+15
| |/ / |/| | | | | | | | Change-Id: I72a1da209df38e226ec02d9dbd0142ed4020c0d2
* | | Merge "Add functional test for volume service"Jenkins2017-05-252-0/+186
|\ \ \
| * | | Add functional test for volume servicezhiyong.dai2016-11-302-0/+186
| | | | | | | | | | | | | | | | | | | | | | | | Add functional test for volume service, v1 and v2 Change-Id: If226c82ef8df339e4ae63d8241e0bd15b69264d2
* | | | Merge "Convert volume functional tests into JSON format"Jenkins2017-05-254-153/+135
|\ \ \ \
| * | | | Convert volume functional tests into JSON formatAkihiro Motoki2017-05-174-153/+135
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | volume_type and transfer_request func tests have not been converted into JSON func tests. This commit converts them into JSON format. Change-Id: I56820c4e15bda95e911e57657c1ff5437daf83ae
* | | | Merge "JSON-ify image functional tests"Jenkins2017-05-242-97/+269
|\ \ \ \
| * | | | JSON-ify image functional testsDean Troyer2017-05-242-97/+269
| | | | | | | | | | | | | | | | | | | | Change-Id: Ica91eddfdebe68449544feb5e29113db075bf11c
* | | | | Merge "Use _get_token_resource in role assignment list"Jenkins2017-05-241-1/+2
|\ \ \ \ \
| * | | | | Use _get_token_resource in role assignment listDavid Rabel2017-05-231-1/+2
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If project matches the project from access token, we do not have to send an API request to /projects?name=..., because the project ID is already known. This API request may require additional permissions, so we want to avoid it, if possible. Change-Id: Ice1af8686bceea6b67229dcab7cf82eef821163e Closes-Bug: #1658189
* | | | | Merge "Refactor Extension show and list command"Jenkins2017-05-223-53/+105
|\ \ \ \ \
| * | | | | Refactor Extension show and list commandAnkur Gupta2017-05-183-53/+105
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.keep the column display order consist in extension list with and without "--long" option. 2.rework for network extentsion list, openstacksdk return object, so the logic should be same with other service. 3.add some unit test cases, like: extension list --network --long, extension list --network --compute, to cover regular use cases. 4.raise exact exception when network extension don't exist, avoid internal TypeError in "extension show" commands. Change-Id: I2e23ced80d8da8aa1106b22472db850367b351ce Closes-Bug: #1689233
* | | | | Merge "Create server with security group ID and name"Jenkins2017-05-223-3/+160
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Create server with security group ID and nameRui Chen2017-05-223-3/+160
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both resource ID and name are supported to identify an object in openstackclient to make user easy to input, for security group, nova only support security group name in API when launch a new server, this patch convert ID to name, then pass name to nova API, and check the security group exist before creating server. Change-Id: I1ed4a967fb9de3f91c8945a1ef63f6c7b6b2dfb2 Closes-Bug: #1687814
* | | | Merge "Convert image functional tests into JSON format"Jenkins2017-05-222-52/+59
|\ \ \ \
| * | | | Convert image functional tests into JSON formatAkihiro Motoki2017-05-172-52/+59
| |/ / / | | | | | | | | | | | | Change-Id: Ic8eb72e8f89e5e40cf2b7594a196bb31d38e6b04
* | | | Make block-device-mapping more stable and clearRui Chen2017-05-174-41/+493
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch fix the following issues: 1. ValueError is raised if input don't contain "=". Sometimes the whole "server create" command is very complex, it's difficult to find out root reason directly. 2. Don't support to add block device from snapshot, like: --block-device-mapping vdb=0c8ae9d8-cadc-4a23-8337-4254614d277e:snapshot:1, it's supported by novaclient, but not in osc. 3. If input "vdb=", not add any mapping information, the server will be launched successfully, not raise error message to let use add volume/snapshot id, just ignore "--block-device-mapping" option. 4. The help message of "block-device-mapping" option is so simple, need to add some details about how to add <type>, <delete_on_terminate> contains. Change-Id: Ib7f7a654c3dc2a8272545f168b4c4ced230ce39e Depends-On: Ib37913891bbf7a31b570404c4668c490d5ac859b Closes-Bug: #1667266
* | | Merge "Ignore more exceptions in quota list"Jenkins2017-05-112-2/+52
|\ \ \
| * | | Ignore more exceptions in quota listDean Troyer2017-05-112-2/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additional exceptions can be thrown here, ignore additional project lookup exceptions, but still not all. Server failures are still interesting, for example. Change-Id: I9a750ae8e8efa29a36bbd1e34b50b6ace0658260
* | | | Merge "Rework floating ip functional tests"Jenkins2017-05-111-140/+178
|\ \ \ \
| * | | | Rework floating ip functional testsDean Troyer2017-05-101-140/+178
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Regualr expresstions were an interesting diversion, get rid of them from the functional tests. It did lead to better structure... Change-Id: I1ff32ad7715ebd88401925ce3f6c412a66e82566
* | | | Merge "Revert "Fix port command for SDK >0.9.10""Jenkins2017-05-071-5/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Revert "Fix port command for SDK >0.9.10"Huanxuan Ao2017-03-091-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8e277c64fb86dc1ca432e02b82accdcaf42a2779. After [1] merged in osc-lib, we can Avoid 'NoneType' error when format conversion now, So [2] in no longer needed, we can clean it up. Hold this until [1] released and included in the requirement in OSC. [1] https://review.openstack.org/#/c/434768/ [2] https://review.openstack.org/#/c/420420/ Depend-On: I649b4fc65ef7c19b8193b07f3bd59f00e6095f9f Change-Id: I2783713102d5e6164d9617f130c2f595bd6d939e
* | | | Do not always init compute_client when doint port list3.11.0Vasyl Saienko2017-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch ensures that compute client is initialized only when needed (--server arg is passed) to openstack port list command. Otherwise it leads to failures on installations without Nova. Change-Id: I102683461daa2f7d05dd9d7a3ec72de551c65ca9 Closes-Bug: #1688194
* | | | Skip floating ip attach functional test on nova-netDean Troyer2017-05-031-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of Ocata release Nova forces nova-network to run in a cells v1 configuration. Floating IP and network functions currently do not work in the gate jobs so we have to skip this. It is known to work tested against a Mitaka nova-net DevStack without cells. Change-Id: I74f67ac8eb12c7a649ddcbd7979cf745fb35cc0c
* | | | Funcional tests: quota listDean Troyer2017-05-022-270/+490
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The quota list tests have a race in them where occasionally a project is deleted in another test between the time that quota list gets a list of all projects and it gets the quota for the projects from the service; the get quota call fails on the non-existant project. The quota list functional tests have been substantially re-written to properly test the exception handling. Change-Id: I71e6bbb5d46fcea4718a5a870f9a66a2c20fff0f
* | | | Nova-net functional tests: aggregatesDean Troyer2017-05-021-21/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nova-net requires a cells v1 configuration to run as of Ocata, but aggregates and cells v1 are not golfing buddies, so don't let them meet on the back nine. Skip the aggregate add/remove host commands in the cells v1 config, leave the others because they should work, just not be very useful. And format things consistently. Change-Id: I131d9f883cb7aca53ad82fb7d5fc6ee1c1e7d923
* | | | Functional tests: Identity v2 and DevStackDean Troyer2017-05-021-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DevStack master (as of 01May2017) no longer sets up an Identity v2 admin endpoint, so we need to skip those tests going forward and cover them via a specific leagacy job. This does the detect-and-skip. Change-Id: Ib9ab32b6bc84ec7d13508094ad6f83995d8d7bc1
* | | | Merge "Nova net functional tests round 3"Jenkins2017-04-2916-173/+387
|\ \ \ \
| * | | | Nova net functional tests round 3Dean Troyer2017-04-2816-173/+387
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * network segment * network service * port * router * security group * security group rule * subnet * subnet pool * extension The extension tests were duplicated to have both compute and network extensions tests so the nova-net case will still exercise the extension commands. Also clean up formatting from previous reviews to make the Network functional tests look and act consistently. Change-Id: I286c40572faa31ddcef595cec740da933b2defc1
* | | | | Merge "Fix volume qos spec list"Jenkins2017-04-295-28/+106
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Fix volume qos spec listDean Troyer2017-04-285-28/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been sporadically failing in functional tests due to the way the volume qos spec list command calls get_associations() for each spec. When tests run in parallel occasionally a spec from another test is present in the list returned and is deleted before the get_associations() call is made, causing a NotFound exception. We should just keep going when this occurs. * make v1 match v2 * add tests to ensure the exception is being caught and handled Closes-Bug: #1687083 Change-Id: If2d17c1deb53d293fc2c7f0c527a4e4ef6f69976
* | | | | Merge "Fix Nova-net netowrk commands"Jenkins2017-04-285-142/+290
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Fix Nova-net netowrk commandsDean Troyer2017-04-275-142/+290
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In cleaning up functional tests for nova-net, I discovered some problems in network create: * --subnet option is required in network create command * Switch API to use /os-networks rather than /os-tenant-networks as this is what we were actually using via novaclient * Fix functional tests for nova-net * Normalize some private function names in network/v2/network.py Change-Id: I426b864406756d58d140575a3a45ee9aee67ce84
* | | | | Nova net functional tests round 2Dean Troyer2017-04-286-106/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * floating ip * ip availability * network qos policy * network qos rule * network qos rule type * network rbac Change-Id: Id3946bdff43bfef3a1d879c058bde4792bd299c6
* | | | | Nova net functional tests round 1Dean Troyer2017-04-287-136/+286
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * address scope * network agent * network flavor * network flavor profile * network meter * network meter rule Also create a new common network functional test class NetworkTests to house the setting of haz_network in a single place. The individual test skipping stays in the final classes to re-enforce the idea that some tests work with both Nova-net and Neutron. Change-Id: Ie3910231c6fc9e2031438c599afa904f43c874a7
* | | | Merge "Fix server create with nova-net"Jenkins2017-04-272-5/+12
|\ \ \ \
| * | | | Fix server create with nova-netDean Troyer2017-04-262-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A Neutron-ism slipped by in server create. Change-Id: Id590d7f93df2a41d7bd7617459a2af159a6f8071
* | | | | Merge "Fix quota functional tests for nova-net"Jenkins2017-04-273-53/+119
|\ \ \ \ \
| * | | | | Fix quota functional tests for nova-netDean Troyer2017-04-263-53/+119
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to skip some functional tests when testing against a nova-net cloud so add the bits to detect that. Also JSON-ify the quota functional tests and add the skips for nova-net. Change-Id: Ibfeeb3f967f34c98e80271a8214cf95dc50407f1
* | | | | Merge "Functional test for subnet_pool"Jenkins2017-04-261-37/+268
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Functional test for subnet_pooljiahui.qiang2017-04-261-37/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor functional tests for testing more command options. Change-Id: I0c9c3b04dd2b79766a8fe82cbc5315c030f4784d