2439 Commits

Author SHA1 Message Date
Jens Rosenboom
d8749f9148 Fix creating a private flavor with ID auto
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
2017-01-05 15:58:47 +01:00
Jenkins
82e69428f5 Merge "Update the description format" 2017-01-05 03:32:47 +00:00
Imtiaz Chowdhury
1bd2bf67da Fixes image api URL endpoint for certain scenario
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
2017-01-04 18:14:10 +00:00
Jenkins
e6e3cd295c Merge "Beef up address scope functional tests" 2017-01-04 11:30:05 +00:00
Jenkins
6707957c87 Merge "Beef up network functional tests" 2017-01-04 04:46:48 +00:00
Jenkins
385b87c6f6 Merge "Beef up floating IP functional tests" 2017-01-04 04:46:03 +00:00
zhiyong.dai
be9e60be4b Update the description format
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
2017-01-03 21:31:54 +08:00
Dean Troyer
3da71c819d Beef up floating IP functional tests
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
2016-12-30 16:23:49 -06:00
Dean Troyer
241e0ec1cd Beef up address scope functional tests
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
2016-12-30 15:15:29 -06:00
Dean Troyer
22cee104ed Beef up network functional tests
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
2016-12-30 14:36:10 -06:00
licanwei
0948aa6aeb update server migrate '--wait' description
'Wait for resize to complete'
==>
'Wait for migrate to complete'

Change-Id: I0e08968c0132f0a8e1ef1ce2e6179001315372c3
2016-12-30 14:16:32 +08:00
Jenkins
f020a9ffd6 Merge "Revert "WIP: Skip broken functional tests..."" 2016-12-30 02:13:52 +00:00
Dean Troyer
13c8a1c7aa Revert "WIP: Skip broken functional tests..."
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
2016-12-29 08:58:12 -06:00
Jenkins
317cbe2c6e Merge "Fix a spelling error" 2016-12-28 03:16:01 +00:00
Jenkins
05fbd076e4 Merge "Add unit tests for usage commands in compute v2" 2016-12-26 12:13:36 +00:00
JingLiu
6929c50a13 Fix a spelling error
Change-Id: Ic14c769d99986d5c51d26fc276f4d47d6fba3265
2016-12-26 17:01:48 +08:00
Jenkins
6245a96211 Merge "Add '--type'and other options to network rbac list" 2016-12-26 03:58:45 +00:00
jiahui.qiang
7b1febf47f Add unit tests for usage commands in compute v2
Add unit tests and fakes for command below in compute v2:
usage list
usage show

Change-Id: Ie533e23375ca6b8ba4cb7e865d39fac652cc0195
2016-12-26 03:05:37 +00:00
Dean Troyer
188e32f9e6 WIP: Skip broken functional tests...
...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
2016-12-23 17:19:50 -06:00
Jenkins
b829b210b0 Merge "Should support 'auto' and 'none' as network parameter when boot instances" 2016-12-23 03:50:18 +00:00
Rodolfo Alonso Hernandez
9e1e7e1c9f Add support for QoS rule type commands
Added following commands:
    - network qos rule type list

Closes-Bug: 1612194
Depends-On: Iecf7bc7acd244a842aae963993f37a64a26b43b9
Change-Id: I38af823c726ceaba9d0b45488fa48e2d93971c92
2016-12-22 16:40:14 +00:00
Kevin_Zheng
ff18e3d0e9 Should support 'auto' and 'none' as network parameter when boot instances
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
2016-12-22 10:01:02 +00:00
Jenkins
5d62981beb Merge "Introduce overwrite functionality in `osc router set`" 2016-12-21 22:09:50 +00:00
Jenkins
97538604ad Merge "Modified API calls in os usage" 2016-12-21 12:15:08 +00:00
Jenkins
931eee89ab Merge "Add one test for "backup set" command" 2016-12-21 10:01:22 +00:00
guiyanxing
af7129cda3 Add '--type'and other options to network rbac list
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
2016-12-21 09:43:07 +08:00
Reedip
4a5bf8d2a5 Add support for clearing router gateway
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
2016-12-19 17:30:19 -05:00
Reedip
25104c7d4a Introduce overwrite functionality in `osc router set`
The overwrite functionality allows user to overwrite
the routes of a specific router.

Change-Id: I8d3cfe5cab2ffbfa046371c3adcd2cf446c91cbc
partially-implements: blueprint allow-overwrite-set-options
2016-12-19 16:57:02 -05:00
Jenkins
e51a2b3b17 Merge "Add support for setting router gateway" 2016-12-19 14:31:11 +00:00
zhiyong.dai
20b0b71809 Add one test for "backup set" command
The former tests for "backup set" command miss a test for '--description'
option. In this patch, one relative test is added.

Change-Id: Ie755d56a68a666d48751ab1ad20c8edb50e69b94
2016-12-19 18:50:08 +08:00
zhiyong.dai
25c563d0d8 Tivial:update the description format in volume_snapshot.py
Replace the old description format with "_description = _( )"

Change-Id: I36d61621309cfceefbd1ab1b930fa94b4bad2036
2016-12-18 02:43:27 +08:00
Jenkins
a17687288b Merge "Add filtering options to the address scope list command" 2016-12-18 14:30:44 +00:00
Jenkins
cc4ede88e9 Merge "Add --default option to "volume type list"" 2016-12-18 12:20:28 +00:00
Yan Xing'an
d12aa86f7c Add filtering options to the address scope list command
Add --name, --ip-version, --project, --project-domain,
--share, --no-share options to the address scope list command.

Change-Id: I8ece8da473d07dfc21dfb5b17de47624241f0142
Closes-Bug: #1636046
Partially-Implements: blueprint network-commands-options
2016-12-18 19:46:11 +08:00
Reedip
841d9d8dbd Add support for setting router gateway
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
2016-12-17 18:22:45 +00:00
Jenkins
3ff713fd57 Merge "Add some options to "volume create" command" 2016-12-16 08:20:03 +00:00
Jenkins
60370b46f5 Merge "SDK refactor: Prepare network commands" 2016-12-16 03:01:12 +00:00
Mikhail Feoktistov
63377f25fc Add ploop to supported disk formats
This format is used for containers for Virtuozzo hypervisor

Closes-Bug: 1650342

Change-Id: Ic79f29a1fe9ea5016d3d5520c2b06e39da01ff61
2016-12-15 12:46:55 -05:00
Sindhu Devale
22d639b0b6 SDK refactor: Prepare network commands
Prepare the OSC "network" commands for the SDK refactor.

Change-Id: I50680f6675905f2147fee94cce8c1ed9c81dac0a
Partially-Implements: blueprint network-command-sdk-support
2016-12-15 14:26:39 +00:00
Jenkins
e24deda9cf Merge "SDK Refactor: Prepare port commands" 2016-12-15 14:16:50 +00:00
Jenkins
d854ff052d Merge "[TrivialFix] Fix typo error" 2016-12-15 03:32:55 +00:00
Jenkins
33cafd9b76 Merge "SDK Refactor: Prepare router commands" 2016-12-15 03:32:06 +00:00
jeckxie
74360e00f5 [TrivialFix] Fix typo error
Change-Id: Iaba9ba22de044b34b4b77f81bcdccda13af81405
2016-12-14 14:39:24 +08:00
Abhishek Raut
7832ea357c SDK Refactor: Prepare port commands
Prepare the OSC "port" commands for the SDK refactor.
See [1] for details.
Also fixed a typo in the UT.

[1] https://etherpad.openstack.org/p/osc-network-command-sdk-support

Change-Id: I0e37d6c04f3d8e81fdfd50ac26eea9b5a5fb2ff9
Partially-Implements: blueprint network-command-sdk-support
2016-12-13 17:06:38 -08:00
Yan Xing'an
083e155ae5 SDK Refactor: Prepare router commands
Prepare the OSC "router" commands for the SDK refactor.
See [1] for details.

[1] https://etherpad.openstack.org/p/osc-network-command-sdk-support

Change-Id: I2fa12943a65e3981b924e6cea9ed041682ec54b2
Partially-Implements: blueprint network-command-sdk-support
2016-12-12 19:23:27 -08:00
Huanxuan Ao
7357b24d3a Add "--remote-source" option to "volume snapshot create" command
Add "--remote-source" option to "volume snapshot create" command
to support creating snapshot from an existing remote snapshot in
volume v2 (v2 only), also add the doc, unit tests and release note.

Change-Id: I9e5fad4f0db5b44d528eb6b930edbc816e392c3a
Implements: bp cinder-command-support
Closes-Bug: #1618676
Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
2016-12-12 23:06:00 +08:00
Jenkins
29587eaa66 Merge "Add extra filtering options to floating ip list" 2016-12-09 15:21:03 +00:00
Jenkins
3bc64aa198 Merge "Add unit tests for server create in computev2" 2016-12-09 12:28:20 +00:00
songminglong
47716d1ad3 Add extra filtering options to floating ip list
The patch adds filtering '--long', 'status', '--project',
'--project-domain' and '--router' options to
floating ip list command.

Closes-Bug: #1614379
Partially-Implements: blueprint network-commands-options
Change-Id: I2a02cf23845ff435927d8b481f77249915bd94dc
2016-12-09 14:23:26 +08:00
Jenkins
d09fd7d832 Merge "Add '--force' option to 'volume snapshot delete' command" 2016-12-08 17:46:30 +00:00