3165 Commits

Author SHA1 Message Date
zheng yin
f2f12d91f7 remove square backet to required parameter
Required parameter don't need to square backet, therefore, I remove them.

Change-Id: I36517fb782da53b3b973f70f292f25a4f6784077
2016-09-25 15:49:40 +08:00
Jenkins
465a5d08e0 Merge "Align '=' for image.rst" 2016-09-22 17:58:23 +00:00
Jenkins
9440509fa0 Merge "Add "volume backup set" command in volume v2" 2016-09-22 17:57:54 +00:00
OpenStack Proposal Bot
41f7de22d6 Updated from global requirements
Change-Id: I9f23736d106b4b6fcc37b98f03387ea041c5828d
2016-09-22 13:15:54 +00:00
Jenkins
bce740d5ff Merge "Add filtering options to os network list command" 2016-09-22 12:47:38 +00:00
Jenkins
80ce3bee6f Merge "Implement "volume transfer request show/accept" command" 2016-09-22 11:19:28 +00:00
Huanxuan Ao
3ef7e29dd0 Implement "volume transfer request show/accept" command
Add "volume transfer request show" and
"volume transfer accept" commands in
volume v1 and v2. Also add the unit tests,
docs, release note and functional tests

Implements: bp cinder-command-support
Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>

Change-Id: I5787fc486b3401307125caa316f517b9c96a95a5
2016-09-22 17:11:53 +08:00
qtang
1d5297ca07 Align '=' for image.rst
Change-Id: Iae074a9b6f5ef91738d35e41602c234aab5bed56
2016-09-22 16:13:25 +08:00
Jenkins
5dc8151b58 Merge "Add network segment create, delete and set support" 2016-09-22 07:27:06 +00:00
Huanxuan Ao
ddf84429f2 Add "volume backup set" command in volume v2
Add "volume backup set" command in volume v2 (v2 only)
to set backup name, description and state

Change-Id: If17e8457db9a4704fb5bb9c75921ed82fd0069cf
Closes-Bug: #1613261
2016-09-22 13:55:12 +08:00
Jenkins
69c4f605ec Merge "Fix "volume unset" command pass normally when nothing specified" 2016-09-22 02:35:13 +00:00
Jenkins
0c6a46ab5c Merge "Refactor volume unit test with FakeVolume class in volume v1" 2016-09-22 02:33:59 +00:00
Ha Van Tu
9c473f475d Add filtering options to os network list command
This patch adds the following filtering options: '--name', '--internal',
'--share' and '--no-share', '--enable' and '--disable', '--project'
and '--project-domain', '--status'.

Change-Id: I7e9dd372ee572c6ee8cdba7fac3182f9dc0a137b
Partially-Implements: blueprint network-commands-options
Closes-Bug: #1578819
2016-09-22 09:33:48 +07:00
Jenkins
80d9c2a9b0 Merge "Use correct router add/remove interface methods" 2016-09-21 15:49:22 +00:00
OpenStack Proposal Bot
274e400f5a Updated from global requirements
Change-Id: I6f4e6002d66342afda1821902625b90476d193b4
2016-09-21 11:56:44 +00:00
Jenkins
813eba519a Merge "replace metavar "volume-id" with "volume" to avoid ambiguity" 2016-09-21 07:48:45 +00:00
Huanxuan Ao
bba5c9047f Fix "volume unset" command pass normally when nothing specified
When nothing specified in "volume unset" command, there
will be an error message says that the "--properties"
option is required, it is unusual behaviour, this patch
fix it and also add unit test for it.
Also, this patch add unit test for "volume show" command
by the way.

Change-Id: I5b5d587670acf0af4262b8521292455bf9f60fe5
Partial-bug: #1588588
2016-09-21 15:47:55 +08:00
rabi
47b782687f Use correct router add/remove interface methods
Use the correct openstacksdk method names.

Change-Id: I07b463753eedf41f79c6e00e9224d0f7697a1bd3
Closes-Bug: #1625954
2016-09-21 13:09:39 +05:30
Huanxuan Ao
4a8b802d6b Refactor volume unit test with FakeVolume class in volume v1
FakeVolume class has been added in the fake.py in
volume v1, this patch refactors the volume command
unit tests with the FakeVolume class.

Change-Id: Ic3c1a46d5bff9048d0095f5739ae9e5a34ca6b5b
2016-09-21 15:33:37 +08:00
Shu Yingya
b30a7b795f replace metavar "volume-id" with "volume" to avoid ambiguity
The help message of command "openstack volume show" accepts either
volume-name or volume-ID. But the metavar is "volume-id" as below.
It can easily lead to misunderstanding.

usage: openstack volume show [-h] [-f {json,shell,table,value,yaml}]
                             [-c COLUMN] [--max-width <integer>]
                             [--noindent][--prefix PREFIX]
                             <volume-id>

Change-Id: I57576ea23868b1026cf268be69b39e98a53aafd4
2016-09-21 12:33:01 +08:00
Jenkins
682c2bfb8b Merge "Remove unnecessary setUp" 2016-09-21 04:30:29 +00:00
zhufl
6f0462732a Remove unnecessary setUp
setUp will be automatically called around each
testcase, so this is to remove setUp that doing
nothing additional than super to keep code clean.

Change-Id: I47be2be6f0e9785eb166f89d411582d6292babc1
2016-09-21 10:46:46 +08:00
Jenkins
ccd2d658d1 Merge "Fix openstack quota set/show --class not work" 2016-09-20 09:01:16 +00:00
Jenkins
43f6b95229 Merge "Add --description to Create/Set Network" 2016-09-20 06:55:29 +00:00
Jenkins
a83f3c8a71 Merge "Add 'description' option to os subnet (pool) create/set cmd" 2016-09-20 06:40:48 +00:00
Jenkins
a51406da5a Merge "Provide support to list ports by network" 2016-09-20 06:32:46 +00:00
Cao Xuan Hoang
4265002e59 Add 'description' option to os subnet (pool) create/set cmd
This patch adds '--description' option to the commands.

Change-Id: Ifc2828670c3c48a87a0493d98686a5babf9b2ae7
Closes-Bug: #1614458
Closes-Bug: #1614823
Partially-Implements: blueprint network-commands-options
2016-09-20 10:12:42 +07:00
Ankur Gupta
88be7ddd38 Add --description to Create/Set Network
Added simple option for network description to create and
set network.

Change-Id: I90ce4db4e365a56ecddb00d59f4c5aa2ebbd49a3
Partially-Implements: blueprint network-command-options
2016-09-19 19:18:17 -05:00
Dean Troyer
5ec435e706 Clean up docs and notes for 3.3.0 release
Change-Id: I432dcb5e85819d22e6b30758da80d31c9a0db654
2016-09-19 14:59:38 -05:00
Jenkins
ad56086663 Merge "router list if availability_zone ext not enabled" 2016-09-19 19:35:26 +00:00
Jenkins
44cf358a14 Merge "Add filtering options to os subnet pool list command" 2016-09-19 15:15:26 +00:00
Jenkins
6d2412b190 Merge "Add filtering options to os subnet list command" 2016-09-19 14:14:31 +00:00
Jenkins
e1cdba48f4 Merge "Fix quota-update issue in LBaaS" 2016-09-19 10:53:41 +00:00
Reedip
554607eb3d Provide support to list ports by network
The new --network option provides a list of ports
connected with the current network.

Change-Id: I6a45184887b3e65f792391cb7e91f4ad85f29e03
Partial-Bug:#1562067
Partially-Implements: blueprint network-commands-options
2016-09-19 09:25:10 +00:00
Cao Xuan Hoang
1a6ae06ad5 Add filtering options to os subnet pool list command
This patch adds the following filtering options:
'--share' and '--no-share', '--default' and '--no-default',
'--project' and '--project-domain', '--name',
'--address-scope' options to the command.

Change-Id: I7ad9ed6842c6b3475ebf316fb5b954c7f5a7d7e3
Closes-Bug: #1613926
Partially-Implements: blueprint network-commands-options
2016-09-19 16:16:06 +07:00
Jenkins
2fe7d76c00 Merge "Fix Quota Support for HMs" 2016-09-19 08:46:06 +00:00
Cao Xuan Hoang
d44782bc08 Add filtering options to os subnet list command
This patch adds the following filtering options:
'--project' and '--project-domain', '--network', '--gateway',
'--name', '--subnet-range' to the command.

Change-Id: I575739486b9548492bd00f50130181b825534226
Partially-Implements: blueprint network-commands-options
Closes-Bug: #1610883
2016-09-19 14:00:49 +07:00
Jenkins
7e990ba1e2 Merge "Doc, help and message updates for port unset" 2016-09-17 02:04:50 +00:00
Reedip
91c4509afe Fix quota-update issue in LBaaS
Currently L7Policies cannot be updated( it was missing
in implementation in neutronclient). The same has been
taken care in the current patch.

Also, currently quota doesnt support updating the members
in an LBaaS pool. This patch temporarily removes it, till
it is not confirmed that LBaaS v2 needs to support quotas
for members or not.

Change-Id: I25a54a57debb762a32a280ece8c081fc52365f0f
Closes-Bug: #1624097
2016-09-16 10:57:02 +00:00
Reedip
d3e9361796 Fix Quota Support for HMs
Health Monitors could not be updated using
the `openstack quota update` CLI.

This patch fixes the same.

Change-Id: Ic5a4fa5dce5767e40139137131114834d564f89a
Closes-Bug: #1624225
2016-09-16 12:47:55 +05:30
Cedric Brandily
e6b09eef0c Correct login name deduction in SshServer
Currently SshServer ("server ssh" command) raises an AttributeError if
no explicit login is provided because it uses an attribute which no more
exists.

Change-Id: I86f68230037d51efb41aca62e07e058733ecd67a
Closes-Bug: #1624085
2016-09-15 21:57:17 +02:00
Ukesh Kumar Vasudevan
e04e389da2 router list if availability_zone ext not enabled
when calling router list with --long OSC expects the availability_zone
field in the response, even if this extension is not loaded:

As per the document, http://developer.openstack.org/api-ref/networking/
v2/?expanded=list-routers-detail, The availability zone(s) for the router
is available when router_availability_zone extension is enabled.

Added testcase to test router list without availability zone

Change-Id: Ic9abb06140eb310b797ade8b0463a876d8bea1b8
Closes-bug: #1622565
2016-09-15 16:24:15 +05:30
Jenkins
276675f352 Merge "Support mark volume as bootable in volume set" 2016-09-14 18:48:28 +00:00
Jenkins
807ff825ef Merge "Support listing specified server's ports" 2016-09-14 17:45:21 +00:00
Jenkins
3b0e648041 Merge "Multi REST API calls error handling of "volume unset" command" 2016-09-14 17:02:04 +00:00
Jenkins
c381193214 Merge "Do not show "os-volume-type-access:is_public" property of volume type" 2016-09-14 16:55:03 +00:00
qtang
6a914d0056 Support mark volume as bootable in volume set
Add --bootable | --non-bootable option in volume set
to mark or unmark volume as bootable.

Change-Id: Ifa6c2dd1642202f55b6d50e3b8614d3513d488f6
Closes-Bug:#1535704
2016-09-14 16:35:49 +00:00
Richard Theis
7cba0ed671 Doc, help and message updates for port unset
Update port unset based on review comments in [1].

[1] https://review.openstack.org/#/c/306236/

Change-Id: Icae6e3869516f2d53f90ad46efc03f897c00b0e5
Implements: blueprint network-property-unset
2016-09-14 08:01:56 -05:00
qtang
bc222e97b1 Replace 'MagicMock' with 'Mock'
Change-Id: I7aeceede6bd3cb88cf04f398454f9758dbee20f1
Closes-Bug: #1475722
2016-09-14 17:59:31 +08:00
Rui Chen
96a8ed435c Support listing specified server's ports
Add new option "--server" for "port list" command to
list all of the ports that are attached on the specified
server.

Change-Id: I8b5550ea5068405b163711303465b704b5207410
Closes-Bug: #1614385
2016-09-14 15:11:56 +08:00