]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "Remove reference to non-existent fullstack fixture"
Jenkins [Fri, 5 Jun 2015 22:02:28 +0000 (22:02 +0000)]
Merge "Remove reference to non-existent fullstack fixture"

9 years agoMerge "Decompose the NCS ML2 Mechanism Driver"
Jenkins [Fri, 5 Jun 2015 21:30:30 +0000 (21:30 +0000)]
Merge "Decompose the NCS ML2 Mechanism Driver"

9 years agoMerge "Add a "light" base test class for DB tests"
Jenkins [Fri, 5 Jun 2015 19:42:53 +0000 (19:42 +0000)]
Merge "Add a "light" base test class for DB tests"

9 years agoMerge "Handle SIGHUP in ovs neutron agent"
Jenkins [Fri, 5 Jun 2015 18:37:34 +0000 (18:37 +0000)]
Merge "Handle SIGHUP in ovs neutron agent"

9 years agoMerge "Start linuxbridge neutron agent using a launcher"
Jenkins [Fri, 5 Jun 2015 18:37:22 +0000 (18:37 +0000)]
Merge "Start linuxbridge neutron agent using a launcher"

9 years agoMerge "Decompose db_base_plugin_v2.py part 2"
Jenkins [Fri, 5 Jun 2015 18:37:10 +0000 (18:37 +0000)]
Merge "Decompose db_base_plugin_v2.py part 2"

9 years agoMerge "Make _val_to_py and _py_to_val not private"
Jenkins [Fri, 5 Jun 2015 18:13:45 +0000 (18:13 +0000)]
Merge "Make _val_to_py and _py_to_val not private"

9 years agoAdd a "light" base test class for DB tests
Salvatore Orlando [Tue, 19 May 2015 16:42:51 +0000 (09:42 -0700)]
Add a "light" base test class for DB tests

This newly added class simply extends DietTestCase
with support for SQL operations.

Related-Blueprint: better-quotas
Change-Id: I2debc6a144ee93155c8e36f06aecb9735dbf55d4

9 years agoMerge "Decompose db_base_plugin_v2.py"
Jenkins [Fri, 5 Jun 2015 17:03:16 +0000 (17:03 +0000)]
Merge "Decompose db_base_plugin_v2.py"

9 years agoMerge "Changes in rally-jobs/README.rst"
Jenkins [Fri, 5 Jun 2015 16:25:53 +0000 (16:25 +0000)]
Merge "Changes in rally-jobs/README.rst"

9 years agoMerge "Add a non-mixin function for model queries"
Jenkins [Fri, 5 Jun 2015 13:02:35 +0000 (13:02 +0000)]
Merge "Add a non-mixin function for model queries"

9 years agoMerge "Run RootHelperProcess always as root"
Jenkins [Fri, 5 Jun 2015 12:26:35 +0000 (12:26 +0000)]
Merge "Run RootHelperProcess always as root"

9 years agoMake _val_to_py and _py_to_val not private
rossella [Fri, 5 Jun 2015 11:09:35 +0000 (13:09 +0200)]
Make _val_to_py and _py_to_val not private

Move _val_to_py and _py_to_val to neutron.agent.ovsdb.api
and remove the underscore since they will be used by other
classes.

Change-Id: I3a469ab3b1c1d83ad20dc6c77f1072fc6d546419

9 years agoDecompose db_base_plugin_v2.py part 2
Pavel Bondar [Fri, 5 Jun 2015 11:01:10 +0000 (14:01 +0300)]
Decompose db_base_plugin_v2.py part 2

This patch contains method moving with minor modifications like updating
class names. IPAM specific methods were moved into ipam_backend_mixin and
ipam_non_pluggable_backend.

ipam_backend_mixin - contains code common for both backends (pluggable and
non-pluggable).

ipam_non_pluggable_backend - contains code specific for non-pluggable
IPAM implementation.

Partially-Implements: blueprint neutron-ipam

Change-Id: I6d68e4066ca472107def197c5a5afccbb6886a0e

9 years agoStart linuxbridge neutron agent using a launcher
Elena Ezhova [Thu, 4 Jun 2015 14:00:13 +0000 (17:00 +0300)]
Start linuxbridge neutron agent using a launcher

This change ports linuxbridge neutron agent on common/service code
that will allow to handle termination signals (SIGHUP, SIGTERM, SIGINT).

Note that this patch allows changing only logging options.
All other config options are not handled explicitly and changing
them using SIGHUP can lead to unpredictable circumstances.
So, until changing other options is handled it is highly recommended
to use SIGHUP for changing ONLY logging options.

DocImpact
Change-Id: I1d834e0683b04111ef04c148cbd8d4acf2964065
Closes-Bug: #1461539

9 years agoHandle SIGHUP in ovs neutron agent
Elena Ezhova [Mon, 1 Jun 2015 11:55:13 +0000 (14:55 +0300)]
Handle SIGHUP in ovs neutron agent

This change allows ovs neutron agent not to die on receiving SIGHUP
and reload its logging options.

Note that this patch allows changing only logging options.
All other config options are not handled explicitly and changing
them using SIGHUP can lead to unpredictable circumstances.
So, until changing other options is handled it is highly recommended
to use SIGHUP for changing ONLY logging options.

Change-Id: Ic0cf8a9ca7f3a16b556a6825e2979471ae136c33
Partial-Bug: #1276694

9 years agoMerge "When disabling dhcp, delete fixed ip properly"
Jenkins [Fri, 5 Jun 2015 00:12:30 +0000 (00:12 +0000)]
Merge "When disabling dhcp, delete fixed ip properly"

9 years agoMerge "Remove hack for sending gratuitous arp from fip ns"
Jenkins [Thu, 4 Jun 2015 22:13:46 +0000 (22:13 +0000)]
Merge "Remove hack for sending gratuitous arp from fip ns"

9 years agoMerge "pylint: enable `duplicate-key` check"
Jenkins [Thu, 4 Jun 2015 22:01:23 +0000 (22:01 +0000)]
Merge "pylint: enable `duplicate-key` check"

9 years agoMerge "Enhance utils.ensure_dir to be resilient to concurrent workers"
Jenkins [Thu, 4 Jun 2015 16:52:47 +0000 (16:52 +0000)]
Merge "Enhance utils.ensure_dir to be resilient to concurrent workers"

9 years agoRun RootHelperProcess always as root
Jakub Libosvar [Wed, 27 May 2015 13:50:22 +0000 (13:50 +0000)]
Run RootHelperProcess always as root

The purpose of RootHelperProcess is to spawn processes running with root
id. Instantiating RootHelperProcess as non-root doesn't make sense. This
also implies NetcatTester always spawns 'netcat' process as root. The
reason why parameter existed here was due to refactor from passing
root_helper all over the place.

Change-Id: If042efcd75e46b66abf4a9e303e633749a1611b1

9 years agoChanges in rally-jobs/README.rst
Alexander Maretskiy [Thu, 4 Jun 2015 13:32:12 +0000 (16:32 +0300)]
Changes in rally-jobs/README.rst

Changes:
  * fix broken links
  * add link to release notes

Change-Id: Ie42b246aac2fd4f6de8cd8bcf28e5ff2906ffd32

9 years agoMerge "test_db_base_plugin_v2: Don't assume the order of fixed_ips"
Jenkins [Thu, 4 Jun 2015 12:08:31 +0000 (12:08 +0000)]
Merge "test_db_base_plugin_v2: Don't assume the order of fixed_ips"

9 years agoMerge "Use a single method to remove an address with its conntrack state"
Jenkins [Thu, 4 Jun 2015 11:54:10 +0000 (11:54 +0000)]
Merge "Use a single method to remove an address with its conntrack state"

9 years agoDecompose the NCS ML2 Mechanism Driver
Henry Gessau [Mon, 1 Jun 2015 18:36:17 +0000 (14:36 -0400)]
Decompose the NCS ML2 Mechanism Driver

The last of the Cisco drivers to decompose.

Closes-bug: #1416713
Co-Authored-By: Nikolay Fedotov <nfedotov@cisco.com>
Change-Id: Icd2b358fb0db3d859ee287225ab8eeb10d7da871

9 years agotest_db_base_plugin_v2: Don't assume the order of fixed_ips
YAMAMOTO Takashi [Wed, 3 Jun 2015 13:21:52 +0000 (22:21 +0900)]
test_db_base_plugin_v2: Don't assume the order of fixed_ips

Fixes test_ip_allocation_for_ipv6_2_subnet_slaac_mode
failures on my environment.

Change-Id: I18a9a177a60c364d79943a8d68b46fde3b9f5d74

9 years agopylint: enable `duplicate-key` check
Angus Lees [Thu, 4 Jun 2015 02:55:02 +0000 (12:55 +1000)]
pylint: enable `duplicate-key` check

This check attempts to detect dictionary literals with duplicate keys.

The rest of the Neutron tree has already had the few instances of this
cleaned[1] or moved into external vendor repos.  Enabling the pylint
check will stop future occurrences.

[1] I29cd2b843a7905986de13a1ecfba0cb5797ccaf8

(Original patch I1aa221d2019853f905f2b8421dd45b0a3102baf0 by zhiyuan_cai)

Change-Id: If4fed9714cd7fa586845f21f8f56dde2645cc5e0
Co-Authored-By: zhiyuan_cai <luckyvega.g@gmail.com>
9 years agoMerge "Add sub-project lieutenants"
Jenkins [Wed, 3 Jun 2015 23:10:23 +0000 (23:10 +0000)]
Merge "Add sub-project lieutenants"

9 years agoMerge "Refactor type_tunnel/gre/vxlan to reduce duplicate code"
Jenkins [Wed, 3 Jun 2015 23:10:11 +0000 (23:10 +0000)]
Merge "Refactor type_tunnel/gre/vxlan to reduce duplicate code"

9 years agoMerge "Make MockFixedIntervalLoopingCall class as a helper class"
Jenkins [Wed, 3 Jun 2015 18:52:10 +0000 (18:52 +0000)]
Merge "Make MockFixedIntervalLoopingCall class as a helper class"

9 years agoRemove reference to non-existent fullstack fixture
Assaf Muller [Wed, 3 Jun 2015 17:50:57 +0000 (13:50 -0400)]
Remove reference to non-existent fullstack fixture

EnvironmentFixture doesn't actually exist, and environment
should be a mandatory parameter.

Change-Id: I5598e176f297bcfa3b2cab188b4b446ce18d54ab

9 years agoMerge "Move full-stack logs post-tests"
Jenkins [Wed, 3 Jun 2015 17:34:55 +0000 (17:34 +0000)]
Merge "Move full-stack logs post-tests"

9 years agoEnhance utils.ensure_dir to be resilient to concurrent workers
Carl Baldwin [Wed, 3 Jun 2015 16:56:23 +0000 (16:56 +0000)]
Enhance utils.ensure_dir to be resilient to concurrent workers

In rare cases, concurrent workers may attempt to ensure a directory
exists.  One may successfully create the directory while the other
gets an oserror that it already exists.  This patch detects the
problem and returns successfully in both cases.

Change-Id: I224be69168ede8a496a5f7d59b04b722f4de7192

9 years agoMerge "Fix confusing parameters names"
Jenkins [Wed, 3 Jun 2015 16:10:06 +0000 (16:10 +0000)]
Merge "Fix confusing parameters names"

9 years agoMerge "Wrap ML2 delete_port with db retry decorator"
Jenkins [Wed, 3 Jun 2015 15:50:11 +0000 (15:50 +0000)]
Merge "Wrap ML2 delete_port with db retry decorator"

9 years agoMerge "Remove extra indent in testcases"
Jenkins [Wed, 3 Jun 2015 15:19:28 +0000 (15:19 +0000)]
Merge "Remove extra indent in testcases"

9 years agoMerge "Python3: use six.iteritems() instead of dict.iteritems()"
Jenkins [Wed, 3 Jun 2015 15:17:08 +0000 (15:17 +0000)]
Merge "Python3: use six.iteritems() instead of dict.iteritems()"

9 years agoUse a single method to remove an address with its conntrack state
Carl Baldwin [Wed, 27 May 2015 20:12:27 +0000 (20:12 +0000)]
Use a single method to remove an address with its conntrack state

I just noticed a pattern and I thought I'd throw this up for
discussion.  It has occurred to me that this addition sort of breaks
the ip_lib paradigm of wrapping ip commands without any additional
useful abstraction.  Any better ideas?

Change-Id: Ibd34bf4a721c153aca916e294e58adb4a28379e4

9 years agoDecompose db_base_plugin_v2.py
Pavel Bondar [Wed, 3 Jun 2015 11:22:29 +0000 (14:22 +0300)]
Decompose db_base_plugin_v2.py

Moved private getters and simple helpers into db_base_plugin_common.
This change is part of bigger refactoring for supporting Pluggable IPAM.
Main purpose is to make getters accessible by IPAM code.

Partially-Implements: blueprint neutron-ipam

Change-Id: I1eac61c258541bca80e14be4b7c75519a014ffae

9 years agoAdd sub-project lieutenants
Russell Bryant [Tue, 2 Jun 2015 19:20:44 +0000 (15:20 -0400)]
Add sub-project lieutenants

A recent patch added the concept of Lieutenants for Neutron.  This
same concept makes a lot of sense for identifying clear points of
contact for the various sub-projects under the Neutron tent.  This
patch adds a table of the projects currently approved as part of
Neutron in the governance repo.  I also made a guess on who the
lieutenant would be based on reviews in stackalytics (except for ones
that weren't in stackalytics).

Change-Id: Ibce5d6ba5e19dec59a10c88749557509136c4e41
Signed-off-by: Russell Bryant <rbryant@redhat.com>
9 years agoFix confusing parameters names
Oleg Bondarev [Wed, 3 Jun 2015 12:38:50 +0000 (15:38 +0300)]
Fix confusing parameters names

Change-Id: Ib00135e1d0b8f334d660de9a80629e084efb13ba

9 years agoExtra indent in test_ovs_neutron_agent
Aman Kumar [Wed, 3 Jun 2015 12:15:25 +0000 (05:15 -0700)]
Extra indent in test_ovs_neutron_agent

This patch removes extra indent errors from test_ovs_neutron_agent

Change-Id: I1270cca3699b7874047f7812710f2611cc465493

9 years agoMerge "Catch broad exception in methods used in FixedIntervalLoopingCall"
Jenkins [Wed, 3 Jun 2015 10:05:42 +0000 (10:05 +0000)]
Merge "Catch broad exception in methods used in FixedIntervalLoopingCall"

9 years agoMerge "Revert "Add VIF_DELETED notification event to Nova""
Jenkins [Wed, 3 Jun 2015 08:39:54 +0000 (08:39 +0000)]
Merge "Revert "Add VIF_DELETED notification event to Nova""

9 years agoMake MockFixedIntervalLoopingCall class as a helper class
Aman Kumar [Wed, 3 Jun 2015 06:49:40 +0000 (23:49 -0700)]
Make MockFixedIntervalLoopingCall class as a helper class

MockFixedIntervalLoopingCall class is used in both the classes
TestOvsNeutronAgent and TestOvsDvrNeutronAgent.

This patch removes the MockFixedIntervalLoopingCall from both the
places and make it as a helper class in test_ovs_neutron_agent.py.
So that it will be used everywhere in test_ovs_neutron_agent.py.

Change-Id: I5e0803436e91b4f20ec03209e9e799a68df4eaf4

9 years agoRevert "Add VIF_DELETED notification event to Nova"
Kevin Benton [Wed, 3 Jun 2015 05:52:51 +0000 (05:52 +0000)]
Revert "Add VIF_DELETED notification event to Nova"

We need to wait until the nova support is added in
I998b6bb80cc0a81d665b61b8c4a424d7219c666f. Otherwise
this generates a ton of error messages in the nova api
log as well as on the neutron side.

This reverts commit 0ace88fd4a75ff213dc36fd16c1f8e7080ab7d6d.

Change-Id: I129c4e4c05cf07d45032fec6f57e0cc17a5a82af
Closes-Bug: #1461391

9 years agoWrap ML2 delete_port with db retry decorator
Oleg Bondarev [Wed, 6 May 2015 09:50:11 +0000 (12:50 +0300)]
Wrap ML2 delete_port with db retry decorator

ML2 delete_port operation currently involves locking ports
and bindings tables which may lead to DBDeadlock errors in certain
cases when several ports are deleted concurrently.
That may happen due to specifics of Galera working in active-active
mode: it may throw deadlock errors when it fails to validate
a change with other members of the cluster.
The fix adds retries to delete port operation to overcome such
deadlocks

Closes-Bug: #1422504
Change-Id: I684691d59c5ac370d74314c3c91857dc709b2d9b

9 years agoMerge "Check for 'removed' in port_info before reference"
Jenkins [Wed, 3 Jun 2015 02:11:42 +0000 (02:11 +0000)]
Merge "Check for 'removed' in port_info before reference"

9 years agoRemove extra indent in testcases
Aaron Rosen [Wed, 3 Jun 2015 00:34:48 +0000 (17:34 -0700)]
Remove extra indent in testcases

Change-Id: I42cb044d75d53eab7ba180954589c718374857ee

9 years agoMerge "Add route to metadata IP by default"
Jenkins [Wed, 3 Jun 2015 00:16:51 +0000 (00:16 +0000)]
Merge "Add route to metadata IP by default"

9 years agoCheck for 'removed' in port_info before reference
Kevin Benton [Tue, 2 Jun 2015 23:52:14 +0000 (16:52 -0700)]
Check for 'removed' in port_info before reference

scan_ports can return early on no changes, in which case
'removed' won't be present in the dict. The deleted_ports
logic wasn't setup to handle that.

This patch checks for the key before trying to reference it.

Change-Id: I0e2c6d76515ad8e2a2addc8d40451ac003a150f7
Closes-Bug: #1461325

9 years agoCatch broad exception in methods used in FixedIntervalLoopingCall
Eugene Nikanorov [Tue, 26 May 2015 16:17:20 +0000 (20:17 +0400)]
Catch broad exception in methods used in FixedIntervalLoopingCall

Unlike other places where it might make sense to catch specific
exceptions, methods that are used to check L3 and DHCP agents
liveness via FixedIntervalLoopingCall should never allow exceptions
to leak to calling method and interrupt the loop.

Further improvement of FixedIntervalLoopingCall might be needed,
but for the sake of easy backporting it makes sense to fix the issue
in neutron before pushing refactoring to 3rd-party library.

Change-Id: I6a61e99a6f4e445e26ea4a9923b47e35559e5703
Closes-Bug: #1458119

9 years agoMerge "Add devref that explains fullstack testing and its direction"
Jenkins [Tue, 2 Jun 2015 22:48:29 +0000 (22:48 +0000)]
Merge "Add devref that explains fullstack testing and its direction"

9 years agoMerge "Add VIF_DELETED notification event to Nova"
Jenkins [Tue, 2 Jun 2015 22:33:42 +0000 (22:33 +0000)]
Merge "Add VIF_DELETED notification event to Nova"

9 years agoAdd devref that explains fullstack testing and its direction
Assaf Muller [Tue, 2 Jun 2015 16:21:11 +0000 (12:21 -0400)]
Add devref that explains fullstack testing and its direction

The goal of this doc is to communicate what are full stack tests,
how they benefit you and when would you write such a test.

Additionally I'd like to communicate the way forward, and gather
feedback about any areas in the code that can benefit from full
stack tests, and any additional thoughts!

Change-Id: Ifd4ff9be0ed0184a49df6566d238c31a328cd23f

9 years agoMerge "Modify ipset functional tests to pass on older machines"
Jenkins [Tue, 2 Jun 2015 19:42:49 +0000 (19:42 +0000)]
Merge "Modify ipset functional tests to pass on older machines"

9 years agoMerge "Remove unused _uuid function alias from test_iptables.py"
Jenkins [Tue, 2 Jun 2015 18:05:45 +0000 (18:05 +0000)]
Merge "Remove unused _uuid function alias from test_iptables.py"

9 years agoMerge "Remove get_dhcp_port RPC method"
Jenkins [Tue, 2 Jun 2015 17:04:00 +0000 (17:04 +0000)]
Merge "Remove get_dhcp_port RPC method"

9 years agoMerge "Don't delete port from bridge on delete_port event"
Jenkins [Tue, 2 Jun 2015 17:02:33 +0000 (17:02 +0000)]
Merge "Don't delete port from bridge on delete_port event"

9 years agoMerge "Don't update floating IP status if no change"
Jenkins [Tue, 2 Jun 2015 16:39:01 +0000 (16:39 +0000)]
Merge "Don't update floating IP status if no change"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 2 Jun 2015 15:06:34 +0000 (15:06 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Update rootwrap.conf to add /usr/local/bin"
Jenkins [Tue, 2 Jun 2015 15:02:22 +0000 (15:02 +0000)]
Merge "Update rootwrap.conf to add /usr/local/bin"

9 years agoRemove get_dhcp_port RPC method
Assaf Muller [Mon, 1 Jun 2015 21:05:56 +0000 (17:05 -0400)]
Remove get_dhcp_port RPC method

This method was last used in Icehouse.  I think we can safely
remove all of its code and tests. Icehouse to Liberty rolling
upgrades are in no way expected to work so I just bumped
the RPC version and removed all traces of the code.

Change-Id: Ia545c5be7da80c919ad5bae6074bc1cc3aa89fa0
Closes-Bug: #1314534

9 years agoMerge "Move pool dispose() before os.fork"
Jenkins [Tue, 2 Jun 2015 08:17:55 +0000 (08:17 +0000)]
Merge "Move pool dispose() before os.fork"

9 years agoRefactor type_tunnel/gre/vxlan to reduce duplicate code
Cedric Brandily [Sat, 30 May 2015 18:41:29 +0000 (20:41 +0200)]
Refactor type_tunnel/gre/vxlan to reduce duplicate code

gre and vxlan type drivers have similar implementations for multiple
methods:
* get_endpoint_by_host
* get_endpoint_by_ip
* delete_endpoint
* get_endpoints
* add_endpoint

This change abstracts these methods and moves the abstractions to the
new class EndpointTunnelTypeDriver.

Change-Id: Iab97f8283b6bf5586334958de950664f6e74202a

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 2 Jun 2015 06:15:35 +0000 (06:15 +0000)]
Imported Translations from Transifex

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

Change-Id: Iadf5c59306dd4f8ce574a2d7259bd6a03d60a72a

9 years agoUpdate rootwrap.conf to add /usr/local/bin
Gal Sagie [Tue, 2 Jun 2015 05:49:10 +0000 (08:49 +0300)]
Update rootwrap.conf to add /usr/local/bin

When working with OVN i found on Fedora 21 that
my ovs-vsctl is installed in /usr/local/bin, since this wasnt in
rootwrap DHCP didnt work properly.
This change adds it to rootwrap

Change-Id: Ib3646933744ca6b20ecd5ad0cedcedb4f1fa5f12

9 years agoAdd route to metadata IP by default
Eugene Nikanorov [Tue, 2 Jun 2015 02:15:39 +0000 (06:15 +0400)]
Add route to metadata IP by default

Windows VMs try to resolve metadata ip 169.254.169.254 as
local address by default, which results in very slow access
to metadata url during boot.
Injecting direct route to metadata ip through a subnet's default
gateway helps Windows to avoid wasting time on mac resolution.

So this patch injects host route for metadata ip for networks plugged
into a router.

Closes-Bug: #1460793

Change-Id: Ic991f9d7f9a8cf942e3e29f2da03d73c0f26470a

9 years agoMerge "test_ovs_neutron_agent: Remove unnecessary mocking"
Jenkins [Tue, 2 Jun 2015 00:41:23 +0000 (00:41 +0000)]
Merge "test_ovs_neutron_agent: Remove unnecessary mocking"

9 years agoMerge "Refactor type_gre.vxlan tests to reduce duplicate code"
Jenkins [Tue, 2 Jun 2015 00:41:12 +0000 (00:41 +0000)]
Merge "Refactor type_gre.vxlan tests to reduce duplicate code"

9 years agoMerge "Add use_slave DB api support"
Jenkins [Tue, 2 Jun 2015 00:32:37 +0000 (00:32 +0000)]
Merge "Add use_slave DB api support"

9 years agoMerge "Implement IPAM Driver loader"
Jenkins [Mon, 1 Jun 2015 23:29:35 +0000 (23:29 +0000)]
Merge "Implement IPAM Driver loader"

9 years agoPython3: use six.iteritems() instead of dict.iteritems()
Cyril Roelandt [Mon, 1 Jun 2015 20:53:46 +0000 (20:53 +0000)]
Python3: use six.iteritems() instead of dict.iteritems()

This also adds a check to neutron/hacking/checks.py that should catch this
error in the future.

Blueprint: neutron-python3
Change-Id: Ie7b833ffa173772d39b85ee3ecaddace18e1274f

9 years agoModify ipset functional tests to pass on older machines
Assaf Muller [Fri, 29 May 2015 23:17:34 +0000 (19:17 -0400)]
Modify ipset functional tests to pass on older machines

Production code uses ipset exclusively in the root namespace,
however functional testing uses ipset in namespace for isolation.
This poses an issue as ipset is not supported in namespaces on
all kernels and distributions (I'm looking at you CentOS/RHEL 7.1).

This patch changes the ipset functional tests to work in the root
namespace while taking care of cleanups.

Change-Id: I08b2f59197ed76e59b2e58b5a10820653e857cda
Closes-Bug: #1460220

9 years agoAdd a non-mixin function for model queries
Salvatore Orlando [Tue, 19 May 2015 16:27:14 +0000 (09:27 -0700)]
Add a non-mixin function for model queries

This patch simply adds a version of model_query in
neutron.db.common_db_mixin which can be invoked without
having to declare a class which inherits the mixin.

To this aim, model_query_scope has been refactored as well.
As the model query function being introduced in this patch
cannot use model query hooks (and does not need to), the
method was re-implemented rather than bringing out of the
mixin as it has been done for model_query_scope.

This change will allow for developing DB APIs without
having to use the baseDB/mixin classes models used so far.

Related-Blueprint: better-quotas

Change-Id: I7a79980f626e9eaf2775711c8a25f508067e5716

9 years agoMerge "Create bridges in ovsdb monitor functional tests"
Jenkins [Mon, 1 Jun 2015 17:08:42 +0000 (17:08 +0000)]
Merge "Create bridges in ovsdb monitor functional tests"

9 years agoMerge "Use accessors instead of private attributes for Ml2 plugin"
Jenkins [Mon, 1 Jun 2015 17:08:17 +0000 (17:08 +0000)]
Merge "Use accessors instead of private attributes for Ml2 plugin"

9 years agoMerge "OVS-agent: Remove optional flags from br_tun.deferred() method"
Jenkins [Mon, 1 Jun 2015 17:08:05 +0000 (17:08 +0000)]
Merge "OVS-agent: Remove optional flags from br_tun.deferred() method"

9 years agoImplement IPAM Driver loader
Pavel Bondar [Thu, 15 Jan 2015 12:00:02 +0000 (15:00 +0300)]
Implement IPAM Driver loader

IPAM Driver is loaded based on value of 'ipam_driver'.
Added new variable 'ipam_driver' in config.

DocImpact
Partially-Implements: blueprint neutron-ipam

Change-Id: Ia52ad70ef4f0b02cf82cfefcf50b9f1e30b05b79

9 years agoRemove comment about hash seed in tox.ini
Elena Ezhova [Mon, 1 Jun 2015 09:58:32 +0000 (12:58 +0300)]
Remove comment about hash seed in tox.ini

Enable random hash seeds change [1] has merged so the comment
can be safely removed.

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

Change-Id: I93f64841792f9c38f5121ca47c130ad769c11dc4

9 years agoRemove unused _uuid function alias from test_iptables.py
Henry Gessau [Sun, 31 May 2015 18:51:50 +0000 (14:51 -0400)]
Remove unused _uuid function alias from test_iptables.py

Change-Id: If80de5ee6588ffd2338387e6592cf2812b106e1f

9 years agoMerge "Enable random hash seeds"
Jenkins [Sun, 31 May 2015 14:49:34 +0000 (14:49 +0000)]
Merge "Enable random hash seeds"

9 years agoMerge "Removed duplicate keys in dicts in test"
Jenkins [Sun, 31 May 2015 14:47:44 +0000 (14:47 +0000)]
Merge "Removed duplicate keys in dicts in test"

9 years agotest_ovs_neutron_agent: Remove unnecessary mocking
YAMAMOTO Takashi [Fri, 29 May 2015 06:00:45 +0000 (15:00 +0900)]
test_ovs_neutron_agent: Remove unnecessary mocking

Leftover from change I90b4d2485e3e491f496dfb7bdee03d57f393be35.

Change-Id: Ia2596718678d3102ad99acbdf30be7ef0f52ad27

9 years agoRefactor type_gre.vxlan tests to reduce duplicate code
Cedric Brandily [Sat, 30 May 2015 20:04:59 +0000 (22:04 +0200)]
Refactor type_gre.vxlan tests to reduce duplicate code

gre and vxlan type drivers unittests have similar tests. This change
abstracts these tests and moves them to TunnelTypeTestMixin[1].

[1] neutron.tests.unit.plugins.ml2.drivers.base_type_tunnel

Change-Id: I13b0507991e840ff34de7ed7ffd31d359691b0ca

9 years agoMerge "Improve test_set_members_deleting_less_than_5"
Jenkins [Sat, 30 May 2015 20:04:02 +0000 (20:04 +0000)]
Merge "Improve test_set_members_deleting_less_than_5"

9 years agoMerge "Fix formatting of core-reviewers doc"
Jenkins [Sat, 30 May 2015 15:18:32 +0000 (15:18 +0000)]
Merge "Fix formatting of core-reviewers doc"

9 years agoMerge "Get completely rid of contextlib.nested"
Jenkins [Sat, 30 May 2015 15:18:16 +0000 (15:18 +0000)]
Merge "Get completely rid of contextlib.nested"

9 years agoMerge "Fix indentation errors in tests"
Jenkins [Sat, 30 May 2015 14:48:57 +0000 (14:48 +0000)]
Merge "Fix indentation errors in tests"

9 years agoRemoved duplicate keys in dicts in test
Alexander Ignatov [Fri, 29 May 2015 21:49:31 +0000 (00:49 +0300)]
Removed duplicate keys in dicts in test

Test test_create_security_group_rule_invalid_ethertype_for_prefix
contained dict with duplicate keys, remote ip prefixes.

Test was successful because incorrect items for tests were overwitten:

'192.168.1.1/24': 'ipv4'  by '192.168.1.1/24': 'IPv6'
'2001:db8:1234::/48': 'ipv6' by '2001:db8:1234::/48': 'IPv4'

This patch removes incorrect and useless items for tests.
Also added additional item with invalid ethertype.

Change-Id: I29cd2b843a7905986de13a1ecfba0cb5797ccaf8

9 years agoDon't update floating IP status if no change
Kevin Benton [Fri, 17 Apr 2015 11:03:38 +0000 (04:03 -0700)]
Don't update floating IP status if no change

The floating IP status was going through all of the
status update code every time the L3 agent sent in
an update, even if the status didn't change.

This patch skips sending updates to the server if the
agent doesn't change the status.

Change-Id: Ic3736bed3dc3e4ccb91f4acfabbf033949e09ce0
Partial-Bug: #1445412

9 years agoDon't delete port from bridge on delete_port event
Kevin Benton [Fri, 1 May 2015 00:14:44 +0000 (17:14 -0700)]
Don't delete port from bridge on delete_port event

Commit d6a55c17360d1aa8ca91849199987ae71e8600ee added
logic to the OVS agent to delete a port from the integration
bridge when a port was deleted on the Neutron side. However,
this led to several races where whoever created the initial
port (e.g. Nova, L3 agent, DHCP agent) would be trying to
remove the port from the bridge at the same time. These
would result in ugly exceptions on one side or the other.

The original commit was trying to address the problem where
the port would maintain connectivity even though it was removed
from the integration bridge.

This patch addresses both cases by removing the iptables rules
for the deleted port and putting it in the dead VLAN so it loses
connectivity. However, it still leaves the port attached to the
integration bridge so the original creator can delete it.

Related-Bug: #1333365
Closes-Bug: #1448148
Change-Id: I7ae7750b7ac7d15325ed9f2d517ca171543b53be

9 years agoMerge "Addressing follow up comments for OVS_LIB fail_mode setting API"
Jenkins [Sat, 30 May 2015 02:10:31 +0000 (02:10 +0000)]
Merge "Addressing follow up comments for OVS_LIB fail_mode setting API"

9 years agoEnable random hash seeds
Cedric Brandily [Tue, 26 May 2015 12:29:15 +0000 (14:29 +0200)]
Enable random hash seeds

Neutron tests have been updated in order to support random hash seed. It
allows to remove PYTHONHASHSEED=0 in tox.ini and remove hashtest tox
environment.

Closes-Bug: #1348818
Change-Id: I1063304dda887eb82c0de8516d5a483fa8943fc1
Depends-On: I8408365825ec1e97a83c2181f38ec1f9468df91e
Depends-On: I1b2bd4100c19004f12822c414aefc86aae9849db
Depends-On: I5077764045a34d1be0e85bb4b80f3655e87692cc

9 years agoFix formatting of core-reviewers doc
Joe Gordon [Fri, 29 May 2015 21:28:34 +0000 (14:28 -0700)]
Fix formatting of core-reviewers doc

Fix some RST formatting issues with the core-reviewers policy document.

When reading the RST rendered version of that document at
http://docs.openstack.org/developer/neutron/policies/core-reviewers.html
I noticed a few rendering issues where were bothering me, so I fixed
them.

Change-Id: Ic6eedc2bb18f6bbb6424542dbf4a88ed52ebea1d

9 years agoMerge "Use os._exit after forking"
Jenkins [Fri, 29 May 2015 21:28:08 +0000 (21:28 +0000)]
Merge "Use os._exit after forking"

9 years agoMerge "Cleanup stale metadata processes on l3 agent sync"
Jenkins [Fri, 29 May 2015 21:26:38 +0000 (21:26 +0000)]
Merge "Cleanup stale metadata processes on l3 agent sync"

9 years agoGet completely rid of contextlib.nested
Adrien Vergé [Fri, 29 May 2015 20:54:33 +0000 (22:54 +0200)]
Get completely rid of contextlib.nested

`contextlib.nested` is deprecated since Python 2.7 and incompatible with
Python 3. This patch removes all its occurences by using the helper
script at [1].

This is a necessary step to allow us running all unit tests with
Python 3 (not just a small subset as it is done now).

[1]: https://github.com/adrienverge/context_unnester

Change-Id: I8d1de09ff38ed0af9fb56f423a2c43476408e0fb
Blueprint: neutron-python3
Closes-Bug: #1428424

9 years agoFix indentation errors in tests
Adrien Vergé [Mon, 25 May 2015 16:46:03 +0000 (18:46 +0200)]
Fix indentation errors in tests

They are some missing/extra indentations in tests source code. This
results in variables used out their scope (which remains unnoticed as
long as `with` contexts do not fail), and prevent refactoring scripts
(such as the one for getting rid of `contextlib.nested` [1]) from
performing well.

This simple patch fixes these indentation errors.

[1]: See change I8d1de09ff38ed0af9fb56f423a2c43476408e0fb

Change-Id: Icef34c7755e0d96c4c5ee85982de86d0ccc196c7
Related-Blueprint: neutron-python3

9 years agoMerge "Sort _get_new/deleted_set_ips responses in unittests"
Jenkins [Fri, 29 May 2015 21:00:29 +0000 (21:00 +0000)]
Merge "Sort _get_new/deleted_set_ips responses in unittests"