]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agol2pop UT: Simplify migration tests
YAMAMOTO Takashi [Mon, 23 Feb 2015 04:23:53 +0000 (13:23 +0900)]
l2pop UT: Simplify migration tests

"port2" is created but not used in the tests.

Change-Id: Ib27d32063a2b5cecc707a6aece4e604cbfecefa7

9 years agol2pop UT: Expire cached db objects before reusing a session
YAMAMOTO Takashi [Wed, 8 Apr 2015 08:29:10 +0000 (17:29 +0900)]
l2pop UT: Expire cached db objects before reusing a session

Partial-Bug: #1441488
Change-Id: Ic22ae49d99b52e9f650ea0ed638842e7c91831af

9 years agoMerge "Enhance OVSDB Transaction timeout configuration"
Jenkins [Sun, 19 Apr 2015 05:13:47 +0000 (05:13 +0000)]
Merge "Enhance OVSDB Transaction timeout configuration"

9 years agoMerge "Add full-stack test"
Jenkins [Sat, 18 Apr 2015 13:15:14 +0000 (13:15 +0000)]
Merge "Add full-stack test"

9 years agoMerge "Add some more comments to models/frozen.py"
Jenkins [Sat, 18 Apr 2015 08:25:37 +0000 (08:25 +0000)]
Merge "Add some more comments to models/frozen.py"

9 years agoMerge "Deal with TODO related to Security Groups RPC API's classes"
Jenkins [Sat, 18 Apr 2015 05:13:09 +0000 (05:13 +0000)]
Merge "Deal with TODO related to Security Groups RPC API's classes"

9 years agoMerge "Set loading strategy to joined for Routerport/Port"
Jenkins [Sat, 18 Apr 2015 03:54:18 +0000 (03:54 +0000)]
Merge "Set loading strategy to joined for Routerport/Port"

9 years agoMerge "Revert connection option post full-stack tests"
Jenkins [Sat, 18 Apr 2015 01:51:18 +0000 (01:51 +0000)]
Merge "Revert connection option post full-stack tests"

9 years agoMerge "create_resource should return maximum length str"
Jenkins [Sat, 18 Apr 2015 01:51:02 +0000 (01:51 +0000)]
Merge "create_resource should return maximum length str"

9 years agoMerge "Remove double queries in l3 DB get methods"
Jenkins [Sat, 18 Apr 2015 01:48:16 +0000 (01:48 +0000)]
Merge "Remove double queries in l3 DB get methods"

9 years agoMerge "Fixes race condition and boosts the scheduling performance"
Jenkins [Fri, 17 Apr 2015 19:48:09 +0000 (19:48 +0000)]
Merge "Fixes race condition and boosts the scheduling performance"

9 years agoMerge "ML2: Change port status only when it's bound to the host"
Jenkins [Fri, 17 Apr 2015 19:24:31 +0000 (19:24 +0000)]
Merge "ML2: Change port status only when it's bound to the host"

9 years agoFixes race condition and boosts the scheduling performance
Swaminathan Vasudevan [Wed, 15 Apr 2015 04:34:33 +0000 (21:34 -0700)]
Fixes race condition and boosts the scheduling performance

This patch fixes a race-condition that occurs when the
scheduler tries to check for dvr serviceable ports before
it schedules a router when a subnet is associated with
a router.

Sometimes the dhcp port creation is delayed and so the
router is not scheduled to the l3-agent.

Also it boosts the scheduling performance on dvr-snat
node for scheduling a router.

This patch will provide a work around to fix this race
condition and to boost the scheduling performance
by scheduling a router on a dvr-snat when
dhcp is enabled on the provided subnet, instead of checking
all the available ports on the subnet.

Closes-Bug: #1442494

Change-Id: I089fefdd8535bdc9ed90b3230438ab0bfb6aab4f

9 years agoMerge "Quota model: use HasTenantId mixin"
Jenkins [Fri, 17 Apr 2015 14:09:44 +0000 (14:09 +0000)]
Merge "Quota model: use HasTenantId mixin"

9 years agoMerge "Removed jsonrpclib dependency"
Jenkins [Fri, 17 Apr 2015 13:54:26 +0000 (13:54 +0000)]
Merge "Removed jsonrpclib dependency"

9 years agoML2: Change port status only when it's bound to the host
mathieu-rohon [Sat, 7 Mar 2015 12:30:49 +0000 (13:30 +0100)]
ML2: Change port status only when it's bound to the host

Currently, nothing prevents the port status to be changed to BUILD
state when get_device_details() is sent by a host that doesn't own
the port.
In some cases the port might stay in BUILD state.
This could happen during a live-migration, or for multi-hosted ports
such as HA ports.
This commit allows the port status modification only if the port
is bound to the host that is asking for it.

Closes-Bug: #1439857
Closes-Bug: #1438040
Closes-Bug: #1416933

Change-Id: I9b3673f453abbafaaa4f78542fcfebe8dc93f2bb

9 years agoRemove double queries in l3 DB get methods
Kevin Benton [Fri, 17 Apr 2015 11:28:58 +0000 (04:28 -0700)]
Remove double queries in l3 DB get methods

Two frequently called functions were querying the routerport table
and the corresponding ports just to get the port ID. Then they were
calling get_ports again with those port IDs, resulting in two queries
to the port table when there should have only been one.

This eliminates the second call to get_ports since all of the necessary
data hase been retrieved from the port table.

Change-Id: I806e9c380b7de048fe084b2baf4b6f92ab0edf6b
Partial-Bug: #1445412

9 years agoSet loading strategy to joined for Routerport/Port
Kevin Benton [Fri, 17 Apr 2015 10:36:50 +0000 (03:36 -0700)]
Set loading strategy to joined for Routerport/Port

The RouterPort model has a relationship to the ports model which
is frequently relied on to get the port IDs of interfaces attached
to a router. However, this defaults to the loading strategy to
'select', which meant a new query was being emitted for every
interface to the ports table just to get the ID.

This patch adjusts the relationship to be 'joined' by default so
one query will fetch the related ports.

Another option would have been not to use the port object at all since
the ID is all that the callers were usually interested in. However,
they would end up using the ID to do a port lookup, which is being
optimized away in another patch anyway so the full port object from
the relationship will end up getting used.

Change-Id: Id1ae35f845f7367d5f1f065c6fa637da7b980a2b
Partial-Bug: #1445412

9 years agoMerge "Added config variable for External Network type in ML2"
Jenkins [Fri, 17 Apr 2015 09:13:58 +0000 (09:13 +0000)]
Merge "Added config variable for External Network type in ML2"

9 years agoMerge "Update decomp progress chart"
Jenkins [Fri, 17 Apr 2015 04:22:03 +0000 (04:22 +0000)]
Merge "Update decomp progress chart"

9 years agoSet IPset hash type to 'net' instead of 'ip'
Kevin Benton [Tue, 31 Mar 2015 06:52:56 +0000 (23:52 -0700)]
Set IPset hash type to 'net' instead of 'ip'

The previous hash type was 'ip' and this caused a major
issue with the allowed address pairs extension since it
results in CIDRs being passed to ipset. When the hash type
is 'ip', a CIDR is completely enumerated into all of its
addresses so 10.100.0.0/16 results in ~65k entries. This
meant a single allowed_address_pairs entry could easily
exhaust an entire set.

This patch changes the hash type to 'net', which is designed
to handle a CIDRs as a single entry.

This patch also changes the names of the ipsets because
creating an ipset with different parameters will cause an
error and our ipset manager code isn't robust enough to handle
that at this time. There is another ongoing patch to fix
that but it won't be ready in time.[1]

The related bug was closed by increasing the set limit, which
did alleviate the problem. However, this change would also
address the issue because the gate tests run an allowed address
pairs extension test with the CIDR mentioned above.

1. I59e2e1c090cb95ee1bd14dbb53b6ff2c5e2713fd

Related-Bug: #1439817
Closes-Bug: #1444397
Change-Id: I8177699b157cd3eac46e2f481f47b5d966c49b07

9 years agoMerge "Revert "Add ipset element and hashsize tunables""
Jenkins [Thu, 16 Apr 2015 22:12:03 +0000 (22:12 +0000)]
Merge "Revert "Add ipset element and hashsize tunables""

9 years agoMerge "Synced versionutils from oslo-incubator"
Jenkins [Thu, 16 Apr 2015 19:49:00 +0000 (19:49 +0000)]
Merge "Synced versionutils from oslo-incubator"

9 years agoQuota model: use HasTenantId mixin
Salvatore Orlando [Thu, 16 Apr 2015 18:57:37 +0000 (11:57 -0700)]
Quota model: use HasTenantId mixin

This change simply changes the Quota model class to obtain
the tenant_id from the mixin class. As the attribute in the
mixin is identical to that in the model there is no need for
a migration.

This patch also removes a reference to quota classes in the
docstring, as Neutron does not implement those. It is good
to be careful when copying and paste code.

Change-Id: Idab15d5ef2ddd2b830a7dcde46990506064535f7
Closes-Bug: #1445169

9 years agoDeal with TODO related to Security Groups RPC API's classes
armando-migliaccio [Thu, 16 Apr 2015 00:35:13 +0000 (17:35 -0700)]
Deal with TODO related to Security Groups RPC API's classes

Change-Id: Ifb70a118cef48c3c4cd313e22e907aa47bc51ad0

9 years agoMerge "Increase max attempts to 2 for pings on ARP tests"
Jenkins [Thu, 16 Apr 2015 14:10:53 +0000 (14:10 +0000)]
Merge "Increase max attempts to 2 for pings on ARP tests"

9 years agoAdd some more comments to models/frozen.py
AKamyshnikova [Thu, 16 Apr 2015 13:25:42 +0000 (16:25 +0300)]
Add some more comments to models/frozen.py

Some people get confused and tried to add new models in models/frozen.py
To prevent this add some more information in comments in this file.

Change-Id: Iaa52ae2a826609f94e1aa81d815ae7c082bf9204

9 years agoMerge "Provide details for configure multiple DHCP agents"
Jenkins [Thu, 16 Apr 2015 13:13:39 +0000 (13:13 +0000)]
Merge "Provide details for configure multiple DHCP agents"

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

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

Change-Id: I700d3463e560d09e61f9d709b60f64b91feaa735

9 years agoMerge "Router is not unscheduled when the last port is deleted"
Jenkins [Thu, 16 Apr 2015 04:10:03 +0000 (04:10 +0000)]
Merge "Router is not unscheduled when the last port is deleted"

9 years agoMerge "IPv6 SLAAC subnet create should update ports on net"
Jenkins [Thu, 16 Apr 2015 03:44:58 +0000 (03:44 +0000)]
Merge "IPv6 SLAAC subnet create should update ports on net"

9 years agoMerge "Stop running L3 functional tests with both OVSDB interfaces"
Jenkins [Thu, 16 Apr 2015 01:32:01 +0000 (01:32 +0000)]
Merge "Stop running L3 functional tests with both OVSDB interfaces"

9 years agoIPv6 SLAAC subnet create should update ports on net
Dane LeBlanc [Thu, 9 Apr 2015 14:32:33 +0000 (10:32 -0400)]
IPv6 SLAAC subnet create should update ports on net

If ports are first created on a network, and then an IPv6 SLAAC
or DHCPv6-stateless subnet is created on that network, then the
ports created prior to the subnet create are not getting
automatically updated (associated) with addresses for the
SLAAC/DHCPv6-stateless subnet, as required.

Change-Id: I88d04a13ce5b8ed4c88eac734e589e8a90e986a0
Closes-Bug: 1427474
Closes-Bug: 1441382
Closes-Bug: 1440183

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 agoEnhance OVSDB Transaction timeout configuration
Gal Sagie [Wed, 15 Apr 2015 06:26:54 +0000 (09:26 +0300)]
Enhance OVSDB Transaction timeout configuration

OVSDB Transaction currently takes the timeout parameter
from a context object that assume to have a vsctl_timeout attribute
This doesnt fit well for other users of this class (like OVN)

This fix configure the transaction timeout in a more common way

Change-Id: I51bb8d8fdc6d061d44af828818aaf62e187795fd
Closes-Bug: #1444277

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 agoAdded config variable for External Network type in ML2
Aman Kumar [Fri, 23 Jan 2015 09:34:00 +0000 (01:34 -0800)]
Added config variable for External Network type in ML2

Description:
With the ML2 Plugin, every network created has segments with
provider:network_types being tenant_network_types.
When applied to external networks, the types that could be in
tenant_network_types parameter (like vxlan or gre) are not appropriate.

Implementation:
Added new config variable 'external_network_type' in ml2_conf.ini
which contains the default network type for external networks
when no provider attributes are specified, by default it is None.

It also includes small code re-factoring/renaming of import statement.

DocImpact

Closes-Bug: #1328991

Co-Authored-By: Romil Gupta <romilg@hp.com>
Change-Id: Idbbe6bced73cfedbe0f8e7abba35f87589b1a004

9 years agoUpdate decomp progress chart
armando-migliaccio [Tue, 14 Apr 2015 21:40:13 +0000 (14:40 -0700)]
Update decomp progress chart

This patch updates the progress chart, now that the first cycle after the
decomp started. For the fully decomposed plugins/drivers and for known
projects that integrate with  Neutron, this patch proposes a new
summary table that provides a go-to reference for everything Neutron related.

Related-blueprint: core-vendor-decomposition

Change-Id: Ib79a7b6d1401f1d9241621ae03cf6692685e12b1

9 years agoProvide details for configure multiple DHCP agents
Li Ma [Mon, 13 Apr 2015 05:29:56 +0000 (22:29 -0700)]
Provide details for configure multiple DHCP agents

The help text is not that good for operation. This fix adds more
information about the option 'dhcp_agents_per_network'.

Change-Id: I955c1e9989a9c65b0ffdbbdca9113c795ec72fe6
Closes-Bug: #1370934

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 agoStop running L3 functional tests with both OVSDB interfaces
Assaf Muller [Fri, 27 Mar 2015 23:31:51 +0000 (19:31 -0400)]
Stop running L3 functional tests with both OVSDB interfaces

Running the L3 functional tests with both OVSDB interfaces doubles
the run time and may discourage developers from running them
frequently during development. Since the OVSDB interfaces
are tested explicitly, I don't think the trade off is worth it
here. The L3 functional tests use OVS in a *really* trivial way
and won't catch any issues that the explicit tests won't.

Added an OVSInterfaceDriverTestCase plug functional test that runs with
both OVS interfaces to make it harder to introduce regressions.

Related-Bug: #1442272
Change-Id: I387db347fe34f8497069ddf768624bccb9d1de8b

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 agoAdd full-stack test
John Schwarz [Tue, 14 Oct 2014 11:12:35 +0000 (14:12 +0300)]
Add full-stack test

Currently, the full-stack framework has only one test which only uses
the neutron-server. This patch adds an actual test which makes sure that
once a router is created, an actual namespace is create for it. Since
this test requires 3 processes (neutron-server, l3-agent, ovs-agent),
existing full-stack code is modified to add more streamlined support for
such code.

Partially-Implements: blueprint integration-tests
Change-Id: Id5a8852d38543590b90e4bbed261a7a458071a9a

9 years agocreate_resource should return maximum length str
John Schwarz [Thu, 2 Apr 2015 15:17:03 +0000 (18:17 +0300)]
create_resource should return maximum length str

Previously, get_rand_name(max_length, prefix) returned a randomized
suffix integer which was concatenated to the end of the given prefix.
Effectively, the suffix was any decimal number between 1 and
0x7fffffff, so multiple calls to the function could return strings with
different length. This is unexpected since running an already
randomized name into the same function shouldn't return a different
string.

The suggested solution is to actually fill all the space needed until
the string is 'max_length' in size. Also, a check is added to
create_resource to make sure that it only generates a new port name if
the input prefix is less than the maximum device name and if the prefix
is long enough, don't generate a random port suffix.

Change-Id: I0d5a20c676f627bce2a377e3c451043150ca734c

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 agoRemoved jsonrpclib dependency
Ihar Hrachyshka [Mon, 13 Apr 2015 13:21:46 +0000 (15:21 +0200)]
Removed jsonrpclib dependency

It was used by Arista ML2 driver that is now decomposed from the tree.
The dependency is also one of those blocking our python 3 story [1].

[1]: https://caniusepython3.com/check/ba7f2a23-8a1b-4ec9-9d85-08c7d3b05230

Change-Id: I4de422da14e382ece49987da498d2d7f424e89b4

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 agoSynced versionutils from oslo-incubator
Ihar Hrachyshka [Fri, 10 Apr 2015 15:30:30 +0000 (17:30 +0200)]
Synced versionutils from oslo-incubator

This is needed to get access to versionutils.deprecated.LIBERTY symbol.

Change-Id: Ifda59f762fd61437088750c988f03b782045f455

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 agoRouter is not unscheduled when the last port is deleted
Stephen Ma [Tue, 24 Feb 2015 23:31:33 +0000 (23:31 +0000)]
Router is not unscheduled when the last port is deleted

When checking for ports that are still in use on a DVR router,
the L3 agent scheduler makes the assumption that a port's
network must be owned by the same tenant. This isn't always
true as the admin could have created a shared network that
other tenants may use. The result of this assumption is that
the router associated with the shared network may not be
unscheduled from a VM host when the last VM (created by a
non-admin tenant) using the shared network is deleted from
the compute node.

The owner of a VM may not own all the ports of a shared
network.  Other tenants may have VMs using the same shared
network running on the same compute node. Also the VM owner
may not own the router ports. In order to check whether a
router can be unscheduled from a node has to be run with
admin context so all the ports associated with router are
returned from database queries.

This patch fixes this problem by using the admin context to
make the queries needed for the DVR scheduler to make the
correct unschedule decision.

Change-Id: I45477713d7ce16f2451fa6fbe04c610388b06867
Closes-bug: #1424096

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 agoRevert connection option post full-stack tests
John Schwarz [Thu, 9 Apr 2015 15:41:06 +0000 (18:41 +0300)]
Revert connection option post full-stack tests

The full-stack framework overrides the database connection string before
every test is started, but after the test it doesn't revert the string
back to what it was originally. Since after the test the database is
deleted, the string is not actually valid once the test finished, and
this conflicts with tests which are ran on the same job (specifically
the retargetable tests - see associated bug). The proposed patch saves
the original connection string and reverts it after the test finishes.

Change-Id: I96c01483009084cbc2b81588a1283e84e6bcb4c4
Closes-bug: #1440797

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"