]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoRemove error logs for a common situation (non created ipsets)
Miguel Angel Ajo [Tue, 17 Feb 2015 12:28:46 +0000 (12:28 +0000)]
Remove error logs for a common situation (non created ipsets)

The log message was initially added by me as part of a
iptables_firewall refactor.

Ipsets for empty IP address lists aren't currently created,
that means that we can't reference empty security groups
(as ipsets) via iptable rules, and that's a normal condition,
not an error.

Closes bug: #1421772
Change-Id: I6b1ae1fb505ce5e76ef8cf7ef7df38cff57e0000

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 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 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 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 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 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"

9 years agoAdopt rpc_api devref to new oslo_messaging namespace
Ihar Hrachyshka [Sat, 7 Feb 2015 09:15:28 +0000 (10:15 +0100)]
Adopt rpc_api devref to new oslo_messaging namespace

Change-Id: Ib6f58cffae882652da52962c9e61298193b50d62

9 years agoFix minor nits with the devref's contribute section
armando-migliaccio [Sat, 7 Feb 2015 07:44:07 +0000 (23:44 -0800)]
Fix minor nits with the devref's contribute section

Be more explicit on the adoption of Externally Hosted Plugins, which
are based on Extra.d Hooks.

Partially-implement: blueprint core-vendor-decomposition

Change-Id: I4510aaa74c8853278b1c17757d4f4fa67554093a

9 years agoMerge "Cleanup dead code for dnsmasq"
Jenkins [Sat, 7 Feb 2015 06:18:06 +0000 (06:18 +0000)]
Merge "Cleanup dead code for dnsmasq"

9 years agoRemove VPN specific exception
armando-migliaccio [Sat, 7 Feb 2015 02:11:11 +0000 (18:11 -0800)]
Remove VPN specific exception

This exception is an overkill, and can be safely removed. The tests
affected were not designed to cover any regression as they were asserting
that the mocked Exception was being raised, defeating the very purpose of
catching the regression; they have been revised to ensure that the checks
are not misplaced in future revision of the code, or that they behave the
way they are supposed to.

Partially-Implements: blueprint services-split
Depends-On: https://review.openstack.org/#/c/153543/

Change-Id: I22cc8cd4383259dd4ee20bcbc041d589172d88c8

9 years agoCorrectly mock-out 'ip route...' calls in IPv6 test
Brian Haley [Thu, 5 Feb 2015 20:18:10 +0000 (15:18 -0500)]
Correctly mock-out 'ip route...' calls in IPv6 test

In neutron/tests/unit/test_linux_interface.py, test
TestABCDriver.test_l3_init_with_ipv6() missed
mocking-out calls to 'ip route...'.

Introduced in commit fc7cffedbe60.

This also required forcing init_l3() to always specify
that the netaddr library should return a zero-filled
network for IPv6.

Change-Id: Ic69830ac21113815794def5227fc21664d7fcbb8
Closes-Bug: #1418704

9 years agoMerge "Fixes Multiple External Networks issue with DVR"
Jenkins [Sat, 7 Feb 2015 00:24:14 +0000 (00:24 +0000)]
Merge "Fixes Multiple External Networks issue with DVR"

9 years agoCleanup dead code for dnsmasq
Han Zhou [Tue, 3 Feb 2015 05:36:23 +0000 (13:36 +0800)]
Cleanup dead code for dnsmasq

In fix of bug 1202392, there was dead code left [1]. This patch
cleans them up.

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

Change-Id: I02edb9ce6ac639e84089afea5a900462e61b934a

9 years agoAdd mtu attributes to network model
Pradeep Kilambi [Fri, 6 Feb 2015 01:06:21 +0000 (17:06 -0800)]
Add mtu attributes to network model

Database changes to support including mtu as
part of the network model.

Change-Id: Id6410de8844d3476893647b22baa7f1a96f1df8b
Partially-Implements: blueprint mtu-selection-and-advertisement

9 years agoAdd the rebinding chance in _bind_port_if_needed
Yalei Wang [Thu, 8 Jan 2015 02:46:08 +0000 (10:46 +0800)]
Add the rebinding chance in _bind_port_if_needed

Make function _bind_port_if_needed to bind at least one time when the port's
binding status passed in is already in binding_failed.

Change-Id: I823ff5ca66833cdca459f13ab28f5075ae03ded3
Closes-Bug: #1399249

9 years agoAdd vlan_transparent attribute to network model
Pritesh Kothari [Thu, 5 Feb 2015 23:20:38 +0000 (15:20 -0800)]
Add vlan_transparent attribute to network model

VLAN trunking networks for NFV blueprint needs a new vlan_transparent
attribute. Add this attribute to the network model.

Partially-Implements: blueprint nfv-vlan-trunks
Change-Id: Ib973f196989b3b119e309ce7100a1e7e7c73b3a4

9 years agoCheck conntrack rule cleanup on floating IP disassociate
Ihar Hrachyshka [Tue, 11 Nov 2014 16:15:37 +0000 (17:15 +0100)]
Check conntrack rule cleanup on floating IP disassociate

Check that conntrack rule is cleaned up immediately after floating IP is
disassociated.

Extend NetcatTester class to allow to specify different addresses for
client and server sides of connection. Fixed the class not to pass -k
option for UDP connections (otherwise the test fails when used with nmap
netcat implementation).

Change-Id: Iaa11e65a0bcf7860d4caa629c3107e5a0a48fd39

9 years agoMerge "Drop devstack-gate files from Neutron repo"
Jenkins [Fri, 6 Feb 2015 20:45:25 +0000 (20:45 +0000)]
Merge "Drop devstack-gate files from Neutron repo"

9 years agoMerge "VMware: consolidate NSX models"
Jenkins [Fri, 6 Feb 2015 20:29:07 +0000 (20:29 +0000)]
Merge "VMware: consolidate NSX models"

9 years agol2-pop shouldn't notify agent about inactive ports
Chengli XU [Wed, 25 Jun 2014 14:26:04 +0000 (22:26 +0800)]
l2-pop shouldn't notify agent about inactive ports

When an agent starts, or the first port of an agent becomes active,
l2 population mechanism driver will notify the agent of all ports on other agents.
It should not notify about inactive ports.

Basically, this patch-set is needed for fixing the bug 1332450.

Co-Authored-By: Romil Gupta <romilg@hp.com>
Closes-Bug: #1334292
Change-Id: Ifbbd7c4e22d4a6383a3c77a9d9ac9a37302c38c3

9 years agoMerge "oslo: migrate to namespace-less import paths"
Jenkins [Fri, 6 Feb 2015 14:38:57 +0000 (14:38 +0000)]
Merge "oslo: migrate to namespace-less import paths"

9 years agoMerge "Move extra routes processing to router classes"
Jenkins [Fri, 6 Feb 2015 06:23:11 +0000 (06:23 +0000)]
Merge "Move extra routes processing to router classes"

9 years agoDrop devstack-gate files from Neutron repo
armando-migliaccio [Fri, 6 Feb 2015 02:03:43 +0000 (18:03 -0800)]
Drop devstack-gate files from Neutron repo

These files are no longer necessary, as [1,2] have
merged successfully.

[1] https://review.openstack.org/#/c/148052
[2] https://review.openstack.org/#/c/148641

Change-Id: Ia2a5c71ec5f6b8a7e477150b10faf9e856074763

9 years agoMerge "Restore and fix vmware unit tests"
Jenkins [Fri, 6 Feb 2015 03:41:05 +0000 (03:41 +0000)]
Merge "Restore and fix vmware unit tests"

9 years agoMerge "Provide more details about testing strategies"
Jenkins [Fri, 6 Feb 2015 00:56:26 +0000 (00:56 +0000)]
Merge "Provide more details about testing strategies"

9 years agoUse weak ref to avoid deleting fip namespace through agent
Carl Baldwin [Mon, 2 Feb 2015 23:34:24 +0000 (23:34 +0000)]
Use weak ref to avoid deleting fip namespace through agent

By using a weak ref in the agent to keep track of the fip namespaces,
we avoid having to call a method directly on the agent to delete a fip
namespace.  When the last router removes the last floating ip, the
fip_ns is marked destroyed and the router's strong reference is
removed.  This allows the garbage collector to reap it.  When the
agent goes looking for the fip namespace instance again, it will check
to see that it has not been garbage collected and that it has not been
destroyed before using it.

The goal here is to avoid having to ask the agent to delete a fip
namespace.  We know to delete a fip namespace when all of the floating
ips are gone.  We delete floating ips in the context of processing a
router.  So, having to call back out to the agent to destroy the fip
namespace is preventing some of this code from being moved in to the
router context.

Change-Id: I1b10f5d3233378ef9d8ef7b82659d3e775dac6b7
Partially-Implements: bp/restructure-l3-agent

9 years agoMove DVR floating ip methods to dvr_router
Carl Baldwin [Tue, 20 Jan 2015 16:48:47 +0000 (16:48 +0000)]
Move DVR floating ip methods to dvr_router

Change-Id: Ic751d87df2d2fb44683f1dd555e8ed86dff3aeaf
Partially-Implements: bp/restructure-l3-agent

9 years agoMerge "Add section for DevStack Integration Strategies to the DevRef"
Jenkins [Thu, 5 Feb 2015 21:14:38 +0000 (21:14 +0000)]
Merge "Add section for DevStack Integration Strategies to the DevRef"

9 years agoProvide more details about testing strategies
armando-migliaccio [Tue, 3 Feb 2015 22:55:55 +0000 (14:55 -0800)]
Provide more details about testing strategies

With the decomp running at full steam, some questions have been
raised on Gerrit, IRC or the mailing list. This patch adds more
details on how to go about unit testing and some current limitations
of 3rd party systems.

Partial-implements: blueprint core-vendor-decomposition

Change-Id: I3920bb394d57de126fd0de8a238f7b710baa1075