3803 Commits

Author SHA1 Message Date
Jenkins
49e866174f Merge "Enable to specify which vm fixed-ip to publish" 2017-03-21 01:55:51 +00:00
Jenkins
fe3bbf63a8 Merge "Jsonify meter and meter rule functional tests" 2017-03-21 01:50:17 +00:00
Cedric Brandily
f5527877bb Enable to specify which vm fixed-ip to publish
This change enables to specify which vm fixed-ip will be associated to a
floating ip using:

 openstack server add floating ip <vm> <fip> --fixed-ip-address <ip>

Closes-Bug: #1624524
Change-Id: I2ddb68c5873bfed7293b0e661d1adbe111681136
2017-03-20 22:33:51 +01:00
Jenkins
3e621c9a9c Merge "Introduce Neutron DHCP agent commands to OSC" 2017-03-20 21:31:53 +00:00
Jenkins
f16513aaf2 Merge "Make MAC address of port updatable" 2017-03-20 20:53:22 +00:00
Shashank Kumar Shankar
f4fd8f6e31 Introduce Neutron DHCP agent commands to OSC
This patch introduces neutron dhcp-agent related commands to OpenStack
client.

The equivalent neutron commands implemented in OSC:

neutron: dhcp-agent-list-hosting-net
OSC: network agent list --network

neutron: dhcp-agent-network-add
OSC: network agent add network

neutron: dhcp-agent-network-remove
OSC: network agent remove network

neutron: net-list-on-dhcp-agent
OSC: network list --agent

Change-Id: I77a933f4b3ce875c63cef5b6a32aee78fd844b03
2017-03-20 15:02:09 -04:00
Jenkins
9a1efd41c8 Merge "Non-Admin can't list own projects" 2017-03-20 17:58:38 +00:00
Jenkins
97a4ac471a Merge "Add extra filtering options to qos policy list" 2017-03-20 17:58:32 +00:00
Jenkins
495d013431 Merge "Adds missing flavor information in the server list long command" 2017-03-20 17:57:38 +00:00
Bence Romsics
f1345dc06f Make MAC address of port updatable
openstackclient does not allow the update of a port's MAC address.
However this is possible in neutron API (though by default policy
it is an admin-only operation). Allow it in openstackclient too.

Change-Id: Ibd9e0a6fbd1d0d461b8a8daee24dbb7c3f929df6
Closes-Bug: #1670707
2017-03-20 15:40:48 +00:00
adrian-turjak
49f6032b69 Non-Admin can't list own projects
Due to a default Keystone policy until Newtown,
and the use of resource_find, non-admins are unable
to list their own projects.

This patch bypasses this problem while also introducing better
UX for non-admins wishing to get their project list.

'openstack project list' retains the default of 'list all projects'
but on a forbidden error will default instead to 'list my projects'.
This way for non-admins 'list my projects' feels like the default
without breaking the expected admin default.

Adding the '--my-projects' option allows admins to easily list their
own projects or allows non-admins to be explicit and bypass the
forbidden error fallback.

Change-Id: I1021276f69fbbf28e13e17c4e567d932fce7ed8b
Closes-Bug: #1627555
2017-03-20 14:40:56 +13:00
OpenStack Proposal Bot
ad5b57fd19 Updated from global requirements
Change-Id: I5d0e7942a45e6fed6d387250734e882335fa3de4
2017-03-16 22:00:54 +00:00
Jenkins
5490654788 Merge "Refactor ServerTests and ServerEventTests functional test classes" 2017-03-16 18:48:04 +00:00
Jenkins
6d33798252 Merge "Functional test for ip_availability" 2017-03-16 16:31:42 +00:00
Jenkins
6cae88fa2b Merge "Add a validation about options for server migrate command" 2017-03-16 15:52:50 +00:00
Jenkins
c1503492cd Merge "Fix "security group list" command to display project ID properly" 2017-03-16 13:02:17 +00:00
Jenkins
3d4750cdc8 Merge "Narrow expected responses for CheckUserInGroup" 2017-03-16 13:02:02 +00:00
Jenkins
9184e19288 Merge "Add sort support to project list" 2017-03-16 13:01:56 +00:00
Jenkins
66246561d8 Merge "Switch to use cleanup method in functional test" 2017-03-16 13:01:49 +00:00
Jenkins
b6f51cdfa0 Merge "Add the bgp agent type to network agent command" 2017-03-16 08:58:49 +00:00
Colleen Murphy
853ea5ab59 Narrow expected responses for CheckUserInGroup
When checking whether a given user is in a given group, keystone will
return a 404 Not Found if all went well but the user was not in the
group. It may also return a 403 if the user and the group are in
different backends, which would also mean that the user was not in the
group[1]. Any other 400 response is a client error and any 500 response
is a server error to which the user should be alerted.

Without this patch, openstackclient treats any exception as a valid "not
found" and may end up hiding server errors. This patch reduces the
caught exceptions to 403 and 404 responses and treats everything else as
an error.

[1] https://developer.openstack.org/api-ref/identity/v3/?expanded=check-whether-user-belongs-to-group-detail#check-whether-user-belongs-to-group

Closes-bug: #1672634

Change-Id: Id3f3b2409b7cee480ee3c19b6d6c3070599ffe8f
2017-03-14 09:23:19 +01:00
lvjiawei
9fd3dba11e Add extra filtering options to qos policy list
The patch adds filtering "--project", "--project-domain",
"--share", "--no-share" options to qos policy list.

Change-Id: I5c012fb27fb952f736ddc9fbc54ef6da4d0af5e0
Partially-Implements: blueprint network-commands-options
2017-03-14 13:04:47 +08:00
Jose Castro Leon
429b43a331 Adds missing flavor information in the server list long command
Closes-Bug: #1672396

Change-Id: Ie2a664fd1c3db1b8269ea079df181f87afc702a7
2017-03-13 16:32:15 +01:00
Jenkins
4a19f6753b Merge "Fix reference in network flavor create command reference" 2017-03-12 19:49:52 +00:00
jiahui.qiang
1a5704d22e Functional test for ip_availability
Refactor ip_availability functional tests.

Change-Id: I2397bd20236e1e9e3c69177ea6afbaadf2c445ae
2017-03-10 17:11:17 +00:00
Akihiro Motoki
85d598a9ac Fix reference in network flavor create command reference
network-flavor.rst
* The opening quote of :ref: should be a backquote
* Closing paranthesis was missing after the reference

network-service-provider.rst
* A blank line is required after a label definition

Change-Id: Ie5c2bedbb6e5b4337b69a7d1ea75c47366e3d627
2017-03-10 21:51:34 +09:00
Dean Troyer
498d416bdd Refactor ServerTests and ServerEventTests functional test classes
Move common bits into a compute.v2.common.ComputeTestCase class
so they are available as needed without calling into other test
classes.

Change-Id: I1afcc04ba705b0bbb85628117e7ca91080cf1895
2017-03-10 14:50:21 +08:00
Huanxuan Ao
888022f8c0 Fix "security group list" command to display project ID properly
The "Project" column of the output of
"security group list" command is blank
since the new attribute name is "project_id"
not "tenant_id" in network resource, so change
it to display project IDs properly

Change-Id: Ie2a071afac3b5a8aaa2c6f1c50d44ae06905d916
Closes-bug: #1659967
2017-03-10 10:55:58 +08:00
Jenkins
9ffcd0dca7 Merge "Fix handling the use_default_subnet_pool attribute" 2017-03-10 02:52:15 +00:00
Ankur Gupta
1e739d7aeb Trivial Fix
Improperly rendered Release Note for v3.9.0

Change-Id: Ia9b920b5a3774dd9c720fe7a39fd41aaf7be209f
2017-03-09 10:59:44 -06:00
Nakul Dahiwade
289f15a814 Jsonify meter and meter rule functional tests
Some functional tests try to parse the CLI table output
format, that cause much work on parse string by using
regular expression. Using json format in functional tests
is better and easier way, this patch reworks for meter and
meter rule related tests.

Change-Id: I1f2a95c873a4ed23dd1afa4040900a1c7704d0bf
2017-03-09 16:57:54 +00:00
Jens Rosenboom
3e6356a4d8 Fix handling the use_default_subnet_pool attribute
The attribute formerly wasn't working because it is lacking support in
the SDK. The patch to add it[1] introduced a modified spelling, so we
should be matching this here.

Also make sure that the attribute is not shown when displaying subnet
objects, as it is meant to be invisible[2].

[1] I72c0be77d96f3891748cdd69c382211dc20dbf5e
[2] http://git.openstack.org/cgit/openstack/neutron/tree/neutron/extensions/default_subnetpools.py#n23

Change-Id: Ic125b818a6082d76a1114fe89e0b1fcf4c7356b0
Partial-Bug: 1668223
2017-03-09 08:21:13 +01:00
Jenkins
a93440023b Merge "Remove py34 tox env and pypi classifier" 2017-03-08 22:17:34 +00:00
Tom Jose Kalapura
6c1b03bf73 Add sort support to project list
Add sort support to project list by sorting items in the client side.
By default list will be sorted by name.

Change-Id: I00011406846b4003aff075eeeb88ac18fa5e2820
Closes-Bug: #1596818
2017-03-08 08:47:35 -08:00
Jenkins
37b5d0d45e Merge "command list: Move network meter appropriately" 2017-03-08 15:42:22 +00:00
Jens Rosenboom
8c6cfb518b Add the bgp agent type to network agent command
The neutron-dynamic-routing project provides an agent called
neutron-bgp-dragent with type "BGP dynamic routing agent". So we need to
add this option and can avoid using the deprecated neutron CLI e.g. in
[1].

[1] https://docs.openstack.org/ocata/networking-guide/config-bgp-dynamic-routing.html#verify-service-operation

Change-Id: I9af1e09d122806b56b966295817d8d31393e0283
Closes-Bug: 1671040
2017-03-08 14:40:23 +01:00
Jenkins
dcb2de9db2 Merge "Add "--private-key" option for "keypair create"" 2017-03-08 02:51:48 +00:00
Eric Brown
73c2a809f7 Remove py34 tox env and pypi classifier
Currently only py27 and py35 (not py34) is tested in the gate, so
py34 should no longer be part of the tox environment or part of the
PyPi classifier.

Change-Id: I155fc0e3ac06b495718d9fa3058edded738cb011
2017-03-07 14:40:27 -08:00
Akihiro Motoki
f4d3810c3e command list: Move network meter appropriately
'network meter' commands are not placed alphabetically
in the command list. It was due to the incorrect filename.

Trivial Fix

Change-Id: I7a76d3133915883cf41be8c7430def284d292d6e
2017-03-08 05:56:32 +09:00
Jenkins
054060cbef Merge "Add server event list and show commands" 2017-03-07 19:20:11 +00:00
Rui Chen
c03b9a871c Add server event list and show commands
OSC server event is similar to nova's instance action commands.

Server event is the event record that had been done on a server,
include: event type(create, delete, reboot and so on),
event result(success, error), start time, finish time and so on.
These are important information for server maintains.

Change-Id: I8111091f46a0d2755728d8f9d43cc0dfe8842d13
Closes-Bug: #1642030
2017-03-07 15:25:43 +08:00
OpenStack Proposal Bot
c0a23b89b1 Updated from global requirements
Change-Id: Ifda7ceeb278ff590cbf3d43f4eb65f895474fd4b
2017-03-07 02:05:59 +00:00
Jenkins
ead615f92d Merge "Cleanup release notes for 3.9.0 release" 2017-03-07 00:41:24 +00:00
Jenkins
6b8f5db02f Merge "Trivial Fix" 2017-03-06 23:55:40 +00:00
Jenkins
fe8c5047f8 Merge "add neutron CLI to decoder" 2017-03-06 21:50:34 +00:00
Dean Troyer
20429bd5c6 Cleanup release notes for 3.9.0 release
Change-Id: I6786fe67928d4f3d72cb4751fb70b67dccaa11e2
2017-03-06 21:49:47 +00:00
Jenkins
ca6f733f0f Merge "Trivial Fix" 2017-03-06 21:38:28 +00:00
Ankur Gupta
3907389785 Trivial Fix
Improperly rendered release note.

TrivialFix

Change-Id: I9771b84eb96edea39a5dbd6a94f2ee464da3914c
2017-03-06 14:09:32 -06:00
Steve Martinelli
b421eed868 add neutron CLI to decoder
Change-Id: I4717ffa2aa1c7bab1199728455ac7c13834d746f
2017-03-06 18:48:55 +00:00
liusheng
d07704dd25 Normalize the gnocchiclient docs entry
For now, gnocchiclient has been added in the global-requirements, we
should add gnocchiclient in test-requirements.txt and normalize the docs
entry.

Change-Id: Ide5d8262e7f7c5b1ca304fa72893ccfbf16d8ec1
2017-03-06 19:27:04 +08:00