]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 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 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

9 years agoAdd section for DevStack Integration Strategies to the DevRef
armando-migliaccio [Tue, 3 Feb 2015 03:24:11 +0000 (19:24 -0800)]
Add section for DevStack Integration Strategies to the DevRef

Plugins may already have DevStack support, that may need to be revised
according to the decomposition. If a plugin/driver does not have one,
it is necessary to add it to ease the development effort. This section
explains what DevStack integration options are available, in relation
to the dev/test cycle and 3rd party CI systems.

Links were not rendered correctly. So this patch takes care of that too.

Partially implements blueprint: core-vendor-decomposition

Change-Id: Ib12e38d775af1e5a840bd009c95dac4c982b9753

9 years agoMerge "Nuke a useless lambda wrapper and call to iterkeys (review feedback)"
Jenkins [Thu, 5 Feb 2015 18:53:58 +0000 (18:53 +0000)]
Merge "Nuke a useless lambda wrapper and call to iterkeys (review feedback)"

9 years agoVMware: consolidate NSX models
Salvatore Orlando [Wed, 4 Feb 2015 11:43:10 +0000 (03:43 -0800)]
VMware: consolidate NSX models

This patch moves all the models for the NSX plugin currently in trunk
into a single module. The module neutron.db.migration.models.head is
also updated accordingly.

This patches is aimed at simplifying the decomposition of the VMware
NSX plugin.

Related blueprint core-vendor-decomposition

Change-Id: I32be9996a76ab874d1b982f0be10ae393d48060b

9 years agoRestore and fix vmware unit tests
Salvatore Orlando [Sun, 1 Feb 2015 07:49:38 +0000 (23:49 -0800)]
Restore and fix vmware unit tests

This patch actually restores vmware unit tests, by adding back
the __init__.py file which was renamed during the advanced
service spinoff and not reinstated when fixing vmware code to
comply with the spinoff.

Furthermore, this patch also fixes a minor issue with context
usage in vmware unit tests which is triggering failures because
of the new database constraint introduced with the commit
79c97120de9cff4d0992b5d41ff4bbf05e890f89

Finally, flake8 tests on vmware directories are also restored
with this patch.

Change-Id: Ib63463fca28bbb4a1eb60b8f5f4b63b3d3367c9e
Closes-Bug: #1416593
Closes-Bug: #1416596

9 years agoMove extra routes processing to router classes
Assaf Muller [Mon, 26 Jan 2015 21:22:16 +0000 (16:22 -0500)]
Move extra routes processing to router classes

Move legacy and HA routers implementation of the extra
routes extension to their respective router classes.
Move the unit tests as well.

Partially-Implements: blueprint restructure-l3-agent
Change-Id: Iec642dde3e1f2ffdfae4cdfb9cbdc777cad52a39

9 years agooslo: migrate to namespace-less import paths
Ihar Hrachyshka [Thu, 8 Jan 2015 16:25:23 +0000 (17:25 +0100)]
oslo: migrate to namespace-less import paths

Oslo project decided to move away from using oslo.* namespace for all their
libraries [1], so we should migrate to new import path.

This patch applies new paths for:
- oslo.config
- oslo.db
- oslo.i18n
- oslo.messaging
- oslo.middleware
- oslo.rootwrap
- oslo.serialization
- oslo.utils

Added hacking check to enforce new import paths for all oslo libraries.

Updated setup.cfg entry points.

We'll cleanup old imports from oslo-incubator modules on demand or
if/when oslo officially deprecates old namespace in one of the next
cycles.

[1]: https://blueprints.launchpad.net/oslo-incubator/+spec/drop-namespace-packages

Depends-On: https://review.openstack.org/#/c/147248/
Depends-On: https://review.openstack.org/#/c/152292/
Depends-On: https://review.openstack.org/#/c/147240/

Closes-Bug: #1409733
Change-Id: If0dce29a0980206ace9866112be529436194d47e

9 years agoMerge "Allow to request metadata proxy only with redirection"
Jenkins [Thu, 5 Feb 2015 12:06:37 +0000 (12:06 +0000)]
Merge "Allow to request metadata proxy only with redirection"

9 years agoMerge "Not assign dynamic IPv6 address on dhcp interface"
Jenkins [Thu, 5 Feb 2015 10:13:00 +0000 (10:13 +0000)]
Merge "Not assign dynamic IPv6 address on dhcp interface"

9 years agoMerge "Pass '--dhcp-authoritative' option to dnsmasq"
Jenkins [Thu, 5 Feb 2015 07:19:09 +0000 (07:19 +0000)]
Merge "Pass '--dhcp-authoritative' option to dnsmasq"

9 years agoMerge "Log entry when no Floating IP interface present"
Jenkins [Thu, 5 Feb 2015 06:12:38 +0000 (06:12 +0000)]
Merge "Log entry when no Floating IP interface present"

9 years agoMerge "Fix breakage in all service repo unit tests, due to duplicate imports of exts"
Jenkins [Thu, 5 Feb 2015 05:47:36 +0000 (05:47 +0000)]
Merge "Fix breakage in all service repo unit tests, due to duplicate imports of exts"

9 years agoFix breakage in all service repo unit tests, due to duplicate imports of exts
Doug Wiegley [Thu, 5 Feb 2015 03:33:35 +0000 (21:33 -0600)]
Fix breakage in all service repo unit tests, due to duplicate imports of exts

Duplicate imports of the same class + super() are not playing nicely
together, and our unit test base classes cause some dups in the extension
search path, breaking the service repos. This was not noticed earlier
in the extension moving process, because the temporary move code had a crude
mechanism to prevent the loading of same named extensions.

Change-Id: I0fbb2dbc01c67bb47a79f630ad352d1d92b6bb91
Partially-Implements: blueprint services-split

9 years agoLog entry when no Floating IP interface present
rajeev [Wed, 4 Feb 2015 22:48:16 +0000 (17:48 -0500)]
Log entry when no Floating IP interface present

Having a log entry here in process_router_floating_ip_addresses
would make it easier to understand why the status of floating ips
wasn't updated.

Change-Id: If7ff3d8951010ed2a4e802acdb948cfdfcb5dda6
Related-bug: #1415522

9 years agoMerge "Updated from global requirements"
Jenkins [Thu, 5 Feb 2015 00:03:43 +0000 (00:03 +0000)]
Merge "Updated from global requirements"