]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoAdd a functional test that checks HA router is configured on a restarted agent
AKamyshnikova [Mon, 9 Feb 2015 08:54:43 +0000 (11:54 +0300)]
Add a functional test that checks HA router is configured on a restarted agent

Functional test should  validate the expected behavior of patch
https://review.openstack.org/#/c/148335/.

That test would pass if keepalived received the SIGHUP signal the
2nd time the router was configured on new agent,
and it would fail otherwise.

Closes-bug: #1413684

Change-Id: Iaa72402920cd0854e1738e7de87b8cba46ecd9f9

9 years agoMerge "Search in /sys/class/net for network devices"
Jenkins [Wed, 18 Feb 2015 06:58:08 +0000 (06:58 +0000)]
Merge "Search in /sys/class/net for network devices"

9 years agoMerge "Hyper-V: Fixes security groups issue"
Jenkins [Wed, 18 Feb 2015 06:36:16 +0000 (06:36 +0000)]
Merge "Hyper-V: Fixes security groups issue"

9 years agoMerge "Remove root_helper arg for ovs_lib"
Jenkins [Wed, 18 Feb 2015 05:38:08 +0000 (05:38 +0000)]
Merge "Remove root_helper arg for ovs_lib"

9 years agoMerge "Stop using passed root_helper in ip_lib"
Jenkins [Wed, 18 Feb 2015 04:52:26 +0000 (04:52 +0000)]
Merge "Stop using passed root_helper in ip_lib"

9 years agoMerge "OVS UT: Fix some confusions between local vlan id and segmentation id"
Jenkins [Wed, 18 Feb 2015 03:03:13 +0000 (03:03 +0000)]
Merge "OVS UT: Fix some confusions between local vlan id and segmentation id"

9 years agoMerge "Fix the api job"
Jenkins [Wed, 18 Feb 2015 03:02:51 +0000 (03:02 +0000)]
Merge "Fix the api job"

9 years agoStop using passed root_helper in ip_lib
Terry Wilson [Wed, 21 Jan 2015 22:11:37 +0000 (16:11 -0600)]
Stop using passed root_helper in ip_lib

This patch leaves the root_helper option, but stops using it as
a phased implementation of dropping the argument altogether.

Partially-Implements: blueprint rootwrap-daemon-mode
Change-Id: I1b729241aa76b2dcb053b51c69d28e1c5359b4f7

9 years agoOVS UT: Fix some confusions between local vlan id and segmentation id
YAMAMOTO Takashi [Tue, 17 Feb 2015 05:11:11 +0000 (14:11 +0900)]
OVS UT: Fix some confusions between local vlan id and segmentation id

Also, use different values for them to expose mistakes.

Details:

There are two kinds of vlan ids involved here:
* local vlan id, which is managed by each agents in a node-local manner.
* segmentation id, which is managed by the corresponding ML2 type driver.
These tests use the distinct variables for them.
(LV_ID and LS_ID respectively)
However, these variables are misused in some places, relying on the fact
that their values are same.  (42)

Change-Id: Ib2ba74be74c2c361d25821acab2083a17b1b0173

9 years agoMerge "Un-break tox for unit tests"
Jenkins [Wed, 18 Feb 2015 01:08:45 +0000 (01:08 +0000)]
Merge "Un-break tox for unit tests"

9 years agoMerge "Add run_as_root option to utils.execute"
Jenkins [Tue, 17 Feb 2015 23:59:28 +0000 (23:59 +0000)]
Merge "Add run_as_root option to utils.execute"

9 years agoUn-break tox for unit tests
Brian Haley [Tue, 17 Feb 2015 20:57:10 +0000 (15:57 -0500)]
Un-break tox for unit tests

Running 'tox -e py27 $some_unit_test' is always failing now
with tox 1.6.0, with this being printed at the beginning:

ERROR: InvocationError: could not find executable 'dsvm-functional:'

Seems commit 540e4d791ff2573aae38810f4c39f2d6f46d8898
(Automate host configuration for functional testing)
added some code to tox.ini that requires version 1.8 or later,
so make that the minimum.

Change-Id: I56313d0a22dbc4007142b8bb4890d1ac8bebff94

9 years agoMerge "Fix FIP agent gw port delete based on external net"
Jenkins [Tue, 17 Feb 2015 22:01:45 +0000 (22:01 +0000)]
Merge "Fix FIP agent gw port delete based on external net"

9 years agoMerge "Delete qg device during DVR-SNAT router deletion"
Jenkins [Tue, 17 Feb 2015 19:42:26 +0000 (19:42 +0000)]
Merge "Delete qg device during DVR-SNAT router deletion"

9 years agoFix FIP agent gw port delete based on external net
Swaminathan Vasudevan [Thu, 8 Jan 2015 17:44:01 +0000 (09:44 -0800)]
Fix FIP agent gw port delete based on external net

Today the FIP agent gateway port for DVR is deleted
based on the host. When there are multiple external
networks, then the port deletion for the second
external network may fail.

So the current fix checks for the valid host and
external network id and then deletes the FIP agent
gw port if it is the last one to be deleted.

Closes-Bug: #1421886

Change-Id: Ic5dfb88409c39d06d912263b338d0c5f7ebd3bcb

9 years agoMerge "Setup br-tun in secure fail mode to avoid broadcast storms"
Jenkins [Tue, 17 Feb 2015 15:44:50 +0000 (15:44 +0000)]
Merge "Setup br-tun in secure fail mode to avoid broadcast storms"

9 years agoMerge "Remove RPC dependency to create FIP agent gw port"
Jenkins [Tue, 17 Feb 2015 15:37:01 +0000 (15:37 +0000)]
Merge "Remove RPC dependency to create FIP agent gw port"

9 years agoHyper-V: Fixes security groups issue
Lucian Petrut [Tue, 27 Jan 2015 13:23:27 +0000 (15:23 +0200)]
Hyper-V: Fixes security groups issue

After this patch If19be8579ca734a899cdd673c919eee8165aaa0e refactored
securitygroups_rpc, prepare_devices_filter attempts to use methods
unimplemented by the HyperV security groups driver.

For this reason, binding ports fails with NotImplementedError if
security groups are enabled.

Until the HyperV security groups driver reaches parity, the
use_enhanced_rpc property should be set to False on the
HyperVSecurityAgent, falling back to the old behaviour.

Change-Id: I1a7ee2b92367d2d59932b8b39372a055bf19951b
Closes-Bug: #1415523

9 years agoMerge "OVS DVR: Use a right mac address value to compose a flow"
Jenkins [Tue, 17 Feb 2015 04:03:44 +0000 (04:03 +0000)]
Merge "OVS DVR: Use a right mac address value to compose a flow"

9 years agoFix the api job
Henry Gessau [Tue, 17 Feb 2015 01:34:29 +0000 (20:34 -0500)]
Fix the api job

The api tests were out sync with tempest. XML support has been dropped
so JSON no longer needs to be specified.

Change-Id: I040cc4dbca4e9706309495ac78e0492d74e0bf62

9 years agoSetup br-tun in secure fail mode to avoid broadcast storms
Miguel Angel Ajo [Thu, 12 Feb 2015 14:32:58 +0000 (14:32 +0000)]
Setup br-tun in secure fail mode to avoid broadcast storms

When not creating br-tun in secure fail mode, there are chances to
get a broadcast storm from br-tun.

For example, this occurs when at least three nodes have the br-tun
OpenFlow rules reset in and a broadcast/multicast packet enters br-tun.

This can happen if:
  * openvswitch is restarted, until the agent reloads the Openflow rules.
  * during neutron-openvswitch-agent restart, br-tun is reset, and there
is a few seconds timeframe where tunnel endpoints are plugged and OF
rules are reset.

Secure fail mode doesn't forward traffic by default if no rule is hit.

Change-Id: Iba5ded14179156decb16dcd4b898c026660f9653
Closes-bug: #1421232

9 years agoMerge "Automate host configuration for functional testing"
Jenkins [Mon, 16 Feb 2015 14:25:31 +0000 (14:25 +0000)]
Merge "Automate host configuration for functional testing"

9 years agoDelete qg device during DVR-SNAT router deletion
Assaf Muller [Fri, 13 Feb 2015 16:35:02 +0000 (11:35 -0500)]
Delete qg device during DVR-SNAT router deletion

In the DVR SNAT case, the 'qg' device was not deleted because
of patch:
https://review.openstack.org/#/c/151882/

During functional testing, the device is deleted
during the external bridge deletion. Because that happens after
the SNAT namespace is already deleted, it can cause a kernel
panic or ovs-vswitchd crash for certain OVS versions.

Also added assertions that all router interfaces were properly
cleaned up during functional testing, and enabled the unit tests
to catch this type of error.

Change-Id: Ica86a030860aa967d5b685b5bfb5546a85b2a809
Closes-Bug: #1418097

9 years agoMerge "ml2: Simplify _process_provider_create"
Jenkins [Sun, 15 Feb 2015 08:41:37 +0000 (08:41 +0000)]
Merge "ml2: Simplify _process_provider_create"

9 years agoMerge "ML2: Hierarchical port binding"
Jenkins [Sat, 14 Feb 2015 16:56:07 +0000 (16:56 +0000)]
Merge "ML2: Hierarchical port binding"

9 years agoMerge "ML2: DB changes for hierarchical port binding"
Jenkins [Sat, 14 Feb 2015 06:53:45 +0000 (06:53 +0000)]
Merge "ML2: DB changes for hierarchical port binding"

9 years agoAutomate host configuration for functional testing
Maru Newby [Fri, 9 Jan 2015 15:02:59 +0000 (15:02 +0000)]
Automate host configuration for functional testing

This change adds a new script, configure_for_func_testing.sh, that
automates configuration of a host to support functional testing.  The
script's functionality is consumed by a refactored version of
gate_hook.sh, and both minimizes runtime and removes the previous
dependency on the devstack-gate repo.

Additionally, the dsvm-functional tox env is no longer dependent on
devstack to deploy neutron's rootwrap configuration system-wide.
Rootwrap configuration is now deployed to the target tox venv on each
tox invocation.

Change-Id: Iaf43be458bdf3c4535f95ee5a3a3b47a744020a0

9 years agoML2: Hierarchical port binding
Robert Kukura [Fri, 22 Aug 2014 09:01:03 +0000 (05:01 -0400)]
ML2: Hierarchical port binding

The ML2 port binding logic is modified to support hierarchical
bindings. If a mechanism driver's bind_port() calls continue_binding()
rather than set_binding(), the supplied dynamic segments are used for
another level of binding.

Gerrit Spec: https://review.openstack.org/#/c/139886/

Implements: blueprint ml2-hierarchical-port-binding

Change-Id: Id741c2d6c443fa0eac5ecf8d964b3fc14b5d3abe

9 years agoML2: DB changes for hierarchical port binding
Robert Kukura [Thu, 21 Aug 2014 19:46:11 +0000 (15:46 -0400)]
ML2: DB changes for hierarchical port binding

To support hierarchical port binding, the driver and segment columns
are moved from the ml2_port_bindings and ml2_dvr_port_bindings tables
to a new ml2_port_binding_levels table. This new table can store
multiple levels of binding information for each port. It has the host
as part of its primary key so that it can be used for both normal and
DVR port bindings.

The cap_port_filter column is also removed from the
ml2_dvr_port_bindings table, since the adjacent driver and segment
columns are being moved, and this can trivially be done via the same
DB migration. It was included in the table by mistake and was never
used.

The logic required for hierarchical port binding will be implemented
in a dependent patch.

Gerrit Spec: https://review.openstack.org/#/c/139886/

Partially-implements: blueprint ml2-hierarchical-port-binding

Change-Id: I08ddc384763087fbac0fa3da3ed6e99b897df031

9 years agoMerge "Fix typo in bash tool"
Jenkins [Sat, 14 Feb 2015 01:59:19 +0000 (01:59 +0000)]
Merge "Fix typo in bash tool"

9 years agoRemove RPC dependency to create FIP agent gw port
Swaminathan Vasudevan [Fri, 6 Feb 2015 23:07:40 +0000 (15:07 -0800)]
Remove RPC dependency to create FIP agent gw port

The Floatingip Agent Gateway port was initially
created when the agent requests one through an
RPC exchange.

We are seeing more failures in this area of the
code where there is delay in getting the agent
gateway port from the plugin through RPC.

Change-Id: Ieaa79c8bf2b1e03bc352f9252ce22286703e3715
Related-bug: #1415522

9 years agoFix typo in bash tool
Joe Gordon [Fri, 13 Feb 2015 23:51:54 +0000 (15:51 -0800)]
Fix typo in bash tool

Testing out I638ac2d35c33eef02e2c6872ea3bd4a3d644da58

So grenade,tempest,and rally should not run on this patch.

Change-Id: I3bdd9be8a6b2a23cdea527686e7ccc61d041f773

9 years agoMerge "Add the rebinding chance in _bind_port_if_needed"
Jenkins [Fri, 13 Feb 2015 15:35:57 +0000 (15:35 +0000)]
Merge "Add the rebinding chance in _bind_port_if_needed"

9 years agoMerge "Remove unused RPC methods from l3_rpc"
Jenkins [Fri, 13 Feb 2015 08:57:07 +0000 (08:57 +0000)]
Merge "Remove unused RPC methods from l3_rpc"

9 years agoMerge "OVS DVR: Remove dead code"
Jenkins [Fri, 13 Feb 2015 08:51:12 +0000 (08:51 +0000)]
Merge "OVS DVR: Remove dead code"

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 13 Feb 2015 08:50:57 +0000 (08:50 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Cleanup in keepalived tests"
Jenkins [Fri, 13 Feb 2015 05:19:55 +0000 (05:19 +0000)]
Merge "Cleanup in keepalived tests"

9 years agoMerge "Fix AttributeError exception for API's test_network_lifecycle"
Jenkins [Fri, 13 Feb 2015 03:39:58 +0000 (03:39 +0000)]
Merge "Fix AttributeError exception for API's test_network_lifecycle"

9 years agoOVS DVR: Remove dead code
YAMAMOTO Takashi [Fri, 13 Feb 2015 02:09:37 +0000 (11:09 +0900)]
OVS DVR: Remove dead code

This is a leftover from commit e90ea7ce3f1aae1dce216618da49d37a64d3bb91 .

Change-Id: I13d10d00f86659bc7c76df9be0cd8b8ec6713bc6

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 13 Feb 2015 01:54:07 +0000 (01:54 +0000)]
Updated from global requirements

Change-Id: Ic74d16fa084e598273a7c1f33fe67843757da6e1

9 years agoMerge "hacking: also catch 'import oslo.*' imports"
Jenkins [Fri, 13 Feb 2015 00:13:04 +0000 (00:13 +0000)]
Merge "hacking: also catch 'import oslo.*' imports"

9 years agoFix AttributeError exception for API's test_network_lifecycle
armando-migliaccio [Thu, 12 Feb 2015 23:20:29 +0000 (15:20 -0800)]
Fix AttributeError exception for API's test_network_lifecycle

Change I2be04f600e6bd8d7d78948d25395d8e04fa0dea3 moved the
exception to tempest_lib. We should use the new import.

Closes-bug: #1421454

Change-Id: Id9ec2537261f101b1bed895bfe5ef2943b8548d2

9 years agoRemove root_helper arg for ovs_lib
Terry Wilson [Mon, 9 Feb 2015 04:43:31 +0000 (22:43 -0600)]
Remove root_helper arg for ovs_lib

Stop passing root_helper in ovs_lib classes and instead rely on
execute() looking up the root_helper from the config.

Partially-Implements: blueprint rootwrap-daemon-mode
Change-Id: I24c29a1964582dabaa04358e05be903c8cb49229

9 years agoRaise timeout for test_conntrack_disassociate_fip
Ihar Hrachyshka [Thu, 12 Feb 2015 18:56:31 +0000 (19:56 +0100)]
Raise timeout for test_conntrack_disassociate_fip

It seems that 15 secs is not always enough, so raise the timeout to
something guaranteed to indicate a failure.

Change-Id: I4821983ebb2ef9483c0d35737794ddb45ddd4ac6
Closes-Bug: #1421354

9 years agoMerge "keepalived: use sh instead of bash for notifier scripts"
Jenkins [Thu, 12 Feb 2015 18:19:41 +0000 (18:19 +0000)]
Merge "keepalived: use sh instead of bash for notifier scripts"

9 years agoMerge "Check conntrack rule cleanup on floating IP disassociate"
Jenkins [Thu, 12 Feb 2015 18:13:54 +0000 (18:13 +0000)]
Merge "Check conntrack rule cleanup on floating IP disassociate"

9 years agoMerge "Revert "monkey patch stdlib before importing other modules""
Jenkins [Thu, 12 Feb 2015 17:30:06 +0000 (17:30 +0000)]
Merge "Revert "monkey patch stdlib before importing other modules""

9 years agoMerge "Remove deprecated DEFAULT.root_helper"
Jenkins [Thu, 12 Feb 2015 16:10:34 +0000 (16:10 +0000)]
Merge "Remove deprecated DEFAULT.root_helper"

9 years agoMerge "Scope state reporting rpc api using a messaging namespace"
Jenkins [Thu, 12 Feb 2015 15:53:24 +0000 (15:53 +0000)]
Merge "Scope state reporting rpc api using a messaging namespace"

9 years agoCleanup in keepalived tests
Assaf Muller [Wed, 11 Feb 2015 15:55:19 +0000 (10:55 -0500)]
Cleanup in keepalived tests

A recent patch introduced a new keepalived manager utility
function which returns the keepalived.conf file contents,
but the keepalived functional test was not updated to use it.
Also, a bunch of unneeded logging configuration was removed from
this test.

Additionally, the keepalived configuration functional test
in the L3 agent testing module compares expected configuration
to an in-memory representation of the configuration that will
be persisted to disk. It's better to compare the expected
configuation with what was actually written to disk.

Change-Id: I0d6f73c5326d2ba1960456a151a67517db5cce7a

9 years agoAdd run_as_root option to utils.execute
Terry Wilson [Wed, 21 Jan 2015 20:19:06 +0000 (14:19 -0600)]
Add run_as_root option to utils.execute

This change adds the run_as_root option that exists in the
processutils.execute method. This option makes it possible
to just look up the root_helper from the config when
necessary, while still making it possible to not use any
privilege escalation.

Currently, processutils.execute exposes some eventlet issues
in the neutron codebase, otherwise this patch would just move
us over to using it.

Change-Id: Ic9ebe77dada4f7f044f009ff04494906d4f50ae2
Partially-Implements: blueprint rootwrap-daemon-mode

9 years agoMerge "Move NCS mech driver to its new home"
Jenkins [Thu, 12 Feb 2015 01:27:42 +0000 (01:27 +0000)]
Merge "Move NCS mech driver to its new home"

9 years agoRevert "monkey patch stdlib before importing other modules"
armando-migliaccio [Thu, 12 Feb 2015 01:25:56 +0000 (17:25 -0800)]
Revert "monkey patch stdlib before importing other modules"

The projects that depend on Neutron do not play nicely with this.

This reverts commit 24b11ded7f6ff12f9484aecdb8d30498bf1b9025.

Change-Id: Ic7afd7de9db97cc3a085bc842a2d990519cf42f6

9 years agoRemove unused RPC methods from l3_rpc
Swaminathan Vasudevan [Wed, 11 Feb 2015 23:41:19 +0000 (15:41 -0800)]
Remove unused RPC methods from l3_rpc

This removes the unsued RPC methods from
l3_rpc.py. 'get_snat_router_interface_ports"
was defined but not used by any agent.

Change-Id: Ide08e2a4b183b4f2616550efd5b1fb726b016b4c
Closes-Bug: #1421011

9 years agoMerge "Scope dvr rpc api using a messaging namespace"
Jenkins [Wed, 11 Feb 2015 23:02:15 +0000 (23:02 +0000)]
Merge "Scope dvr rpc api using a messaging namespace"

9 years agoMove NCS mech driver to its new home
Henry Gessau [Sat, 31 Jan 2015 17:57:49 +0000 (12:57 -0500)]
Move NCS mech driver to its new home

The NCS driver is scheduled for decomposition, and in the targetted vendor repo
the files are in a new location in the tree. Before we can decompose the driver
we must move it to its new location in the neutron tree.

A future patch will decompose (thin) the driver and add requirements.txt.

Partial-Bug: #1416713
Partially Implements: blueprint core-vendor-decomposition

Change-Id: If9d098bbbd571f53f945122e007d12d561295546

9 years agoMerge "Moved hacking unit test into proper location"
Jenkins [Wed, 11 Feb 2015 21:56:17 +0000 (21:56 +0000)]
Merge "Moved hacking unit test into proper location"

9 years agoMerge "Refactor radvd control in the l3-agent"
Jenkins [Wed, 11 Feb 2015 21:54:22 +0000 (21:54 +0000)]
Merge "Refactor radvd control in the l3-agent"

9 years agoMerge "Correctly mock-out 'ip route...' calls in IPv6 test"
Jenkins [Wed, 11 Feb 2015 19:19:54 +0000 (19:19 +0000)]
Merge "Correctly mock-out 'ip route...' calls in IPv6 test"

9 years agoMerge "monkey patch stdlib before importing other modules"
Jenkins [Wed, 11 Feb 2015 19:06:50 +0000 (19:06 +0000)]
Merge "monkey patch stdlib before importing other modules"

9 years agoMerge "Add index on tenant_id"
Jenkins [Wed, 11 Feb 2015 16:14:27 +0000 (16:14 +0000)]
Merge "Add index on tenant_id"

9 years agokeepalived: use sh instead of bash for notifier scripts
Ihar Hrachyshka [Wed, 11 Feb 2015 16:10:10 +0000 (17:10 +0100)]
keepalived: use sh instead of bash for notifier scripts

Those scripts are pretty trivial, calling external commands and using
kill -s and $(...) construction. All that is available in POSIX shell,
so let's not use bash in shebang and utilize more performant shell in
case /bin/sh != /bin/bash (valid for Debian based systems).

Change-Id: Ib5264c5ef51ca9028d7c27d440104a5ab978a557

9 years agoMerge "NEC: Merge NEC plugin models into single module"
Jenkins [Wed, 11 Feb 2015 14:44:23 +0000 (14:44 +0000)]
Merge "NEC: Merge NEC plugin models into single module"

9 years agoMerge "Use ovsdb-api neutral column/value mappings"
Jenkins [Wed, 11 Feb 2015 14:11:10 +0000 (14:11 +0000)]
Merge "Use ovsdb-api neutral column/value mappings"

9 years agoMerge "Prepare to functionally test OVSDB interfaces"
Jenkins [Wed, 11 Feb 2015 14:10:57 +0000 (14:10 +0000)]
Merge "Prepare to functionally test OVSDB interfaces"

9 years agohacking: also catch 'import oslo.*' imports
Ihar Hrachyshka [Wed, 11 Feb 2015 13:00:53 +0000 (14:00 +0100)]
hacking: also catch 'import oslo.*' imports

Enhanced N323 hacking check to catch 'import oslo.*' form of obsolete
imports.

Added missing unit tests.

Change-Id: I92ae3818fbfd304dfc5e77596483c7caf6775e69

9 years agoMoved hacking unit test into proper location
Ihar Hrachyshka [Wed, 11 Feb 2015 13:02:55 +0000 (14:02 +0100)]
Moved hacking unit test into proper location

blueprint reorganize-unit-test-tree

Change-Id: I6a3bd8aebad75a5addb543676afecaef43ca30a4

9 years agoMerge "Typos fixed"
Jenkins [Wed, 11 Feb 2015 03:28:28 +0000 (03:28 +0000)]
Merge "Typos fixed"

9 years agoMerge "Remove use of keepalived 'vrrp_sync_group' as it is unused"
Jenkins [Wed, 11 Feb 2015 03:01:20 +0000 (03:01 +0000)]
Merge "Remove use of keepalived 'vrrp_sync_group' as it is unused"

9 years agoUse ovsdb-api neutral column/value mappings
Terry Wilson [Thu, 22 Jan 2015 10:07:50 +0000 (04:07 -0600)]
Use ovsdb-api neutral column/value mappings

The format ('column:field', 'value') for map-type ovsdb values is
ovs-vsctl-specific. The updated implementation-neutral way to do
this is ('column', {'field': 'value'}).

Partially-Implements: blueprint vsctl-to-ovsdb
Change-Id: Icc917c97963204c01e0e9054cdcb9d8ec60f6ec1

9 years agoPrepare to functionally test OVSDB interfaces
Terry Wilson [Thu, 22 Jan 2015 09:52:33 +0000 (03:52 -0600)]
Prepare to functionally test OVSDB interfaces

When the OVSDB interface is added, make it easy to run all
ovs-related functional tests against both interfaces.

Partially-Implements: blueprint vsctl-to-ovsdb
Change-Id: Iadff4ec8c44be61861a2358745c7b08dc8985d26

9 years agoNEC: Merge NEC plugin models into single module
Akihiro Motoki [Fri, 6 Feb 2015 20:06:58 +0000 (05:06 +0900)]
NEC: Merge NEC plugin models into single module

To simplify the maintenance of plugin-specific models,
this patch moves all models of NEC plugin into a single module.

Partial-Bug: #1419396
Related blueprint core-vendor-decomposition

Change-Id: Icd914450bf80bd64abb4bb49c7048d678fd0bf0f

9 years agoTypos fixed
Aparupa [Tue, 10 Feb 2015 21:17:25 +0000 (13:17 -0800)]
Typos fixed

Change-Id: I936261efb9ab59e6149f13b475daf514985a4324

9 years agoScope state reporting rpc api using a messaging namespace
Russell Bryant [Tue, 10 Feb 2015 21:15:59 +0000 (16:15 -0500)]
Scope state reporting rpc api using a messaging namespace

This patch does a couple of things.  First it adds docstrings to the
client/server pair of the rpc interface used by an agent to report
state back to the plugin.  The docs tell you where the other side of
the interface is found in the code, and where docs are that give more
info on the rules for changing them.

The second thing done in this patch is to scope this interface using a
messaging namespace.  Right now some plugins expose several interfaces
via the default namespace.  This effectively means they are a single
API and should be managed with a single version stream.  It's much
more managable to just treat these as separate interfaces and this
change makes that explicit and functionally true.  Now when a method
is invoked, the only classes considered for handling that request will
be ones marked with the right namespace.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: I832db5c81780d98157a68d4abaf9787ba00adbeb

9 years agoMerge "Updated from global requirements"
Jenkins [Tue, 10 Feb 2015 20:32:38 +0000 (20:32 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Deleting HA router with attached port causes DB inconsistencies"
Jenkins [Tue, 10 Feb 2015 20:27:21 +0000 (20:27 +0000)]
Merge "Deleting HA router with attached port causes DB inconsistencies"

9 years agoRemove use of keepalived 'vrrp_sync_group' as it is unused
Yoni Shafrir [Wed, 4 Feb 2015 05:42:13 +0000 (07:42 +0200)]
Remove use of keepalived 'vrrp_sync_group' as it is unused

Now keepalived configuration wraps the VRRP instances with a
'vrrp_sync_group'. The VRRP sync group functionality is only
relevant when more then one VR instance is contained in it.
In that case the VRs in the group will have the same state.
Our use of keepalived uses a single instance per router.

This patch simply removes the 'vrrp_sync_group'.
In this patch VR instances are used on their own and they now
hold the 'notify_scripts'.

Note that the same VRRP functionality is preserved with this
patch.

Another motiviation for this patch, aside from removing
useless configuration, is to lay the foundation for a future
patch that will the related bug by adding 'track_script'
that are not supported with 'vrrp_sync_group'.

Change-Id: I33b81049cd9cf140244bbf121d1a71492161c77c
Related-Bug: #1365461

9 years agoScope dvr rpc api using a messaging namespace
Russell Bryant [Fri, 23 Jan 2015 19:48:07 +0000 (14:48 -0500)]
Scope dvr rpc api using a messaging namespace

This patch does a couple of things.  First it adds docstrings to the
client/server pair of the rpc interface used by the ovs agent
to make dvr related calls back into the Neutron server.  The docs
tell you where the other side of the interface is found in the code,
and where docs are that give more info on the rules for changing them.

The second thing done in this patch is to scope this interface using a
messaging namespace.  Right now some plugins expose several interfaces
via the default namespace.  This effectively means they are a single
API and should be managed with a single version stream.  It's much
more managable to just treat these as separate interfaces and this
change makes that explicit and functionally true.  Now when a method
is invoked, the only classes considered for handling that request will
be ones marked with the right namespace.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: Ieb1f023f5ab0ba66620d07e90005a49f1d40574c

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 10 Feb 2015 17:02:18 +0000 (17:02 +0000)]
Updated from global requirements

Change-Id: I6ed8e5c100148405fb047dfc613d7dee5f8c5582

9 years agoMerge "Remove VPN specific exception"
Jenkins [Tue, 10 Feb 2015 16:40:56 +0000 (16:40 +0000)]
Merge "Remove VPN specific exception"

9 years agoAdd index on tenant_id
Roman Podoliaka [Fri, 19 Dec 2014 10:31:07 +0000 (12:31 +0200)]
Add index on tenant_id

This will greatly speed up SELECTs with filters by tenant_id (e.g.
when checking if we are going to exceed the quota value per resource
per tenant).

Closes-bug: #1419815

Change-Id: Iab80cce701e1f12dbf7a4f60d5ce945c6e7d0e2d

9 years agoRemove deprecated DEFAULT.root_helper
Terry Wilson [Sat, 31 Jan 2015 06:50:52 +0000 (00:50 -0600)]
Remove deprecated DEFAULT.root_helper

root_helper has been deprecated under [DEFAULT] since the quantum
to neutron rename. It's time to finally remove handling it.

DocImpact
UpgradeImpact
Partially-Implements: blueprint rootwrap-daemon-mode
Change-Id: I17cd62c8763430bf3a4b67ab5e9cf5b736065133

9 years agoMerge "Use weak ref to avoid deleting fip namespace through agent"
Jenkins [Tue, 10 Feb 2015 07:30:11 +0000 (07:30 +0000)]
Merge "Use weak ref to avoid deleting fip namespace through agent"

9 years agoMerge "Move DVR floating ip methods to dvr_router"
Jenkins [Tue, 10 Feb 2015 06:50:04 +0000 (06:50 +0000)]
Merge "Move DVR floating ip methods to dvr_router"

9 years agoMerge "Fix lack of device ownership enforcement for DVR routers"
Jenkins [Tue, 10 Feb 2015 06:08:22 +0000 (06:08 +0000)]
Merge "Fix lack of device ownership enforcement for DVR routers"

9 years agoMerge "Reorganize OVSDB API"
Jenkins [Tue, 10 Feb 2015 04:51:47 +0000 (04:51 +0000)]
Merge "Reorganize OVSDB API"

9 years agoMerge "Don't crash when adding duplicate gre allocation"
Jenkins [Tue, 10 Feb 2015 04:50:29 +0000 (04:50 +0000)]
Merge "Don't crash when adding duplicate gre allocation"

9 years agoOVS DVR: Use a right mac address value to compose a flow
YAMAMOTO Takashi [Tue, 10 Feb 2015 04:00:34 +0000 (13:00 +0900)]
OVS DVR: Use a right mac address value to compose a flow

Closes-Bug: #1420092
Change-Id: Ifbeab18e6f9dfc4564b931543ceb3a65edc03b91

9 years agoRefactor radvd control in the l3-agent
Henry Gessau [Sun, 8 Feb 2015 02:19:06 +0000 (21:19 -0500)]
Refactor radvd control in the l3-agent

Several of parameters used by radvd are known when a router is created
and do not need to be passed around every time an RA method is
called. Also, we want to easily check the state of radvd for a router.

Use an object to keep track of the data and state of an radvd process.

Related-blueprint: restructure-l3-agent

Change-Id: I6bcad9d84af5a5b148df7520f582392a8b56a2ec

9 years agoMerge "Add vlan_transparent attribute to network model"
Jenkins [Tue, 10 Feb 2015 02:53:43 +0000 (02:53 +0000)]
Merge "Add vlan_transparent attribute to network model"

9 years agomonkey patch stdlib before importing other modules
Terry Wilson [Thu, 22 Jan 2015 19:52:43 +0000 (13:52 -0600)]
monkey patch stdlib before importing other modules

Some oslo libraries assume that stdlib is already patched when
they are imported (e.g. oslo_concurrency.processutils tests the
'time' module for monkey_patching to detect which 'subprocess'
module to import.

This can cause issues when things like test frameworks import
modules that monkey_patch, as the order imports are made can break
this kind of check. It is always good to monkey patch as soon as
possible, hence trying to do the patching in neutron/__init__.py.

This is an alternative to https://review.openstack.org/#/c/153225/
which just patches neutron/tests/__init__.py. Unfortunately, just
monkey_patching in tests/__init__.py didn't fix all of the issues
I ran into. For example, tempest tests were failing with timeouts.

Closes-bug: #1418541
Change-Id: I7f2115a99acae5b6d61aab2f7334f498b8d99858

9 years agoDon't crash when adding duplicate gre allocation
Jakub Libosvar [Tue, 3 Feb 2015 13:33:39 +0000 (14:33 +0100)]
Don't crash when adding duplicate gre allocation

This patch catches DBDuplicateError when initializing ML2 GRE type
driver and allocation already exists in DB. Because current allocations
are queried and then only those that doesn't exist in database are
added, DBDuplicateError should never occur.

But the race can happen when running multiple neutron-servers and one
of servers adds allocations between allocations are queried and added.

Change-Id: I427b7020d61b0d2c06292ff2804ba1f4483696c6
Closes-bug: 1417560

9 years agoMerge "Use proper capitalization for OVS table names"
Jenkins [Mon, 9 Feb 2015 22:52:30 +0000 (22:52 +0000)]
Merge "Use proper capitalization for OVS table names"

9 years agoMerge "Fixing several misspellings in neutron"
Jenkins [Mon, 9 Feb 2015 22:50:37 +0000 (22:50 +0000)]
Merge "Fixing several misspellings in neutron"

9 years agoMerge "Adopt rpc_api devref to new oslo_messaging namespace"
Jenkins [Mon, 9 Feb 2015 21:04:12 +0000 (21:04 +0000)]
Merge "Adopt rpc_api devref to new oslo_messaging namespace"

9 years agoFix lack of device ownership enforcement for DVR routers
armando-migliaccio [Fri, 6 Feb 2015 00:27:52 +0000 (16:27 -0800)]
Fix lack of device ownership enforcement for DVR routers

The enforcement rule was applied to centralized router interfaces, to avoid
a potential security vulnerabilty.

Even though DVR routers are fundamentally different from centralized routers,
there is no good reason as to why the rule should be skipped for DVR interfaces.

This patch sanitizes the insanity a bit and closes this potential loophole by
preventing the operation for DVR routers too.

Related-bug: #1243327
Closes-bug: #1410984

Change-Id: I048e6e3926e1c74cf9ecb63cfb53a0b1afb3c579

9 years agoMerge "Fix minor nits with the devref's contribute section"
Jenkins [Mon, 9 Feb 2015 18:47:47 +0000 (18:47 +0000)]
Merge "Fix minor nits with the devref's contribute section"

9 years agoMerge "Add mtu attributes to network model"
Jenkins [Mon, 9 Feb 2015 17:52:54 +0000 (17:52 +0000)]
Merge "Add mtu attributes to network model"

9 years agoMerge "l2-pop shouldn't notify agent about inactive ports"
Jenkins [Mon, 9 Feb 2015 15:36:12 +0000 (15:36 +0000)]
Merge "l2-pop shouldn't notify agent about inactive ports"

9 years agoMerge "Refactor logging in loop to only log debug messages once"
Jenkins [Mon, 9 Feb 2015 15:34:04 +0000 (15:34 +0000)]
Merge "Refactor logging in loop to only log debug messages once"