Commit Graph

3141 Commits

Author SHA1 Message Date
7f12b745ce Overwrite/Clear support for subnets
This patch adds the overwrite/clear functionality
for allocation-pool and host-routes in subnets.

Change-Id: Idfa41173d0c054c5bfb4eda8c5f614928012555a
implements: blueprint allow-overwrite-set-options
2016-09-21 04:24:47 +00:00
43f6b95229 Merge "Add --description to Create/Set Network" 2016-09-20 06:55:29 +00:00
a83f3c8a71 Merge "Add 'description' option to os subnet (pool) create/set cmd" 2016-09-20 06:40:48 +00:00
a51406da5a Merge "Provide support to list ports by network" 2016-09-20 06:32:46 +00:00
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
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
5ec435e706 Clean up docs and notes for 3.3.0 release
Change-Id: I432dcb5e85819d22e6b30758da80d31c9a0db654
2016-09-19 14:59:38 -05:00
ad56086663 Merge "router list if availability_zone ext not enabled" 2016-09-19 19:35:26 +00:00
44cf358a14 Merge "Add filtering options to os subnet pool list command" 2016-09-19 15:15:26 +00:00
6d2412b190 Merge "Add filtering options to os subnet list command" 2016-09-19 14:14:31 +00:00
e1cdba48f4 Merge "Fix quota-update issue in LBaaS" 2016-09-19 10:53:41 +00:00
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
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
2fe7d76c00 Merge "Fix Quota Support for HMs" 2016-09-19 08:46:06 +00:00
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
7e990ba1e2 Merge "Doc, help and message updates for port unset" 2016-09-17 02:04:50 +00:00
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
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
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
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
276675f352 Merge "Support mark volume as bootable in volume set" 2016-09-14 18:48:28 +00:00
807ff825ef Merge "Support listing specified server's ports" 2016-09-14 17:45:21 +00:00
3b0e648041 Merge "Multi REST API calls error handling of "volume unset" command" 2016-09-14 17:02:04 +00:00
c381193214 Merge "Do not show "os-volume-type-access:is_public" property of volume type" 2016-09-14 16:55:03 +00:00
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
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
bc222e97b1 Replace 'MagicMock' with 'Mock'
Change-Id: I7aeceede6bd3cb88cf04f398454f9758dbee20f1
Closes-Bug: #1475722
2016-09-14 17:59:31 +08:00
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
6f326acd26 Support fetching network project default quota
Neutron server and openstacksdk had supported to fetch
network project default quota, this patch add the CLI
support in openstackclient.

Change-Id: If0ef74c268c41a866c62156da0603a40ae4e6e31
Closes-Bug: #1204956
Depends-On: I6a4e2a146351dd1e7d652442511f1ef2c279da42
2016-09-13 17:23:22 +08:00
320ed01774 Merge "remove the old post_test_hook" 2016-09-13 08:44:49 +00:00
4c83d75833 Merge "Display hypervisor information without uptime" 2016-09-12 20:43:10 +00:00
d5a011216e Merge "Fix regular expression for uptime in hypervisor show" 2016-09-12 20:25:45 +00:00
ed4454c5bb Merge "Set quota "per_volume_gigabytes", "backup_gigabytes" and "backups"" 2016-09-12 17:59:36 +00:00
c8ecd9a497 Merge "Add functional tests for unset multiple volume type props" 2016-09-12 17:23:14 +00:00
d8f2fd3bcd Merge "Trivial: Rename ListTransferRequests to ListTransferRequest" 2016-09-12 17:06:08 +00:00
8ec1c2791a Merge "Unit tests of quota command refactor" 2016-09-12 14:17:37 +00:00
b5078cd9f9 Merge "remove duplicate unit test" 2016-09-12 12:45:00 +00:00
fb66a5b8f9 Merge "Add unit test for volume type in volume v1" 2016-09-12 04:27:43 +00:00
8d59b31c72 Add functional tests for unset multiple volume type props
CinderClient bug/1596511 cause that OSC can't unset multiple
properties of volume type, obviously no functional test case
cover the part of logic in OSC, that make the issue raising,
the patch add functional test cases for this scenario.

Change-Id: I42cf9ac8cc72ccc2f1208926d8faf7b80ee2d288
Partial-Bug: #1596511
Depends-On: I60378a32cdc52aacdf869d69b246dec7eb6cdb77
2016-09-12 11:08:32 +08:00
6fba7163e8 Set quota "per_volume_gigabytes", "backup_gigabytes" and "backups"
"per_volume_gigabytes", "backup_gigabytes" and "backups" items
can be shown in "openstack quota show" command, but can't be
updated by "openstack quota set". This patch fix the issue.

Change-Id: I47db5a69d4e4ef6e140f2735257c83e1fb052760
Closes-Bug: #1609767
2016-09-12 11:00:55 +08:00
4e71e9da6b Unit tests of quota command refactor
Do refactor for quota command related unit tests, remove
useless code, add new tests to cover '--volume-type' and
'--class' option in "quota set" command and add the
volume quota fake object.

Change-Id: Iaf214740e98db1bfb4c739e810bac1c5ba6e9625
2016-09-12 10:54:15 +08:00
1a78c76250 Trivial: Rename ListTransferRequests to ListTransferRequest
The class name should use plural.

Change-Id: I2de2489ff9aa60c2d1bf12743cbd41f2091739ca
2016-09-12 10:44:54 +08:00
98bafda7e9 Display hypervisor information without uptime
Some virt drivers such as ironic virt driver doesn't implement a
method to get host uptime. For such drivers, hypervisor show command
displays no information although these drivers provides other host
information.

This patch fixes the command to display hypervisor information in case
where a virt driver doesn't provide host uptime by ignoring a
HTTPNotImplemented exception.

Change-Id: I7bcca5862cd9c05aadaf6192cb80aa651cd77cad
Closes-Bug: 1612065
2016-09-11 21:58:55 +09:00
d6f99b721d Fix regular expression for uptime in hypervisor show
Hypervisor show command has a few bugs as follows.
- It doesn't trim an extra whitespace in the head of uptime
  information.
- It doesn't display uptime information when the number of user is 1.

This patch fixes the regular expression to match uptime information.

Change-Id: Ic2f7fd9a9274466717084a0886f95f78e98a9007
Closes-Bug: 1611809
2016-09-11 21:48:23 +09:00
9966412c2d Add unit test for volume type in volume v1
Add unit test for volume type commands
(create/delete/show/list/set/unset)
in volume v1

Change-Id: I6ff1f1c7482bd0b4bfec5b4a1496807b722fa047
2016-09-11 14:20:58 +08:00
d2273ecea5 Implement "volume transfer request delete" command
Add "volume transfer request delete" command in
volume v1 and v2. Also add the unit tests, docs,
release note and functional tests

Change-Id: Ic3d375bc8df3312fac53c1800d75f48376b8c91c
Implements: bp cinder-command-support
Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
2016-09-11 14:08:27 +08:00
6f4acc45c6 Implement "volume transfer request create" command
Add "volume transfer request create" command in
volume v1 and v2. Also add the unit tests, docs,
release note and functional tests

Change-Id: If362df1acf214efdf6ba129cd917d33eb54e1030
Implements: bp cinder-command-support
Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
2016-09-11 14:08:19 +08:00
30afdb9684 Merge "Error handling of multi REST API calls for "snapshot set" command" 2016-09-11 05:50:40 +00:00
cc5379b55c Merge "Add "--limit" and "--marker" options to "volume list" command" 2016-09-11 05:22:58 +00:00
f5c09fe246 Merge "Support error handling for delete commands in volume v1" 2016-09-11 05:02:35 +00:00