]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoDrop the ovs_lib compat layer as per TODO note
armando-migliaccio [Thu, 16 Apr 2015 01:20:51 +0000 (18:20 -0700)]
Drop the ovs_lib compat layer as per TODO note

Breakage documented in [1]

[1] https://wiki.openstack.org/wiki/Neutron/LibraryAPIBreakage

Change-Id: I41820faf8ef7fd00cf864da6f1a63ccb79c25fd8

9 years agoMerge "Use 'port' instead of 'ports' to reference port from IPAllocation"
Jenkins [Wed, 15 Apr 2015 16:35:08 +0000 (16:35 +0000)]
Merge "Use 'port' instead of 'ports' to reference port from IPAllocation"

9 years agoMerge "OOP cleanup: start protected method names with underscore"
Jenkins [Wed, 15 Apr 2015 16:28:49 +0000 (16:28 +0000)]
Merge "OOP cleanup: start protected method names with underscore"

9 years agoMerge "Some cleanup in L3 HA code"
Jenkins [Wed, 15 Apr 2015 15:24:14 +0000 (15:24 +0000)]
Merge "Some cleanup in L3 HA code"

9 years agoMerge "Pass correct port ID back to RPC caller"
Jenkins [Wed, 15 Apr 2015 09:42:47 +0000 (09:42 +0000)]
Merge "Pass correct port ID back to RPC caller"

9 years agoUse 'port' instead of 'ports' to reference port from IPAllocation
Oleg Bondarev [Fri, 10 Apr 2015 09:03:09 +0000 (12:03 +0300)]
Use 'port' instead of 'ports' to reference port from IPAllocation

'ports' is just confusing as IPAllocation can be associated
with only one port.

Closes-Bug: #1442527
Change-Id: I36bfa65956f54e4b290bb7568499a47eca7c126f

9 years agoMerge "Adds DVR functional test for multi-external networks"
Jenkins [Wed, 15 Apr 2015 05:25:19 +0000 (05:25 +0000)]
Merge "Adds DVR functional test for multi-external networks"

9 years agoMerge "Fix formatting errors in TESTING.rst"
Jenkins [Wed, 15 Apr 2015 00:48:54 +0000 (00:48 +0000)]
Merge "Fix formatting errors in TESTING.rst"

9 years agoMerge "Fix intermittent ipset_manager test failure"
Jenkins [Wed, 15 Apr 2015 00:40:46 +0000 (00:40 +0000)]
Merge "Fix intermittent ipset_manager test failure"

9 years agoMerge "Enable ARP spoofing prevention by default"
Jenkins [Wed, 15 Apr 2015 00:36:38 +0000 (00:36 +0000)]
Merge "Enable ARP spoofing prevention by default"

9 years agoFix formatting errors in TESTING.rst
armando-migliaccio [Tue, 14 Apr 2015 21:41:45 +0000 (14:41 -0700)]
Fix formatting errors in TESTING.rst

There were a few errors that went undetected.

TESTING.rst:266: SEVERE: Title level inconsistent:
TESTING.rst:67: ERROR: Unknown target name: "test".
TESTING.rst:74: ERROR: Unknown target name: "test".

Change-Id: Iad225e95c23b7460d228ba5447f4a361aa68d5dc

9 years agoMerge "Avoid synchronizing session when deleting networkdhcpagentbinding"
Jenkins [Tue, 14 Apr 2015 21:40:31 +0000 (21:40 +0000)]
Merge "Avoid synchronizing session when deleting networkdhcpagentbinding"

9 years agoMerge "context: reuse base oslo.context class for to_dict()"
Jenkins [Tue, 14 Apr 2015 20:24:50 +0000 (20:24 +0000)]
Merge "context: reuse base oslo.context class for to_dict()"

9 years agoMerge "Fix the ImportErrors in l3 and dhcp scheduler functional tests"
Jenkins [Tue, 14 Apr 2015 19:29:28 +0000 (19:29 +0000)]
Merge "Fix the ImportErrors in l3 and dhcp scheduler functional tests"

9 years agoMerge "Move iptables and ipset config registration into modules"
Jenkins [Tue, 14 Apr 2015 19:29:17 +0000 (19:29 +0000)]
Merge "Move iptables and ipset config registration into modules"

9 years agoMerge "Sync service from oslo-incubator"
Jenkins [Tue, 14 Apr 2015 19:12:24 +0000 (19:12 +0000)]
Merge "Sync service from oslo-incubator"

9 years agoPass correct port ID back to RPC caller
Kevin Benton [Mon, 30 Mar 2015 18:49:40 +0000 (11:49 -0700)]
Pass correct port ID back to RPC caller

The previous response to get_device_details calls was returning
whatever the caller requested as the port_id in the response.
This was only correct in the case where the port_id was used
directly. In cases where device names were passed in, there was
no way to retrieve the full port ID.

This corrects that behavior by using the port ID from the database
and adds tests to ensure the behavior remains correct.

Closes-Bug: #1443714
Change-Id: Ibfc7b6659a29e892dfe6e83bd9340feb40e920dd

9 years agoMerge "Add clock sync error detection on agent registration"
Jenkins [Tue, 14 Apr 2015 18:34:09 +0000 (18:34 +0000)]
Merge "Add clock sync error detection on agent registration"

9 years agoFix intermittent ipset_manager test failure
Brian Haley [Thu, 9 Apr 2015 21:48:40 +0000 (17:48 -0400)]
Fix intermittent ipset_manager test failure

Change ipset_manager _refresh_set() to make a copy of the list of
IPs when creating a set, instead of using a reference, else any
change to the set could update the caller's data.

Also made the IpsetManagerTestCase classes always pass maxelem and
hashsize to the parent class.

Change-Id: I45fc716ab0952b80363b0c7dabae29cda05604dc
Closes-bug: #1442377

9 years agoMerge "allow OVSDB connection schema to be configurable"
Jenkins [Tue, 14 Apr 2015 06:40:14 +0000 (06:40 +0000)]
Merge "allow OVSDB connection schema to be configurable"

9 years agoAdd clock sync error detection on agent registration
Sudipta Biswas [Wed, 18 Mar 2015 18:05:57 +0000 (23:35 +0530)]
Add clock sync error detection on agent registration

For the server to determine if an agent is alive or not,
it depends on the agent's clock being mostly in sync with the server
clock. The neutron-server may reject and return the request if
there's a timestamp difference between the two nodes. Currently
there's no good way to detect this condition from the agent code.

This fix will improve the error handling
logic by writing an appropriate log in the neutron server's log
file for an early detection of the problem.

Change-Id: If884f90c4b1786cfc63d3e2ff2d66f92122258c2
Closes-Bug: #1432582

9 years agoMerge "l3_rpc: Fix a comment typo"
Jenkins [Mon, 13 Apr 2015 23:24:53 +0000 (23:24 +0000)]
Merge "l3_rpc: Fix a comment typo"

9 years agoMerge "Add OVSDB connection as a parameter to the transaction"
Jenkins [Mon, 13 Apr 2015 20:52:42 +0000 (20:52 +0000)]
Merge "Add OVSDB connection as a parameter to the transaction"

9 years agoMerge "Move values for network_type to plugins.common.constants.py"
Jenkins [Mon, 13 Apr 2015 20:09:06 +0000 (20:09 +0000)]
Merge "Move values for network_type to plugins.common.constants.py"

9 years agoFix the ImportErrors in l3 and dhcp scheduler functional tests
Numan Siddique [Mon, 13 Apr 2015 15:22:33 +0000 (20:52 +0530)]
Fix the ImportErrors in l3 and dhcp scheduler functional tests

Change-Id: I5b8746d37173869f78a9c23834f10d630d2a36cd
Closes-bug: #1443480

9 years agoMerge "Fix native OVSDB db_get handling for UUID columns"
Jenkins [Mon, 13 Apr 2015 15:18:17 +0000 (15:18 +0000)]
Merge "Fix native OVSDB db_get handling for UUID columns"

9 years agoMerge "Additions to TESTING.rst"
Jenkins [Mon, 13 Apr 2015 12:20:48 +0000 (12:20 +0000)]
Merge "Additions to TESTING.rst"

9 years agoMerge "Removed ml2_conf_odl.ini config file"
Jenkins [Mon, 13 Apr 2015 12:01:37 +0000 (12:01 +0000)]
Merge "Removed ml2_conf_odl.ini config file"

9 years agoAdditions to TESTING.rst
Gal Sagie [Mon, 13 Apr 2015 06:41:17 +0000 (09:41 +0300)]
Additions to TESTING.rst

Small addition on how to run pep8 tests only for latest
patch set.

Change-Id: I07fa2c633d17acd1284ccd726a99a46414100ba3

9 years agoMerge "Handle race condition on subnet-delete"
Jenkins [Mon, 13 Apr 2015 11:08:02 +0000 (11:08 +0000)]
Merge "Handle race condition on subnet-delete"

9 years agoHandle race condition on subnet-delete
Eugene Nikanorov [Wed, 8 Apr 2015 22:16:18 +0000 (01:16 +0300)]
Handle race condition on subnet-delete

This fix targets quite rare case of race condition between
port creation and subnet deletion. This usually happens
during API tests that do things quickly.
DHCP port is being created after delete_subnet checks for
DHCP ports, but before it checks for IPAllocations on subnet.
The solution is to apply retrying logic, which is really necessary
as we can't fetch new IPAllocations with the same query and within
the active transaction in mysql because of REPEATABLE READ
transaction isolation.

Change-Id: Ib9da018e654cdee3b64aa38de90f171c92ee28ee
Closes-Bug: 1357055

9 years agoMove values for network_type to plugins.common.constants.py
Romil Gupta [Mon, 23 Mar 2015 15:05:41 +0000 (08:05 -0700)]
Move values for network_type to plugins.common.constants.py

It is quite confusing to have values for network type in common.constants.py
instead of having in plugins.common.constants.py.

Currently, the plugins/common/constants.py consists network_type constants
like VLAN, VXLAN, GRE etc. but values for network type like ranges
are defined in common.constants.py which is not good, it is better to have
both things at the same place.

This patch set addresses the same.

Moved out few methods which are predominantly used in plugins
from common.utils.py to plugins.common.utils.py.

Removed constants which were used in neutron-fwaas from
plugins.common.constants.py: https://review.openstack.org/#/c/168709/

Closes-Bug: #1441043

Change-Id: Iecfb15c541ed5d3cce95ba48f072af7fa60ac6f1

9 years agoallow OVSDB connection schema to be configurable
Gal Sagie [Mon, 6 Apr 2015 13:11:23 +0000 (16:11 +0300)]
allow OVSDB connection schema to be configurable

Add the schema name as a parameter to the OVSDB IDL connection.
That way other users can use this with other schemas

Change-Id: I55ab5ae4f3f937d236eee773f9717b5090c18557
Closes-Bug: #1441180

9 years agoAdd OVSDB connection as a parameter to the transaction
Gal Sagie [Mon, 6 Apr 2015 05:36:01 +0000 (08:36 +0300)]
Add OVSDB connection as a parameter to the transaction

This adds the ovsdb connection as a parameter to the transaction
in the IDL implementation.
This allows other users to use this with a different connection

Change-Id: Iedc0a836c1fc11c88de275c6714e9657b40292df
Closes-Bug: #1440638

9 years agol3_rpc: Fix a comment typo
YAMAMOTO Takashi [Mon, 13 Apr 2015 05:52:33 +0000 (14:52 +0900)]
l3_rpc: Fix a comment typo

Change-Id: Ibd6a9928b84567ac6ad93077d26072d4de560a95

9 years agoFix native OVSDB db_get handling for UUID columns
Terry Wilson [Wed, 25 Mar 2015 03:16:38 +0000 (22:16 -0500)]
Fix native OVSDB db_get handling for UUID columns

The OVS IDL python library returns Row objects for uuid-containing
columns. Ensure that db_get returns UUID strings in this case.

Closes-Bug: #1438751
Change-Id: Ia842a04fcad86329825d75db57680c7f23bed350

9 years agoMerge "Handle non-index lookups in native OVSDB backend"
Jenkins [Sun, 12 Apr 2015 21:28:15 +0000 (21:28 +0000)]
Merge "Handle non-index lookups in native OVSDB backend"

9 years agoMove iptables and ipset config registration into modules
Brian Haley [Fri, 10 Apr 2015 19:51:43 +0000 (15:51 -0400)]
Move iptables and ipset config registration into modules

Do not do this on a per-object basis, but instead in the module.

Change-Id: Ib1cc604c7c0135ca62a6194d8e20a3c29d3c5ed6
Closes-bug: #1441163

9 years agoAdds DVR functional test for multi-external networks
Swaminathan Vasudevan [Wed, 11 Mar 2015 19:03:42 +0000 (12:03 -0700)]
Adds DVR functional test for multi-external networks

This patch adds DVR functional test for multiple
external networks related to FIP namespace.
This test validates that FIP namespaces are created
based on the external networks associated with the
router.

Change-Id: I0f8cd352e83f8c2f04bf420a8b0dd6407de6b5ce

9 years agocontext: reuse base oslo.context class for to_dict()
Ihar Hrachyshka [Sat, 28 Feb 2015 12:48:18 +0000 (13:48 +0100)]
context: reuse base oslo.context class for to_dict()

It is need to conform to expectations of consumers that rely on
oslo.context behaviour (f.e. oslo.log that relies [1] on user_identity
field being set for context objects).

[1]: https://github.com/openstack/oslo.log/blob/master/oslo_log/_options.py#L99

Closes-Bug: #1433687
Change-Id: I95e803b96e6e3e5b8c12298dc6327b974330c639

9 years agoRemoved ml2_conf_odl.ini config file
Ihar Hrachyshka [Fri, 10 Apr 2015 13:07:33 +0000 (15:07 +0200)]
Removed ml2_conf_odl.ini config file

The file is already packaged into decomposed networking-odl repo [1].

[1]: https://git.openstack.org/cgit/stackforge/networking-odl/tree/etc/neutron/plugins/ml2/ml2_conf_odl.ini

Closes-Bug: #1442615
Change-Id: Ic280454190aab4e3b881cde15a882808b652861e

9 years agoMerge "Add logging to dangling port to ml2 delete_subnet"
Jenkins [Fri, 10 Apr 2015 13:02:15 +0000 (13:02 +0000)]
Merge "Add logging to dangling port to ml2 delete_subnet"

9 years agoMerge "Improves the description string for the config parameter metadata_workers."
Jenkins [Fri, 10 Apr 2015 06:02:51 +0000 (06:02 +0000)]
Merge "Improves the  description string for the config parameter metadata_workers."

9 years agoMerge "Update L3 Agent Scheduler API tests"
Jenkins [Fri, 10 Apr 2015 00:19:27 +0000 (00:19 +0000)]
Merge "Update L3 Agent Scheduler API tests"

9 years agoMerge "Double functional testing timeout to 180s"
Jenkins [Thu, 9 Apr 2015 22:31:01 +0000 (22:31 +0000)]
Merge "Double functional testing timeout to 180s"

9 years agoMerge "OVSDB python binding should use row.delete() to remove rows"
Jenkins [Thu, 9 Apr 2015 22:30:38 +0000 (22:30 +0000)]
Merge "OVSDB python binding should use row.delete() to remove rows"

9 years agoMerge "Remove L3 report_state logging"
Jenkins [Thu, 9 Apr 2015 22:30:25 +0000 (22:30 +0000)]
Merge "Remove L3 report_state logging"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Thu, 9 Apr 2015 22:25:56 +0000 (22:25 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Open Liberty development"
Jenkins [Thu, 9 Apr 2015 18:32:22 +0000 (18:32 +0000)]
Merge "Open Liberty development"

9 years agoRemove L3 report_state logging
Assaf Muller [Thu, 9 Apr 2015 17:06:07 +0000 (13:06 -0400)]
Remove L3 report_state logging

None of the agents log this information, and the reason is that
it's not useful. Any errors are logged, successful state reports
don't give actionable information as you can see that the agent
is up in neutron agent-list anyway.

Change-Id: I109373129808984d34abdf6780b8cda8ca8982be

9 years agoDouble functional testing timeout to 180s
Maru Newby [Thu, 9 Apr 2015 17:00:57 +0000 (17:00 +0000)]
Double functional testing timeout to 180s

The increase in ovs testing is resulting in job failure due to
timeouts in test_killed_monitor_respawns.  Giving the test more
time to complete should reduce the failure rate.

Change-Id: I2ba9b1eb388bfbbebbd6b0f3edb6d5a5ae0bfead
Closes-Bug: #1442272

9 years agoOVSDB python binding should use row.delete() to remove rows
Gal Sagie [Thu, 9 Apr 2015 15:57:52 +0000 (18:57 +0300)]
OVSDB python binding should use row.delete() to remove rows

The OVS python IDL recognize a delete event when delete() is called
on the row, this should be used to remove rows from the db

Change-Id: I50c94a4f089659d78f8881653cd55d4ef069cdc1
Closes-Bug: #1442217

9 years agoSync service from oslo-incubator
Elena Ezhova [Thu, 26 Mar 2015 12:33:36 +0000 (15:33 +0300)]
Sync service from oslo-incubator

This sync includes changes that are required to fix handling
of SIGHUP in Neutron.

The following changes and bugfixes are included:

d24b658 Revert "Optimization of waiting subprocesses in ProcessLauncher"
593005b ProcessLauncher: reload config file in parent process on SIGHUP
f29e865 Store ProcessLauncher signal handlers on class level
bf92010 Optimization of waiting subprocesses in ProcessLauncher

Change-Id: If0aab4e8978422346f6ba4c9e6272cdaf39db6cb
Closes-Bug: #1433142
Related-Bug: #1276694

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Thu, 9 Apr 2015 06:58:54 +0000 (06:58 +0000)]
Imported Translations from Transifex

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

Change-Id: Idf9c9beac35ee67d21986a172eb74b3ca6e93b54

9 years agoMerge "Add simple ARP spoofing protection"
Jenkins [Thu, 9 Apr 2015 01:21:53 +0000 (01:21 +0000)]
Merge "Add simple ARP spoofing protection"

9 years agoMerge "Add missing config parameters in neutron.conf"
Jenkins [Wed, 8 Apr 2015 22:42:45 +0000 (22:42 +0000)]
Merge "Add missing config parameters in neutron.conf"

9 years agoMerge "Re-use context session in ML2 DB get_port_binding_host"
Jenkins [Wed, 8 Apr 2015 22:40:49 +0000 (22:40 +0000)]
Merge "Re-use context session in ML2 DB get_port_binding_host"

9 years agoAdd logging to dangling port to ml2 delete_subnet
Eugene Nikanorov [Tue, 7 Apr 2015 22:23:22 +0000 (02:23 +0400)]
Add logging to dangling port to ml2 delete_subnet

This is useful when trouble shooting test failures.
Also, in db_base_plugin_v2, log only port_id instead of
full allocation object.

Change-Id: I3d77318aee70836de125687a7f6c0f495d545f21
Related-Bug: #1357055

9 years agoAvoid synchronizing session when deleting networkdhcpagentbinding
Eugene Nikanorov [Tue, 7 Apr 2015 20:15:43 +0000 (00:15 +0400)]
Avoid synchronizing session when deleting networkdhcpagentbinding

Synchronizing session on delete leads to traces in neutron-server
logs when such binding is deleted concurrently.
Also, catch and ignore ObjectDeletedError during iterating over
bindings, that is possible since the code is not within a transaction.

Change-Id: I7a2c9a8a59ce313c7d242230eeb5da69986bfbd4
Closes-Bug: #1424593

9 years agoMerge "Revert "IPv6 SLAAC subnet create should update ports on net""
Jenkins [Wed, 8 Apr 2015 20:39:59 +0000 (20:39 +0000)]
Merge "Revert "IPv6 SLAAC subnet create should update ports on net""

9 years agoMerge "Moving VLAN Transparency support from core to extension"
Jenkins [Wed, 8 Apr 2015 20:30:01 +0000 (20:30 +0000)]
Merge "Moving VLAN Transparency support from core to extension"

9 years agoUpdate L3 Agent Scheduler API tests
armando-migliaccio [Wed, 8 Apr 2015 19:50:19 +0000 (12:50 -0700)]
Update L3 Agent Scheduler API tests

Changes [1,2] recently merged in temptest. Change [2] in particular
is required if we run the API tests with DVR enabled, because now the
binding logic has been altered by [3].

This patch ensure that should that happen, the API job doesn't fail.

[1] https://review.openstack.org/#/c/169895/
[2] https://review.openstack.org/#/c/165246/
[3] https://review.openstack.org/#/c/154289/

Change-Id: Iead1b90030098139090ae6ad4b77f50068817083

9 years agoRevert "IPv6 SLAAC subnet create should update ports on net"
armando-migliaccio [Wed, 8 Apr 2015 17:57:13 +0000 (10:57 -0700)]
Revert "IPv6 SLAAC subnet create should update ports on net"

This reverts commit 81f4469b620ec221f53d3ffb4d00b90896dc5ce1.

Change-Id: I63a392fccda29ceff3e91c0a4de741d263bd0e8e
Related-bug: #1441382
Related-bug: #1440183

9 years agoAdd missing config parameters in neutron.conf
Edgar Magana [Tue, 7 Apr 2015 05:57:06 +0000 (22:57 -0700)]
Add missing config parameters in neutron.conf

Include all missing configuration parameters already
integrated in Neutron code.

Change-Id: Iefa344a2f9ec2c74f6314e7c783ff3b213d76ea3
Closes-bug: #1438329

9 years agoMerge "Return from check_ports_exist_on_l3agent if no subnet found"
Jenkins [Wed, 8 Apr 2015 16:11:05 +0000 (16:11 +0000)]
Merge "Return from check_ports_exist_on_l3agent if no subnet found"

9 years agoMerge "Add ipset element and hashsize tunables"
Jenkins [Wed, 8 Apr 2015 15:57:10 +0000 (15:57 +0000)]
Merge "Add ipset element and hashsize tunables"

9 years agoMoving VLAN Transparency support from core to extension
Pritesh Kothari [Wed, 25 Mar 2015 18:34:05 +0000 (11:34 -0700)]
Moving VLAN Transparency support from core to extension

* Moving VLAN Transparency support from core to extension
* Remove the older unit tests and add new corresponding ones

DocImpact
Closes-Bug: #1434667

Change-Id: Ic551475ed7b64aad9627a57abb0df41acc19bfc1

9 years agoRe-use context session in ML2 DB get_port_binding_host
Dane LeBlanc [Sat, 4 Apr 2015 22:50:36 +0000 (18:50 -0400)]
Re-use context session in ML2 DB get_port_binding_host

This patch modifies ML2 DB get_port_binding_host method so that it
reuses the existing context session to do the database query
rather than creating a new database session.

Note that there are other methods in ML2 DB that do not re-use
the caller's session (get_port_from_device_mac() and
get_sg_ids_grouped_by_port()). These will be modified using
a separate bug (https://bugs.launchpad.net/neutron/+bug/1441205).
Change-Id: I8aafb0a70f40f9306ccc366e5db6860c92c48cce
Closes-Bug: #1440183

9 years agoMerge "linuxbridge UT: Fix a regression of the recent ip_lib change"
Jenkins [Wed, 8 Apr 2015 15:09:25 +0000 (15:09 +0000)]
Merge "linuxbridge UT: Fix a regression of the recent ip_lib change"

9 years agoImproves the description string for the config parameter metadata_workers.
Sanjeev Rampal [Tue, 7 Apr 2015 00:19:37 +0000 (17:19 -0700)]
Improves the  description string for the config parameter metadata_workers.

Change-Id: I98d05ce52d7cd6c3631bfe1928509fda21d16b48
Closes-Bug: 1421892

9 years agoMerge "Remove tests from HA routers test framework"
Jenkins [Wed, 8 Apr 2015 05:37:22 +0000 (05:37 +0000)]
Merge "Remove tests from HA routers test framework"

9 years agoMerge "Fix intermittent UT failures in test_utils"
Jenkins [Wed, 8 Apr 2015 04:40:45 +0000 (04:40 +0000)]
Merge "Fix intermittent UT failures in test_utils"

9 years agoFix intermittent UT failures in test_utils
armando-migliaccio [Tue, 7 Apr 2015 22:37:59 +0000 (15:37 -0700)]
Fix intermittent UT failures in test_utils

Change eba4c2941ee introduced these tests. However they are not that useful as they
simply mimick the code, without really ensuring that the behavior is expected, so
they provide negative value ([1]), plus, they fail randomly.

This patch removes them in favor of a more useful functional check.

[1] http://googletesting.blogspot.com/2015/01/testing-on-toilet-change-detector-tests.html

Closes-bug: #1441347

Change-Id: I8a321995295deef7f6d30be303486be491e2771f

9 years agoMerge "Enhance TESTING.rst"
Jenkins [Tue, 7 Apr 2015 22:19:56 +0000 (22:19 +0000)]
Merge "Enhance TESTING.rst"

9 years agoMerge "Remove check for bash usage"
Jenkins [Tue, 7 Apr 2015 21:26:04 +0000 (21:26 +0000)]
Merge "Remove check for bash usage"

9 years agoOOP cleanup: start protected method names with underscore
Eugene Nikanorov [Thu, 26 Mar 2015 02:17:59 +0000 (06:17 +0400)]
OOP cleanup: start protected method names with underscore

This slightly improves readability of l3_schedulers module.

Change-Id: I362143939b513bb3b2a02e7472efa26e8c83cb96
Closes-Bug: #1436922

9 years agoMerge "Stop using deprecated DEFAULT group for lock_path"
Jenkins [Tue, 7 Apr 2015 18:38:52 +0000 (18:38 +0000)]
Merge "Stop using deprecated DEFAULT group for lock_path"

9 years agoMerge "Fix dynamic arp populate error for dvr routers"
Jenkins [Tue, 7 Apr 2015 18:28:26 +0000 (18:28 +0000)]
Merge "Fix dynamic arp populate error for dvr routers"

9 years agoEnhance TESTING.rst
Maru Newby [Tue, 24 Mar 2015 19:45:46 +0000 (19:45 +0000)]
Enhance TESTING.rst

Add detail about api testing and provide better visual separation
between the different types of testing.

The current testing guidelines are mainly about running tests, and
this change does little to fix that.  The intention is to add detail
about writing tests in subsequent changes.

Change-Id: I39d0439c91e5c6edb1d48d4da310443c99fb6d9e

9 years agoRemove check for bash usage
Maru Newby [Tue, 7 Apr 2015 15:00:25 +0000 (15:00 +0000)]
Remove check for bash usage

Arbitrarily restricting ourselves from using bash because developers on
platforms like netbsd don't want to install bash from ports doesn't
make sense.  Any non-trivial shell script is likely to use features
like arrays or string manipulation that are poorly supported (if at
all) by sh, and the continued bumping of the number of expected bash
scripts is an indication that the check is not serving its purpose
anyway.

Along with removing the check, all shebang references to /bin/bash
have been replaced with /usr/bin/env bash in an attempt to be more
compatible across different hosts.

Change-Id: Ief72dc380cc88af38959c330897e2c127e33c332
Closes-Bug: #1440824

9 years agoReturn from check_ports_exist_on_l3agent if no subnet found
Ed Bak [Mon, 9 Feb 2015 23:13:18 +0000 (23:13 +0000)]
Return from check_ports_exist_on_l3agent if no subnet found

The call to get_subnet_ids_on_router can return an empty list.
If the subnet_ids list is empty, the subsequent call to get
the ports on a subnet returns all ports.  If this occurs
when doing a remove_router_interface, the performance
of a remove_router_interface degrades significantly.  This change
returns immediately from check_ports_exist_on_l3agents if no
subnet is found.  A new unit test has been added to cover
the specific case of returning immediately without calling
get_ports when a remove_router_interface operation is performed.

Change-Id: I247d3bae152ab4f8ab7e00bd24d878eb08dca1ba
Closes-Bug: #1420032
Depends-On: I15bbf16fd4378c6431e9da8942d0968e7a012a91

9 years agoOpen Liberty development
Thierry Carrez [Tue, 7 Apr 2015 13:50:46 +0000 (15:50 +0200)]
Open Liberty development

Bump pre-version in setup.cfg to formally open Liberty development.
Kilo release branch will be cut from the previous commit.

Change-Id: I9ca77808093741f6c52e49f3041e90c3cc7a74b6

9 years agoRemove tests from HA routers test framework
Assaf Muller [Tue, 7 Apr 2015 03:56:15 +0000 (23:56 -0400)]
Remove tests from HA routers test framework

The framework class should not contain tests. Running the module
was running an additional 9 tests that should not have been run.

Change-Id: Iabc6367e8bfda18e395d1a19809b07507200003d

9 years agolinuxbridge UT: Fix a regression of the recent ip_lib change
YAMAMOTO Takashi [Wed, 18 Mar 2015 04:27:15 +0000 (13:27 +0900)]
linuxbridge UT: Fix a regression of the recent ip_lib change

A recently merged change, I07d1d297f07857d216649cccf717896574aac301,
changed IPWrapper.get_devices to use /sys instead of executing ip command.
Unfortunately it broke linuxbridge unit tests, which seems to assume that
mocking utils.execute is enough in some places.  This commit fixes the
regression.

Closes-Bug: #1433417
Related-Bug: #1374663
Change-Id: I9570abe703b438a3fc358f747e25d023934d1ffd

9 years agoFix dynamic arp populate error for dvr routers
Swaminathan Vasudevan [Fri, 3 Apr 2015 00:25:39 +0000 (17:25 -0700)]
Fix dynamic arp populate error for dvr routers

Recent refactor to the L3 Agent have introduced
this problem. When we create a VM after we
attach an interface to a router or when we add
an interface with an existing VM to a router, in
both cases the arp entries for the dvr serviced
ports are not getting populated in the Router
Namespace.

Closes-Bug: #1438969

Change-Id: I4a82e2435d176f3d9336d7f0dab9726c063840b9
Co-authored-by: Armando Migliaccio <armamig@gmail.com>
9 years agoReorganize plugin test modules
Maru Newby [Mon, 6 Apr 2015 21:53:39 +0000 (21:53 +0000)]
Reorganize plugin test modules

This change moves plugin test modules to conform to the new rules on
unit test tree structure (see TESTING.rst).

Vendor plugin paths continue to be ignored, and unit test modules that
test features instead of modules are also ignored pending their
removal to the functional test tree.

Change-Id: I482c377ca72ffd58692ad84bd9692356513e4c98
Closes-Bug: #1440834

9 years agoMerge open source plugin test code modules
Maru Newby [Mon, 6 Apr 2015 21:51:23 +0000 (21:51 +0000)]
Merge open source plugin test code modules

The unit test reorg is about moving files around so a test module is
clearly associated with the code module it targets, but the test
modules in this change needed to be manually merged because they both
targeted the same module.

Change-Id: I80f4b97fadd318896e7fa4e7e7e939f924127b2a
Partial-Bug: #1440834

9 years agoReorganize unit test tree
Maru Newby [Sat, 4 Apr 2015 00:22:05 +0000 (00:22 +0000)]
Reorganize unit test tree

This change ensures that the structure of the unit test tree matches
that of the code tree to make it obvious where to find tests for a
given module.  A check is added to the pep8 job to protect against
regressions.

The plugin test paths are relocated to neutron/tests/unit/plugins
but are otherwise ignored for now.

Change-Id: If307593259139171be21a71c58e3a34bf148cc7f
Partial-Bug: #1440834

9 years agoMerge "Fix docstring for l3_dvr_db.dvr_vmarp_table_update"
Jenkins [Mon, 6 Apr 2015 22:33:45 +0000 (22:33 +0000)]
Merge "Fix docstring for l3_dvr_db.dvr_vmarp_table_update"

9 years agoMerge "Allow metadata proxy running with nobody user/group"
Jenkins [Mon, 6 Apr 2015 21:12:33 +0000 (21:12 +0000)]
Merge "Allow metadata proxy running with nobody user/group"

9 years agoAdd ipset element and hashsize tunables
Brian Haley [Fri, 3 Apr 2015 01:11:06 +0000 (21:11 -0400)]
Add ipset element and hashsize tunables

Recently, these messages have been noticed in both tempest
logs, as well as reported by downstream users syslog:

  Set IPv4915d358d-2c5b-43b5-9862 is full, maxelem 65536 reached

So the default of 64K is not sufficient enough.

This change adds two config options to control both the number
of elements as well as the hashsize, since they should be
tuned together for best performance.  Slightly different
formats were required for 'ipset create' and 'ipset restore'.

The default values for these are now set to 131072 (maxelem) and
2048 (hashsize), which is an increase over their typical default values
of 65536/1024 (respectively), in order to fix the errors seen in
the tempest tests.

DocImpact

Change-Id: Ic0b5b38a840e737dc6be938230f4052974c8620f
Closes-bug: #1439817

9 years agoAllow metadata proxy running with nobody user/group
Cedric Brandily [Tue, 17 Mar 2015 15:20:07 +0000 (15:20 +0000)]
Allow metadata proxy running with nobody user/group

Currently metadata proxy cannot run with nobody user/group as metadata
proxy requires to connect to metadata_proxy_socket when queried.

This change allows to run metadata proxy with nobody user/group by
allowing to choose the metadata_proxy_socket mode with the new option
metadata_proxy_socket_mode (4 choices) in order to adapt socket
permissions to metadata proxy user/group.

This change refactors also where options are defined to enable
metadata_proxy_user/group options in the metadata agent.

In practice:
* if metadata_proxy_user is agent effective user or root, then:
  * metadata proxy is allowed to use rootwrap (unsecure)
  * set metadata_proxy_socket_mode = user (0o644)
* else if metadata_proxy_group is agent effective group, then:
  * metadata proxy is not allowed to use rootwrap (secure)
  * set metadata_proxy_socket_mode = group (0o664)
  * set metadata_proxy_log_watch = false
* else:
  * metadata proxy has lowest permissions (securest) but metadata proxy
    socket can be opened by everyone
  * set metadata_proxy_socket_mode = all (0o666)
  * set metadata_proxy_log_watch = false

An alternative is to set metadata_proxy_socket_mode = deduce, in such
case metadata agent uses previous rules to choose the correct mode.

DocImpact
Closes-Bug: #1427228
Change-Id: I235a0cc4f0cbd55ae4ec1570daf2ebbb6a72441d

9 years agoSkip example retargetable functional test
Maru Newby [Mon, 6 Apr 2015 16:28:00 +0000 (16:28 +0000)]
Skip example retargetable functional test

The example retargetable test that previously ran as part of the
functional suite is now skipped due to the fullstack example's db
fixture usage causing the test to fail if it the fullstack example
runs first on the same worker.

Change-Id: I0a34f9ba04c53a4291698be819070c66009c8b4a
Related-Bug: #1440797

9 years agoMerge "Prepare for unit test reorg"
Jenkins [Mon, 6 Apr 2015 13:37:14 +0000 (13:37 +0000)]
Merge "Prepare for unit test reorg"

9 years agoMerge "Store and log correct exception info"
Jenkins [Sun, 5 Apr 2015 05:43:37 +0000 (05:43 +0000)]
Merge "Store and log correct exception info"

9 years agoMerge "Always run dnsmasq as root"
Jenkins [Sun, 5 Apr 2015 05:40:37 +0000 (05:40 +0000)]
Merge "Always run dnsmasq as root"

9 years agoMerge "Move network MTU from core REST API to extension API"
Jenkins [Sat, 4 Apr 2015 20:13:55 +0000 (20:13 +0000)]
Merge "Move network MTU from core REST API to extension API"

9 years agoMerge "Refactoring cleanup for L3 agent callbacks"
Jenkins [Sat, 4 Apr 2015 04:55:20 +0000 (04:55 +0000)]
Merge "Refactoring cleanup for L3 agent callbacks"

9 years agoPrepare for unit test reorg
Maru Newby [Fri, 3 Apr 2015 23:42:31 +0000 (23:42 +0000)]
Prepare for unit test reorg

The unit test reorg is about moving files around so a test module is
clearly associated with the code module it targets, but the test
modules in this change needed to be manually merged because they both
targeted the same module.

test_api_v2 is also updated to use the path of neutron/tests/base.py
as the root of path to test implementations of extensions.

Change-Id: I432b84339e51c26ef0aa26d44e29b5a3311626ad
Implements: bp/reorganize-unit-test-tree

9 years agoMerge "Add API tests for subnet-create with subnetpool"
Jenkins [Fri, 3 Apr 2015 23:34:24 +0000 (23:34 +0000)]
Merge "Add API tests for subnet-create with subnetpool"