]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoAdded Keystone and RequestID headers to CORS middleware
Michael Krotscheck [Fri, 8 Jan 2016 19:18:51 +0000 (11:18 -0800)]
Added Keystone and RequestID headers to CORS middleware

CORS middleware's latent configuration feature, new in 3.0.0,
allows adding headers that apply to all valid origins.
This patch adds headers commonly used in openstack to neutron's paste
pipeline, so that operators do not have to be aware of additional
configuration magic to ensure that browsers can talk to the API.

For more information:
http://docs.openstack.org/developer/oslo.middleware/cors.html#configuration-for-pastedeploy

Change-Id: Ic08fcb7833563bbeca3e0ba2d03438d4be594418

8 years agoMerge "Add firewall blink + remote SG functional tests"
Jenkins [Fri, 8 Jan 2016 15:54:47 +0000 (15:54 +0000)]
Merge "Add firewall blink + remote SG functional tests"

8 years agoMerge "Add test cases to testing firewall drivers"
Jenkins [Fri, 8 Jan 2016 15:54:06 +0000 (15:54 +0000)]
Merge "Add test cases to testing firewall drivers"

8 years agoMerge "select router with subnet's gateway_ip for floatingip"
Jenkins [Fri, 8 Jan 2016 14:35:24 +0000 (14:35 +0000)]
Merge "select router with subnet's gateway_ip for floatingip"

8 years agoMerge "Check missed ip6tables utility"
Jenkins [Fri, 8 Jan 2016 14:29:45 +0000 (14:29 +0000)]
Merge "Check missed ip6tables utility"

8 years agoMerge "Keep py3.X compatibility for urllib"
Jenkins [Fri, 8 Jan 2016 12:17:44 +0000 (12:17 +0000)]
Merge "Keep py3.X compatibility for urllib"

8 years agoMerge "Support rootwrap sysctl and conntrack commands for non-l3 nodes"
Jenkins [Fri, 8 Jan 2016 11:59:07 +0000 (11:59 +0000)]
Merge "Support rootwrap sysctl and conntrack commands for non-l3 nodes"

8 years agoMerge "Create a routing table manager"
Jenkins [Fri, 8 Jan 2016 11:43:30 +0000 (11:43 +0000)]
Merge "Create a routing table manager"

8 years agoMerge "DVR: Rename dvr_update_router_addvm function"
Jenkins [Fri, 8 Jan 2016 08:06:03 +0000 (08:06 +0000)]
Merge "DVR: Rename dvr_update_router_addvm function"

8 years agoMerge "SR-IOV: Fix macvtap assigned vf check when kernel < 3.13"
Jenkins [Fri, 8 Jan 2016 08:03:51 +0000 (08:03 +0000)]
Merge "SR-IOV: Fix macvtap assigned vf check when kernel < 3.13"

8 years agoMerge "fix call which is only specific to enhanced_rpc"
Jenkins [Fri, 8 Jan 2016 07:21:15 +0000 (07:21 +0000)]
Merge "fix call which is only specific to enhanced_rpc"

8 years agoMerge "Fixing the deprecated library function."
Jenkins [Fri, 8 Jan 2016 04:08:13 +0000 (04:08 +0000)]
Merge "Fixing the deprecated library function."

8 years agoMerge "Unify assertEqual for empty usages"
Jenkins [Fri, 8 Jan 2016 04:07:36 +0000 (04:07 +0000)]
Merge "Unify assertEqual for empty usages"

8 years agoMerge "Avoid duplicating tenant check when creating resources"
Jenkins [Fri, 8 Jan 2016 03:56:27 +0000 (03:56 +0000)]
Merge "Avoid duplicating tenant check when creating resources"

8 years agoMerge "Kilo initial migration"
Jenkins [Fri, 8 Jan 2016 03:45:26 +0000 (03:45 +0000)]
Merge "Kilo initial migration"

8 years agoCreate a routing table manager
Carl Baldwin [Tue, 22 Dec 2015 18:19:15 +0000 (11:19 -0700)]
Create a routing table manager

The routing table manager maps address scope ids to routing tables.
It uses the rt_tables file specific to each namespace to maintain the
mapping so that id can simply be used as the table name when running
iproute2 commands.  This will be useful when debugging.

Change-Id: Icd5e98c82a070045a50e0c5d3762906b7e159d3d
Partially-Implements:  blueprint address-scopes

8 years agoUnify assertEqual for empty usages
lzklibj [Mon, 21 Dec 2015 09:11:56 +0000 (17:11 +0800)]
Unify assertEqual for empty usages

Update previous assertEqual(observed, *empty) usages to
assertEqual(*empty*, observed).

This patch aslo update hacking check for assertEqual with
empty types.

Change-Id: I981277618f92254a5beb9d3308a317d8c14e125c

8 years agoSR-IOV: Fix macvtap assigned vf check when kernel < 3.13
Moshe Levi [Tue, 8 Dec 2015 11:11:33 +0000 (13:11 +0200)]
SR-IOV: Fix macvtap assigned vf check when kernel < 3.13

when creating macvtap passthrough to SR-IOV VF in Kernel >= 3.13 an
upper_macvtap symbolic link is created. For Kernel < 3.13 the only
way to know it is by parsing the ip link show output and look for
macvtap[0-9]+@<vf ifname>.

This patch used the ip link show command to detects
macvtap assigned vf so that detection of macvtap assigned vf
will work on all kernels

Closes-Bug: #1523083
Change-Id: Icbc8d6af5c00d1453095e04dd779210dc7244c7f

8 years agoAllow get_unused_ip method to skip v6 and fix iter
Kevin Benton [Wed, 6 Jan 2016 20:48:28 +0000 (12:48 -0800)]
Allow get_unused_ip method to skip v6 and fix iter

Skip IPv6 subnets when looking for an unused IP in the
floating IP tests since floating IPs cannot be requested
with v6 addresses.

This also fixes the iterator for the non-allocation pool
case.

Closes-Bug: #1531706
Change-Id: Id0b2c28970ab61e45755818e3e0798daa4453ce7

8 years agoMerge "Separate the command for replace_port to delete and add"
Jenkins [Thu, 7 Jan 2016 04:50:55 +0000 (04:50 +0000)]
Merge "Separate the command for replace_port to delete and add"

8 years agoMerge "ovs_vhostuser: fix vhostuser_socket_dir typo"
Jenkins [Thu, 7 Jan 2016 01:37:36 +0000 (01:37 +0000)]
Merge "ovs_vhostuser: fix vhostuser_socket_dir typo"

8 years agoMerge "Remove openstack.common._i18n from Neutron"
Jenkins [Thu, 7 Jan 2016 01:37:11 +0000 (01:37 +0000)]
Merge "Remove openstack.common._i18n from Neutron"

8 years agoMerge "Revert "Revert "Revert "Remove TEMPEST_CONFIG_DIR in the api tox env""""
Jenkins [Wed, 6 Jan 2016 20:48:13 +0000 (20:48 +0000)]
Merge "Revert "Revert "Revert "Remove TEMPEST_CONFIG_DIR in the api tox env""""

8 years agoMerge "Introduce an API test for specified floating ip address"
Jenkins [Wed, 6 Jan 2016 20:45:05 +0000 (20:45 +0000)]
Merge "Introduce an API test for specified floating ip address"

8 years agoMerge "Don't snat traffic between fixed IPs behind same router"
Jenkins [Wed, 6 Jan 2016 20:44:39 +0000 (20:44 +0000)]
Merge "Don't snat traffic between fixed IPs behind same router"

8 years agoMerge "Remove l2pop _get_port_infos method"
Jenkins [Wed, 6 Jan 2016 20:44:18 +0000 (20:44 +0000)]
Merge "Remove l2pop _get_port_infos method"

8 years agoMerge "Fix meter label rule creation"
Jenkins [Wed, 6 Jan 2016 20:43:59 +0000 (20:43 +0000)]
Merge "Fix meter label rule creation"

8 years agoMerge "SR-IOV agent: display loaded extensions"
Jenkins [Wed, 6 Jan 2016 20:43:10 +0000 (20:43 +0000)]
Merge "SR-IOV agent: display loaded extensions"

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Wed, 6 Jan 2016 20:40:39 +0000 (20:40 +0000)]
Merge "Imported Translations from Zanata"

8 years agoRevert "Revert "Revert "Remove TEMPEST_CONFIG_DIR in the api tox env"""
Ihar Hrachyshka [Tue, 5 Jan 2016 18:36:42 +0000 (19:36 +0100)]
Revert "Revert "Revert "Remove TEMPEST_CONFIG_DIR in the api tox env"""

This reverts commit be63289c273fa02159a6958e0b456d5fda217431.

Yes, it's a third order revert. Ain't it cool?

Now that tox 2.3.1 is used in gate, and it is expected to fix the issue
that we originally hacked around here, let's revert to the previous
code.

For the least, it makes API target executable locally without the need
to set TEMPEST_CONFIG_DIR in the external environment.

Also bump minimal tox version to 2.3 to avoid users hitting the old
issue with their tox 2.2.* package.

Change-Id: Ic64cb466d117ad39436cb1d079c8f5657260da2c
Related-Bug: #1515335

8 years agoMerge "Add extension_manager and support for extensions in linuxbridge agent"
Jenkins [Wed, 6 Jan 2016 15:12:58 +0000 (15:12 +0000)]
Merge "Add extension_manager and support for extensions in linuxbridge agent"

8 years agoFix meter label rule creation
Yu Fukuyama [Tue, 22 Dec 2015 05:17:30 +0000 (05:17 +0000)]
Fix meter label rule creation

In the case of outbound traffic, set remote_ip to dst.
In the case of inbound traffic, set remote_ip to src.

Change-Id: I7f27b93efa67baf3efccaa94f6a1337d6886e230
Closes-Bug: #1528137
DocImpact: Clarify remote_ip_prefix description of metering label rule in API site

8 years agoMerge "Add test for Neutron object versions"
Jenkins [Wed, 6 Jan 2016 13:35:43 +0000 (13:35 +0000)]
Merge "Add test for Neutron object versions"

8 years agoRemove l2pop _get_port_infos method
Assaf Muller [Mon, 4 Jan 2016 22:49:09 +0000 (17:49 -0500)]
Remove l2pop _get_port_infos method

It's a method called 'get_port_infos' that returned
4 values, most of which were not a function of the port.
What the method did or its naming was very unclear to me
so I broke it up according to its usage.

Change-Id: Ib1fd589e9123fc5009f0887dd400c550efa687a3

8 years agoMerge "Some minor misspellings in comment block."
Jenkins [Wed, 6 Jan 2016 10:56:16 +0000 (10:56 +0000)]
Merge "Some minor misspellings in comment block."

8 years agoAdd test for Neutron object versions
Martin Hickey [Tue, 15 Dec 2015 17:42:39 +0000 (17:42 +0000)]
Add test for Neutron object versions

Adds a test to Neutron to check object versions for any changes
to objects. It prompts the developer to update the version of the
changed object. It uses oslo.versionedobjects.

Change-Id: I99454b28ae0b5fa663354eeccdf709d4030a280b
Co-Authored-By: Ryan Rossiter <rlrossit@us.ibm.com>
8 years agoSR-IOV agent: display loaded extensions
Moshe Levi [Thu, 17 Dec 2015 16:03:00 +0000 (18:03 +0200)]
SR-IOV agent: display loaded extensions

The SR-IOV agent support l2 agent extension due to
this patch https://review.openstack.org/#/c/210483/

This patch allow to show the loaded l2 agent extensions
when executing neutron agent-show <SR-IOV agent id>

Closes-Bug: #1527307
DocImpact update the agent configuration to show
          l2 agent extensions
Change-Id: I5dcb79ef539e4f18693e4a8eff03fff40873d3fa

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Wed, 6 Jan 2016 06:29:46 +0000 (06:29 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Icca45cc80c0481a7bc500b8409aaa0948ba5daa2

8 years agoMerge "Delete test_restart_l3_agent_on_sighup"
Jenkins [Wed, 6 Jan 2016 04:11:04 +0000 (04:11 +0000)]
Merge "Delete test_restart_l3_agent_on_sighup"

8 years agoAvoid duplicating tenant check when creating resources
Mathieu Rohon [Wed, 4 Nov 2015 17:49:40 +0000 (17:49 +0000)]
Avoid duplicating tenant check when creating resources

The check of the tenant done in the method _get_tenant_id_for_create()
is already did by the Neutron Controller in prepare_request_body(),
with a call to attributes.populate_tenant_id().
Moreover, when the Controller processes a "create" requests, it
will add the 'tenant_id' to the resource dict.
Thus, _get_tenant_id_for_create() can be deleted.
Calls to this method are replaced by the res['tenant_id'].

Changes have to be done in UT to explicitly add the tenant_id while
creating resources, since the UT framework is bypassing the controller code
that automatically adds the tenant_id to the resource.

Co-Authored-By: Hong Hui Xiao <xiaohhui@cn.ibm.com>
Closes-Bug: #1513825
Change-Id: Icea06dc81344e1120bdf986a97a6b1094bbb765e
Depends-On: I31022e9230fc5404c6a94edabbb08d2b079c3a09
Depends-On: Iea3f014ef17a1e1b755cd2efe99afd1a36ebbc6a
Depends-On: I604602d023e0cbf7f6591149f914d73217d7a574

8 years agoAdd extension_manager and support for extensions in linuxbridge agent
Sławek Kapłoński [Thu, 26 Nov 2015 22:31:11 +0000 (23:31 +0100)]
Add extension_manager and support for extensions in linuxbridge agent

There is extensions mechanism for l2 agents already but it was
implemented only for openvswitch l2 agent. This patch adds support for
such extensions also for linuxbridge agent.

This patch also adds support for network_update events received by the
agent via RPC. It is required because sometimes when a network is
updated (for example with a QoS policy is attached to it) all ports that
belong to the network should also be updated.

Change-Id: Ie81c818d0eb817b044a6df1cbddc5864f118fe3f
Partial-bug: 1468803

8 years agoFix API tests
Assaf Muller [Tue, 5 Jan 2016 01:30:43 +0000 (20:30 -0500)]
Fix API tests

Patch https://review.openstack.org/#/c/256164/
broke the Neutron API job by unsetting Tempest configuration
values that were unused by Tempest, but used by Neutron's fork
of Tempest. This patch copies credentials from the 'auth' section
to the 'identity' section.

The longer term plan is detailed here:
https://etherpad.openstack.org/p/neutron-tempest-defork
TL;DR: Removed overlap of tests between the Tempest and Neutron
repos, then use Tempest's plugin architecture for the tests that
will remain in the Neutron repo.

Change-Id: Ieb396cfd17f9cb66776ead11e7f760c1c26a0b08

8 years agoDVR: Rename dvr_update_router_addvm function
Swaminathan Vasudevan [Fri, 4 Dec 2015 21:33:15 +0000 (13:33 -0800)]
DVR: Rename dvr_update_router_addvm function

Since dvr routers have to be scheduled and updated for
all dvr service ports other than vms, it is better to
rename the function appropriately.

Change-Id: I4e3d58bb9a01798cc808ac1e77584153a29a89e3

8 years agoSupport rootwrap sysctl and conntrack commands for non-l3 nodes
rossella [Tue, 22 Dec 2015 19:14:15 +0000 (19:14 +0000)]
Support rootwrap sysctl and conntrack commands for non-l3 nodes

Iptables-firewall use commands sysctl and conntrack.
These are missed out in the plugins resulting in (No filter matched) errors in
non-l3 nodes. L3 nodes do not have this problem as l3.filters rootwraps these
commands.

Closes-bug: #1528641

Change-Id: I1167544a41f2ea91781ae2bb7aa208e25fec1524

8 years agoRemove openstack.common._i18n from Neutron
houming-wang [Thu, 24 Dec 2015 15:22:12 +0000 (10:22 -0500)]
Remove openstack.common._i18n from Neutron

Since oslo-incubator is no longer maintained[1] after
90ae25e38915cc502d9e9c52d59e8fb668a72ae1. And
openstack/common/_i18n.py is not referenced by Neutron. Let's remove it.

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-November/
    079343.html

Change-Id: Ia81d30d9722a5cc7d6ad21b0cbb27df8cd80c848

8 years agoKilo initial migration
Ann Kamyshnikova [Wed, 28 Oct 2015 13:25:29 +0000 (16:25 +0300)]
Kilo initial migration

Juno will be deprecated with Mitaka release, so juno_initial migration
should be replaced with kilo_initilal migration in Mitaka.

Optimized execution time of "upgrade head" command.
Test on my local machine on MySQL shows about 28% reduce (from 188
seconds to 137 seconds).

Related-Bug: #1501380

Change-Id: I26571f1c43764a01d1ae9869ce43ff18ea677892

8 years agoCheck missed ip6tables utility
Dongcan Ye [Wed, 30 Dec 2015 11:16:22 +0000 (19:16 +0800)]
Check missed ip6tables utility

In some scenario, like in OpenStack Kolla, system may lack
iptables-ipv6 package. This may cause command ip6tables-save
or ip6tables-restore invalid and ovs-agent error.

This patch allows checking ip6tables support from CLI:
    neutron-sanity-check --ip6tables_installed

Or using configuration options, for example:
    neutron-sanity-check --config-file /etc/neutron/neutron.conf
    --config-file /etc/neutron/plugins/ml2/ml2_conf.ini

Change-Id: Ia6cf1ed6b5033442f03eac61d2d0d783c146d797
Closes-Bug: #1530042

8 years agoKeep py3.X compatibility for urllib
Swapnil Kulkarni (coolsvap) [Thu, 24 Dec 2015 06:44:44 +0000 (12:14 +0530)]
Keep py3.X compatibility for urllib

Change-Id: I463d00865b8f384d22798be4dd86b62f821af67c
Partial-Bug:#1280105

8 years agoMerge "dhcp: Default to using local DNS resolution"
Jenkins [Sun, 3 Jan 2016 13:34:30 +0000 (13:34 +0000)]
Merge "dhcp: Default to using local DNS resolution"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 1 Jan 2016 20:29:56 +0000 (20:29 +0000)]
Updated from global requirements

Change-Id: I721b27b36b21447161a34a6cf6788eac6dd145fc

8 years agoMerge "Misspelling in message"
Jenkins [Thu, 31 Dec 2015 11:50:12 +0000 (11:50 +0000)]
Merge "Misspelling in message"

8 years agoMisspelling in message
Herman Ge [Mon, 28 Dec 2015 11:31:42 +0000 (06:31 -0500)]
Misspelling in message

Misspelling in following message:
"# interconnect physical and integration bridges using veth/patchs".
Should be:
"# interconnect physical and integration bridges using veth/patches".
Totally 1 occurrence in Neutron base code.

Change-Id: If752b8c65cf4993447b93dfc9a06de15389f2675

8 years agoMitigate restriction for fixed ips per dhcp port
watanabe isao [Tue, 30 Jun 2015 05:36:40 +0000 (14:36 +0900)]
Mitigate restriction for fixed ips per dhcp port

When number of fixed ips per dhcp port exceeds max_fixed_ips_per_port,
a dhcp resync will be triggered.

The bug report stated how simply this issue can be triggered.
Moreover, "max_fixed_ips_per_port" value should be used for non-DHCP
port only and DHCP port is not affected by this parameter.

Change-Id: Iaa9ed6949383ba6a7ce0b3ffd9dcced663126317
Co-authored-by: NGUYEN TUONG THANH <thanhnt@vn.fujitsu.com>
Closes-Bug: #1179713

8 years agoMerge "Wrong usage of "an""
Jenkins [Wed, 30 Dec 2015 20:22:48 +0000 (20:22 +0000)]
Merge "Wrong usage of "an""

8 years agoMerge "Wrong usage of "a""
Jenkins [Wed, 30 Dec 2015 20:15:01 +0000 (20:15 +0000)]
Merge "Wrong usage of "a""

8 years agodhcp: Default to using local DNS resolution
Kyle Mestery [Wed, 17 Jun 2015 14:46:47 +0000 (14:46 +0000)]
dhcp: Default to using local DNS resolution

It's pointless to not include default DNS resolution for Neutron.
This adds a new config option (dnsmasq_local_resolv) which defaults
to 'True' and will allow for DNS name resolution to work out of
the box. The caveat is that if the 'dnsmasq_dns_servers' is set it
will override the 'dnsmasq_local_resolv' setting, thus allowing
operators to explicitly set their own DNS servers.

DocImpact: Default to using local DNS resolution with the DHCP agent.

Change-Id: I17a884f467d307432a06f67a9dd93ed2fa6081a3
Closes-Bug: #1466117
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoFixing the deprecated library function.
Harshada Mangesh Kakad [Wed, 30 Dec 2015 15:55:45 +0000 (07:55 -0800)]
Fixing the deprecated library function.

os.popen() is deprecated since version 2.6. Resolved with use of
subprocess module.

Change-Id: I2ff32c4dc37c543696125ac755dc4adb69ddacdf
Partial-Bug: #1529836

8 years agoRemove unused variable use_call in ovs-agent
shihanzhang [Wed, 30 Dec 2015 07:55:35 +0000 (15:55 +0800)]
Remove unused variable use_call in ovs-agent

The patch Id28248f4f75821fbacf46e2c44e40f27f59172a9 makes agent
always reporting its state with RPC call() method, so the variable
self.use_call was unused, this patch removes it.

Change-Id: I2e15d9ea2f35dce710858db8c8c6efd8c8304a23

8 years agoWrong usage of "an"
hgangwx [Mon, 28 Dec 2015 07:22:04 +0000 (15:22 +0800)]
Wrong usage of "an"

Wrong usage of "an" in the messages:
"Gets called when an port gets added to or removed"
"Create an command to add an OVS bridge"

Should be:
"Gets called when a port gets added to or removed"
"Create a command to add an OVS bridge"

Totally 2 occurrences in Neutron base code.

Change-Id: I40756ed3eff7d2f672b2e0203b59ea5b8ff224c3

8 years agoWrong usage of "a"
hgangwx [Sat, 26 Dec 2015 13:16:23 +0000 (21:16 +0800)]
Wrong usage of "a"

Wrong usage of "a" in the messages:
"'%s' is not a integer"
"Create a address scope"
"Return True if port has as a allowed address pair"
"But if a agent does not report its status"
"a ipv4 link-local address"
"Retrieve and return a extended information about a network"
"It could be a eui-64 address, a random IPv6 address"
"push a elastic-recheck query for it (see below)"
"is not a enforced requirement"
"a ovs_lib.VifPort object"

Should be:
"'%s' is not an integer"
"Create an address scope"
"Return True if port has as an allowed address pair"
"But if an agent does not report its status"
"an ipv4 link-local address"
"Retrieve and return extended information about a network"
"It could be an eui-64 address, a random IPv6 address"
"push an elastic-recheck query for it (see below)"
"is not an enforced requirement"
"an ovs_lib.VifPort object"

Totally 9 occurrences in Neutron base code.

Change-Id: I0f980fc8c98524db3d194ecb779f76abb37eb31c

8 years agoMerge "Change log level from error to warning"
Jenkins [Mon, 28 Dec 2015 19:20:18 +0000 (19:20 +0000)]
Merge "Change log level from error to warning"

8 years agoMerge "Allow to control to use constraint env for functional jobs"
Jenkins [Mon, 28 Dec 2015 12:12:38 +0000 (12:12 +0000)]
Merge "Allow to control to use constraint env for functional jobs"

8 years agoTrival: Remove unused logging import
ChangBo Guo(gcb) [Sat, 26 Dec 2015 03:10:41 +0000 (11:10 +0800)]
Trival: Remove unused logging import

Change-Id: I13298e642f25c9f70dcff9b1e056b418edf0a461

8 years agoMerge "Add tests that constrain db query count"
Jenkins [Fri, 25 Dec 2015 16:34:31 +0000 (16:34 +0000)]
Merge "Add tests that constrain db query count"

8 years agoAllow to control to use constraint env for functional jobs
Akihiro Motoki [Fri, 25 Dec 2015 14:27:03 +0000 (23:27 +0900)]
Allow to control to use constraint env for functional jobs

VPNaaS functional tests now use dsvm-functional instead of
*-constraints. Always assuming *-constraints breaks the functional
jobs which is not run in a constrainted environment yet.

Paritial-Bug: #1529027
Change-Id: I3a4f1d61d13f1e444f7624d68d121d04d81eb724

8 years agoMerge "Correct state_path option's help string"
Jenkins [Fri, 25 Dec 2015 04:52:53 +0000 (04:52 +0000)]
Merge "Correct state_path option's help string"

8 years agoMerge "Ignore non rules related qos_policy changes"
Jenkins [Thu, 24 Dec 2015 09:00:53 +0000 (09:00 +0000)]
Merge "Ignore non rules related qos_policy changes"

8 years agoMerge "dibbler: fix import order"
Jenkins [Thu, 24 Dec 2015 08:17:49 +0000 (08:17 +0000)]
Merge "dibbler: fix import order"

8 years agoChange log level from error to warning
zoukeke@cmss.chinamobile.com [Wed, 23 Dec 2015 13:15:51 +0000 (21:15 +0800)]
Change log level from error to warning

The service respawning action of ProcessMonitor is normal handling. So
the log level in external_process.py should not be error.

Closes-Bug: #1528850
Change-Id: Ie335f521b09310a577eb4fb03946dfba484eef61

8 years agoMerge "Return availability_zone_hints as list when net-create"
Jenkins [Thu, 24 Dec 2015 04:12:53 +0000 (04:12 +0000)]
Merge "Return availability_zone_hints as list when net-create"

8 years agoMerge "Add address scope to floating IPs in RPC response to L3 agent"
Jenkins [Thu, 24 Dec 2015 00:07:40 +0000 (00:07 +0000)]
Merge "Add address scope to floating IPs in RPC response to L3 agent"

8 years agoMerge "reject leading '0's in IPv4 addr to avoid ambiguity"
Jenkins [Wed, 23 Dec 2015 23:04:40 +0000 (23:04 +0000)]
Merge "reject leading '0's in IPv4 addr to avoid ambiguity"

8 years agoMerge "Add constant to L3 extension for floating ips"
Jenkins [Wed, 23 Dec 2015 21:38:34 +0000 (21:38 +0000)]
Merge "Add constant to L3 extension for floating ips"

8 years agoMerge "API: _validate_ip_address should not raise an exception"
Jenkins [Wed, 23 Dec 2015 19:42:48 +0000 (19:42 +0000)]
Merge "API: _validate_ip_address should not raise an exception"

8 years agoAdd constant to L3 extension for floating ips
Miguel Lavalle [Wed, 23 Dec 2015 17:22:14 +0000 (17:22 +0000)]
Add constant to L3 extension for floating ips

Add a constant string to the L3 extension to access floating ips in request and
response dictionaries

Change-Id: I161ab583f4eca3a8f0ddda1dd533780591e3423d

8 years agodibbler: fix import order
Gary Kotton [Wed, 23 Dec 2015 15:56:48 +0000 (07:56 -0800)]
dibbler: fix import order

The commit 4b329c345c7820ff12bf25a91228cdfbf99500df added the file
and the imports did not adhere to the existing conventions.

Third party imports should be grouped together.

In addition to this it removes an unncesary new line.

TrivialFix

Change-Id: Ieeb4d20887ba8e90ea4f7850101b97ccd6e86658

8 years agoAdd address scope to floating IPs in RPC response to L3 agent
Carl Baldwin [Wed, 23 Dec 2015 17:16:15 +0000 (10:16 -0700)]
Add address scope to floating IPs in RPC response to L3 agent

The L3 agent needs to know the address scope of the fixed ip of each
floating ip because floating ips are a way to cross scope boundaries.
Without the scope information, there could be ambiguity and no way to
know which scope to send it to.

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

Change-Id: Id9f8c12954a6efbf4d9b99c011652eefbe5f5145
Partially-Implements: blueprint address-scopes

8 years agoAdd firewall blink + remote SG functional tests
Jakub Libosvar [Tue, 30 Jun 2015 12:46:30 +0000 (12:46 +0000)]
Add firewall blink + remote SG functional tests

This tests that firewall still does its purpose even when rules are
being updated. That means there is no short period of time where
security groups are inactive during update.

Part of this patch introduces Pinger class. This object provides
capability of sending ICMP packets asynchronously and after
it's stopped it provides statistics like how many packets were
sent and how many were received. Note the difference between
assert_ping() functions, which are synchronous.

Another testing of remote security groups is also added.

Related-bug: #1461000
Change-Id: I6251ee264396f8dbc9b284758b96e5cdc6ac500b

8 years agoAdd test cases to testing firewall drivers
Jakub Libosvar [Fri, 12 Jun 2015 15:40:21 +0000 (15:40 +0000)]
Add test cases to testing firewall drivers

Part of this patch is also preparation for having common test plan for
firewall driver testing.

Following test cases were implemented:
 - dhcp works by default
 - dhcp server is prevented on vm by default
 - ip spoofing from vm
 - allowed address pairs allows traffic to given ip
 - arp can go through
 - ingress/egress traffic with src/dest port ranges

Related-bug: #1461000
Change-Id: Ib00c99f236855e6556f43f4ffc55014c73b077bb

8 years agoMerge "Run functional gate jobs in a constrained environment"
Jenkins [Wed, 23 Dec 2015 16:35:13 +0000 (16:35 +0000)]
Merge "Run functional gate jobs in a constrained environment"

8 years agoIgnore non rules related qos_policy changes
Irena Berezovsky [Sun, 6 Dec 2015 13:44:27 +0000 (13:44 +0000)]
Ignore non rules related qos_policy changes

QoSAgentExtension should invoke QoSAgentDriver
to reflush qos policy rules only if there is any rules related change.
QoS policy changes, such as description change, should not cause
reconfiguration of the qos policy rules.

Closes-Bug: #1509232
Change-Id: I036b0449c7b5521adeb32602a0c0e6cf2d27510a

8 years agoMerge "DVR: Remove get_port call from dvr_update_router_addvm"
Jenkins [Wed, 23 Dec 2015 12:33:05 +0000 (12:33 +0000)]
Merge "DVR: Remove get_port call from dvr_update_router_addvm"

8 years agoMerge "update docstring for get_ports_on_host_by_subnet"
Jenkins [Wed, 23 Dec 2015 11:43:59 +0000 (11:43 +0000)]
Merge "update docstring for get_ports_on_host_by_subnet"

8 years agoMerge "XenAPI: Fix netwrap to support security group"
Jenkins [Wed, 23 Dec 2015 03:46:38 +0000 (03:46 +0000)]
Merge "XenAPI: Fix netwrap to support security group"

8 years agoMerge "Force L3 agent to resync router it could not configure"
Jenkins [Wed, 23 Dec 2015 03:46:20 +0000 (03:46 +0000)]
Merge "Force L3 agent to resync router it could not configure"

8 years agoRun functional gate jobs in a constrained environment
armando-migliaccio [Thu, 17 Dec 2015 20:25:32 +0000 (12:25 -0800)]
Run functional gate jobs in a constrained environment

This patch modifies the gate hooks to run jobs with upper constraints.

Change-Id: I9eb1eb8e61381e9bb45678af8a24fa88a99e2c8f

8 years agoupdate docstring for get_ports_on_host_by_subnet
lzklibj [Thu, 17 Dec 2015 04:07:32 +0000 (12:07 +0800)]
update docstring for get_ports_on_host_by_subnet

This patch updates docstring for get_ports_on_host_by_subnet, to
tell that the method will only get dvr serviced ports, not all ports
for given subnet and host.

Change-Id: I85ea5a9e37b6c894f7d51e73c10143b208a29f0e

8 years agoMerge "Updated from global requirements"
Jenkins [Wed, 23 Dec 2015 02:54:31 +0000 (02:54 +0000)]
Merge "Updated from global requirements"

8 years agoCorrect state_path option's help string
YanXingan [Tue, 22 Dec 2015 06:39:47 +0000 (14:39 +0800)]
Correct state_path option's help string

Make it consistent with neutron/common/config.py

Change-Id: If7a57247f65280db9dced69068f8c8f5d7e243d5

8 years agoMerge "Restore _validate_subnet/uuid_list not to break subproject gates"
Jenkins [Wed, 23 Dec 2015 01:50:40 +0000 (01:50 +0000)]
Merge "Restore _validate_subnet/uuid_list not to break subproject gates"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 23 Dec 2015 00:34:19 +0000 (00:34 +0000)]
Updated from global requirements

Change-Id: I3782e12d497174fa30394f7d0e70d944f992d45f

8 years agoMerge "Don't raise if polling manager is running when stopped"
Jenkins [Tue, 22 Dec 2015 21:00:23 +0000 (21:00 +0000)]
Merge "Don't raise if polling manager is running when stopped"

8 years agoMerge "DVR:Fix _notify_l3_agent_new_port for proper arp update"
Jenkins [Tue, 22 Dec 2015 11:14:53 +0000 (11:14 +0000)]
Merge "DVR:Fix _notify_l3_agent_new_port for proper arp update"

8 years agoRestore _validate_subnet/uuid_list not to break subproject gates
Akihiro Motoki [Tue, 22 Dec 2015 10:14:37 +0000 (19:14 +0900)]
Restore _validate_subnet/uuid_list not to break subproject gates

https://review.openstack.org/#/c/258867/ removed
_validate_subnet_list and _validate_uuid_list.
_validate_subnet_list is being used in VPNaaS and VPNaaS gate
is now broken. We need to remove validators more carefully
because subprojects may use them.
This commit restores them once.

Change-Id: I9c40b9d67a8364f698cc9bf604e4e1f4caea413e
Closes-Bug: #1528435

8 years agoMerge "Add abstractmethod to FirewallDriver abstract class"
Jenkins [Tue, 22 Dec 2015 09:45:41 +0000 (09:45 +0000)]
Merge "Add abstractmethod to FirewallDriver abstract class"

8 years agoDelete test_restart_l3_agent_on_sighup
Assaf Muller [Mon, 21 Dec 2015 22:50:36 +0000 (17:50 -0500)]
Delete test_restart_l3_agent_on_sighup

After looking at the test and its scope, it seems like 100% of the
code it tests is owned by oslo.service. That library has its own tests,
is there value in keeping the test in Neutron?

Change-Id: I0d8a22cc8127e183c1f55790f4b04dea2d30d356
Closes-Bug: #1518921

8 years agoMerge "Add functional test for availability_zone support"
Jenkins [Mon, 21 Dec 2015 22:16:07 +0000 (22:16 +0000)]
Merge "Add functional test for availability_zone support"

8 years agoDVR: Remove get_port call from dvr_update_router_addvm
Swaminathan Vasudevan [Fri, 4 Dec 2015 20:44:10 +0000 (12:44 -0800)]
DVR: Remove get_port call from dvr_update_router_addvm

The dvr_update_router_addvm un-necessarily calls the
get_port to retreive the port dict, even though the port
dict is already passed in.

So this patch will remove the get_port call.

Change-Id: Ib893024ef0cf811497f077f5ae9d3965ea19f288

8 years agoMerge "Add notes on loading strategies for ORM relationships"
Jenkins [Mon, 21 Dec 2015 21:31:37 +0000 (21:31 +0000)]
Merge "Add notes on loading strategies for ORM relationships"

8 years agoDVR:Fix _notify_l3_agent_new_port for proper arp update
Swaminathan Vasudevan [Fri, 4 Dec 2015 19:58:57 +0000 (11:58 -0800)]
DVR:Fix _notify_l3_agent_new_port for proper arp update

Now with notifications coming from ml2 plugin on port create
and port update, it is worth fixing the existing _notify_
l3_agent_new_port for proper arp update and router scheduling.

Previously we have been sending arp update and calling router
scheduling for every update notification for service ports,
but now we can take necessary action only when required, since
the fix to update the arp and router scheduling was recently
done by sending the port info for every new port created.

When _notify_l3_agent_port_update is triggered, we check if the
original port host binding exists and if there is a change in
host binding with respect to the new port, then we go ahead and
reschedule the router on the new host and flush the arp entry.

Related-Bug: #1524020

Change-Id: Ifda623d5413b72bf80f38fba5c12a05a88bb7de5