]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoCisco Nexus1000V ML2 Mechanism Driver
Abhishek Raut [Thu, 19 Feb 2015 02:37:29 +0000 (18:37 -0800)]
Cisco Nexus1000V ML2 Mechanism Driver

Introduces the Cisco Nexus1000V Mechanism driver for ML2 plugin.
All the vendor specific code resides in stackforge repo networking-cisco.

Closes-Bug: #1425632
Partial-Implements: blueprint core-vendor-decomposition

Change-Id: I66bf83f45bf1e0269d0876196f6aa032b0fa859f
Co-Authored-By: Steven Hillman <sthillma@cisco.com>
9 years agoMerge "Fix intermittent failure in TestNetworksFailover UT"
Jenkins [Wed, 25 Mar 2015 16:33:32 +0000 (16:33 +0000)]
Merge "Fix intermittent failure in TestNetworksFailover UT"

9 years agoMerge "Fix a usage error of joinedload + filter in l3 scheduler"
Jenkins [Wed, 25 Mar 2015 15:18:52 +0000 (15:18 +0000)]
Merge "Fix a usage error of joinedload + filter in l3 scheduler"

9 years agoMerge "Move metadata proxy shared options to neutron.conf"
Jenkins [Wed, 25 Mar 2015 15:15:09 +0000 (15:15 +0000)]
Merge "Move metadata proxy shared options to neutron.conf"

9 years agoMerge "Fix a usage error of joinedload + filter in dhcp scheduler"
Jenkins [Wed, 25 Mar 2015 10:42:22 +0000 (10:42 +0000)]
Merge "Fix a usage error of joinedload + filter in dhcp scheduler"

9 years agoMerge "Fix handling of before/after notifications in linuxbridge agent"
Jenkins [Wed, 25 Mar 2015 10:42:09 +0000 (10:42 +0000)]
Merge "Fix handling of before/after notifications in linuxbridge agent"

9 years agoMerge "Add the default_ipv6_subnet_pool config option"
Jenkins [Wed, 25 Mar 2015 07:42:32 +0000 (07:42 +0000)]
Merge "Add the default_ipv6_subnet_pool config option"

9 years agoFix a usage error of joinedload + filter in l3 scheduler
YAMAMOTO Takashi [Tue, 27 Jan 2015 06:32:19 +0000 (15:32 +0900)]
Fix a usage error of joinedload + filter in l3 scheduler

This commit fixes admin_state_up filtering in
get_l3_agents_hosting_routers.  Also, adapt its callers
which rely on the current broken implementation.

Details:

With the current coding, joinedload() produces a JOIN and
the following filter() on the columns from the joined table
would create another JOIN of the same table.  (As t1 in the
following example).  It doesn't seem to be the intended
behaviour.  As a consequence the filter (WHERE clause in
the following examples) doesn't work as expected.

Queries before this fix looked like the following,
where t1 and t2 are Agent and RouterL3AgentBinding respectively:

    SELECT t2.aaa, t1_1.bbb, ...
    FROM t1, t2 LEFT OUTER JOIN t1 AS t1_1 ON t1_1.ccc = t2.ddd
    WHERE t1.eee = ...;

After the fix, it would be:

    SELECT t2.aaa, t1.bbb, ...
    FROM t2 JOIN t1 ON t1.ccc = t2.ddd
    WHERE t1.eee = ...;

Reference: http://docs.sqlalchemy.org/en/rel_0_9/orm/loading_relationships.html#contains-eager

Partial-Bug: #1414905
Closes-Bug: #1410841
Change-Id: I2243cdfda5c6fe5ef67f96e3274d5381a6e50e62

9 years agoMerge "Add eventlet monkey_patch helper"
Jenkins [Wed, 25 Mar 2015 04:58:59 +0000 (04:58 +0000)]
Merge "Add eventlet monkey_patch helper"

9 years agoMerge "Transform BaseLinuxTestCase methods in helpers"
Jenkins [Tue, 24 Mar 2015 23:00:28 +0000 (23:00 +0000)]
Merge "Transform BaseLinuxTestCase methods in helpers"

9 years agoMerge "Ml2 Mechanism Driver for OVSvApp Solution"
Jenkins [Tue, 24 Mar 2015 21:16:05 +0000 (21:16 +0000)]
Merge "Ml2 Mechanism Driver for OVSvApp Solution"

9 years agoMerge "Deprecate use_namespaces option"
Jenkins [Tue, 24 Mar 2015 19:17:52 +0000 (19:17 +0000)]
Merge "Deprecate use_namespaces option"

9 years agoMl2 Mechanism Driver for OVSvApp Solution
Romil Gupta [Mon, 2 Mar 2015 07:25:37 +0000 (23:25 -0800)]
Ml2 Mechanism Driver for OVSvApp Solution

With the introduction of stackforge/networking-vsphere project
which includes the OVSvApp L2 agent for doing vsphere networking
using neutron.

We need to have thin mechanism driver in neutron which integrates
the ml2 plugin with the OVSvApp L2 Agent.

The mechanism driver implements the abstract method given in
mech_agent.SimpleAgentMechanismDriverBase.

Closes-Bug: 1426365
Partially-implements: blueprint core-vendor-decomposition

Change-Id: I57b2abb58671b8a1c6a2734959346ddeb8fda988

9 years agoAdd eventlet monkey_patch helper
Adelina Tuvenie [Tue, 24 Mar 2015 10:06:21 +0000 (03:06 -0700)]
Add eventlet monkey_patch helper

Eventlet monkey patching the os and thread modules causes subprocess.Popen
to fail on Windows when using pipes due to missing non-blocking IO support.
There is an reported bug on eventlet [1] with this issue. The solution
for this issue is to not monkey_patch os and thread.

This change is needed in order to run ovs_neutron_agent on Windows platforms.

[1] https://bitbucket.org/eventlet/eventlet/issue/132/eventletmonkey_patch-breaks

Partially implements blueprint: hyper-v-ovs-agent

Change-Id: I73f5dfc16563da2c09b5440a687484ba5a1fc2de

9 years agoDeprecate use_namespaces option
Assaf Muller [Mon, 23 Mar 2015 15:27:00 +0000 (11:27 -0400)]
Deprecate use_namespaces option

Change-Id: I3a769a0195aba45ec836b669fe049f0b8eba884f
Closes-Bug: #1435382

9 years agoAdd the default_ipv6_subnet_pool config option
John Davidge [Mon, 23 Mar 2015 19:00:14 +0000 (19:00 +0000)]
Add the default_ipv6_subnet_pool config option

This config option will allow an admin to set the default subnet-pool
to be used for automatic subnet CIDR allocation in the case of subnet-create
being called without a CIDR or subnet-pool ID.

This also paves the way for enabling IPv6 Prefix Delegation in PD-capable
environments.

DocImpact
Change-Id: Ifdd6e5267e4e5d32e72478ca4ac7e255eb3346ff
Partially-Implements: blueprint subnet-allocation

9 years agoFix handling of before/after notifications in linuxbridge agent
Eugene Nikanorov [Mon, 23 Mar 2015 03:51:06 +0000 (07:51 +0400)]
Fix handling of before/after notifications in linuxbridge agent

Avoid problem similar to described in bug #1367881

Change-Id: I76059469c20be9161743ba730e46da1789ded4a8
Closes-Bug: #1407887
Related-Bug: #1367881

9 years agoMerge "Expose ha_state per router to agent binding via API"
Jenkins [Tue, 24 Mar 2015 02:43:10 +0000 (02:43 +0000)]
Merge "Expose ha_state per router to agent binding via API"

9 years agoMerge "Remove downgrade from existing migrations"
Jenkins [Tue, 24 Mar 2015 02:26:39 +0000 (02:26 +0000)]
Merge "Remove downgrade from existing migrations"

9 years agoMerge "Move external port processing to router classes"
Jenkins [Tue, 24 Mar 2015 02:25:54 +0000 (02:25 +0000)]
Merge "Move external port processing to router classes"

9 years agoMerge "Fixes floating IP regression with multiple routers"
Jenkins [Tue, 24 Mar 2015 02:07:03 +0000 (02:07 +0000)]
Merge "Fixes floating IP regression with multiple routers"

9 years agoMerge "Add no_delete flag to UT router context manager"
Jenkins [Tue, 24 Mar 2015 01:59:37 +0000 (01:59 +0000)]
Merge "Add no_delete flag to UT router context manager"

9 years agoMerge "Fix metering agent failure when chain missing"
Jenkins [Tue, 24 Mar 2015 01:50:17 +0000 (01:50 +0000)]
Merge "Fix metering agent failure when chain missing"

9 years agoMove external port processing to router classes
Carl Baldwin [Mon, 23 Feb 2015 23:01:47 +0000 (23:01 +0000)]
Move external port processing to router classes

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

9 years agoMerge "Move README.odl into opendaylight directory"
Jenkins [Mon, 23 Mar 2015 22:01:07 +0000 (22:01 +0000)]
Merge "Move README.odl into opendaylight directory"

9 years agoExpose ha_state per router to agent binding via API
Assaf Muller [Sun, 5 Oct 2014 12:02:59 +0000 (15:02 +0300)]
Expose ha_state per router to agent binding via API

l3-agent-list-hosting-router will now return with a new 'ha_state'
attribute, per agent. It signifies the HA state of the router on that
agent.

Implements: blueprint report-ha-router-master
Change-Id: Ie0f53b7565d53ff791b0cdcca20be2b4415b49cc

9 years agoMerge "Drop support for SQL Schema Downgrades"
Jenkins [Mon, 23 Mar 2015 21:28:20 +0000 (21:28 +0000)]
Merge "Drop support for SQL Schema Downgrades"

9 years agoMerge "Remove unneeded DVRAgentRpcApiMixin from OVSDVRNeutronAgent"
Jenkins [Mon, 23 Mar 2015 19:42:27 +0000 (19:42 +0000)]
Merge "Remove unneeded DVRAgentRpcApiMixin from OVSDVRNeutronAgent"

9 years agoMerge "Start metadata agent without trying to connect db"
Jenkins [Mon, 23 Mar 2015 16:45:05 +0000 (16:45 +0000)]
Merge "Start metadata agent without trying to connect db"

9 years agoTransform BaseLinuxTestCase methods in helpers
Cedric Brandily [Thu, 19 Mar 2015 14:18:03 +0000 (14:18 +0000)]
Transform BaseLinuxTestCase methods in helpers

This change transforms BaseLinuxTestCase[1] methods into helpers.  They
are not removed but transformed into wrappers to helpers methods to
reduce change size.  A follow-up change will remove them and adapt
testcases currently using them.

[1] in neutron.tests.functional.agent.linux.base

Change-Id: Id325a91b74ff7a989739eea5cac61009dc5dc945

9 years agoMerge "Add sanity check for OVSDB native support"
Jenkins [Mon, 23 Mar 2015 16:01:06 +0000 (16:01 +0000)]
Merge "Add sanity check for OVSDB native support"

9 years agoRemove downgrade from existing migrations
Ann Kamyshnikova [Thu, 19 Mar 2015 08:52:37 +0000 (11:52 +0300)]
Remove downgrade from existing migrations

Remove downgrade from all existing migrations.
Create a test that verifies that no migration has a downgrade.

Related cross-project spec: https://review.openstack.org/152337
Closes-Bug: 1434103

Change-Id: I2aad5f40f9aec9aea7ea869c9f30bc5ea586f3fe

9 years agoDrop support for SQL Schema Downgrades
Henry Gessau [Thu, 12 Mar 2015 11:50:47 +0000 (07:50 -0400)]
Drop support for SQL Schema Downgrades

Remove downgrade from the --autogenerate option of neutron-db-manage.
Add tests to check that downgrade options cannot be used.

Related cross-project spec: https://review.openstack.org/152337
Partial-Bug: 1434103

Change-Id: Id2f7f521644828ab7fbc027c6037f76f0337e121

9 years agoMerge "Improve validate of remove_router_interface"
Jenkins [Mon, 23 Mar 2015 10:08:25 +0000 (10:08 +0000)]
Merge "Improve validate of remove_router_interface"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Mon, 23 Mar 2015 06:13:14 +0000 (06:13 +0000)]
Imported Translations from Transifex

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

Change-Id: Ib0355086082cbe2ddcd73534347f7a262fcd35ad

9 years agoMerge "Fix typos in neutron/db/migration"
Jenkins [Sun, 22 Mar 2015 18:14:24 +0000 (18:14 +0000)]
Merge "Fix typos in neutron/db/migration"

9 years agoMerge "Prepare Base(OVS)LinuxTestCase transformation in helpers"
Jenkins [Sun, 22 Mar 2015 16:45:43 +0000 (16:45 +0000)]
Merge "Prepare Base(OVS)LinuxTestCase transformation in helpers"

9 years agoMerge "Fix missing spaces in strings split across lines"
Jenkins [Sun, 22 Mar 2015 16:45:09 +0000 (16:45 +0000)]
Merge "Fix missing spaces in strings split across lines"

9 years agoMerge "Validate when DVR enabled, l2_pop is also enabled"
Jenkins [Sun, 22 Mar 2015 14:50:39 +0000 (14:50 +0000)]
Merge "Validate when DVR enabled, l2_pop is also enabled"

9 years agoMerge "Remove redundant unit tests from OVS DVR Agent"
Jenkins [Sun, 22 Mar 2015 14:50:23 +0000 (14:50 +0000)]
Merge "Remove redundant unit tests from OVS DVR Agent"

9 years agoMove README.odl into opendaylight directory
Kyle Mestery [Sun, 22 Mar 2015 09:49:40 +0000 (09:49 +0000)]
Move README.odl into opendaylight directory

This file was missed when the driver was moved into it's own directory.

Change-Id: Ic902bdfdbe02f4ac7837662147a2b7b31ca4e621

9 years agoFix missing spaces in strings split across lines
Brian Bowen [Wed, 11 Mar 2015 20:41:19 +0000 (16:41 -0400)]
Fix missing spaces in strings split across lines

Change-Id: Ib40614aaff78a1a2c5d7aa20679ee48f18441218
Closes-bug: #1430994

9 years agoMerge "Updated from global requirements"
Jenkins [Sun, 22 Mar 2015 09:35:36 +0000 (09:35 +0000)]
Merge "Updated from global requirements"

9 years agoFix typos in neutron/db/migration
Mitsuhiro SHIGEMATSU [Fri, 20 Mar 2015 22:24:44 +0000 (07:24 +0900)]
Fix typos in neutron/db/migration

Change-Id: I1ec582fbbf910316d39b8acf08a46f41806ba5f5

9 years agoMerge "Send notification to controller about HA router state change"
Jenkins [Sat, 21 Mar 2015 18:43:07 +0000 (18:43 +0000)]
Merge "Send notification to controller about HA router state change"

9 years agoFix intermittent failure in TestNetworksFailover UT
armando-migliaccio [Tue, 24 Mar 2015 22:09:35 +0000 (15:09 -0700)]
Fix intermittent failure in TestNetworksFailover UT

Ensure that the periodic check does not get in the way of method
calls being tested, by stopping the periodic task from running.

This patch moves the mock for the periodic check into the
setup_coreplugin call so it gets called by unit tests that
use the core plugin.

The previous location after the construction of the API router was
too late because the core plugin was already constructed by the
neutron manager. This led to random failures because the periodic
tasks leaked by all of the unit tests would occasionally preempt
test_reschedule_network_from_down_agent in automatically removing
a network from an agent.

Co-Author: Jenkins <jenkins@review.openstack.org>

Change-Id: I60ad7fa8ca874f93b7f806a0e035be84180a5de9
Closes-bug: #1432958

9 years agoMerge "Fix usage of 'default' parameter in 1955efc66455 migration"
Jenkins [Sat, 21 Mar 2015 01:39:05 +0000 (01:39 +0000)]
Merge "Fix usage of 'default' parameter in 1955efc66455 migration"

9 years agoFixes floating IP regression with multiple routers
Kevin Fox [Wed, 18 Feb 2015 22:01:49 +0000 (14:01 -0800)]
Fixes floating IP regression with multiple routers

During the refactor here:
Change-Id: I09e8a694cdff7f64a642a39b45cbd12422132806
Too much code was removed and caused floating ips to get miss assigned when
multiple routers with external networks in the same tenant are present. The
first router in the tenant was always being chosen. This patch adds back
some of the original code as well as a unit test.

Change-Id: I6f663cb1ce3e4a1340c415d13787a9855c4dcac2
Closes-Bug: 1422476

9 years agoAdd no_delete flag to UT router context manager
Kevin Benton [Sat, 21 Mar 2015 00:40:43 +0000 (17:40 -0700)]
Add no_delete flag to UT router context manager

Adds a no_delete flag to the router context manager in
the unit tests to allow specific tests to avoid executing
all of the cleanup logic for floating IPs and interfaces
just to exit the test.

Ultimately, this should become the default once we are
comfortable that there is adequate explicit unit tests
for the deletion logic.

Change-Id: Iecbcc77b67b440d726fa6e703a87884e0b0df321

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Sat, 21 Mar 2015 00:10:47 +0000 (00:10 +0000)]
Updated from global requirements

Change-Id: I50e3c7989d7d2f109672d1d47869041e31b32439

9 years agoSend notification to controller about HA router state change
Assaf Muller [Sun, 28 Sep 2014 11:26:42 +0000 (14:26 +0300)]
Send notification to controller about HA router state change

The L3 agent gets keepalived state change notifications via
a unix domain socket. These events are now batched and
send out as a single RPC to the server. In case the same
router got updated multiple times during the batch period,
only the latest state is sent.

Partially-Implements: blueprint report-ha-router-master
Change-Id: I36834ad3d9e8a49a702f01acc29c7c38f2d48833

9 years agoFix usage of 'default' parameter in 1955efc66455 migration
Ann Kamyshnikova [Fri, 20 Mar 2015 15:30:27 +0000 (18:30 +0300)]
Fix usage of 'default' parameter in 1955efc66455 migration

'default' is useless in migration, to provide default value in db
should be used server_default instead.

Closes-bug: #1434601

Change-Id: If17b48213e03f4b01db08186c272c67709e147f5

9 years agoMerge "Add native OVSDB implementation of OVSDB API"
Jenkins [Fri, 20 Mar 2015 21:37:56 +0000 (21:37 +0000)]
Merge "Add native OVSDB implementation of OVSDB API"

9 years agoMerge "Always fill UDP checksums in DHCP replies"
Jenkins [Fri, 20 Mar 2015 21:24:16 +0000 (21:24 +0000)]
Merge "Always fill UDP checksums in DHCP replies"

9 years agoMerge "Move the assignment of existing_floating_ips before try block"
Jenkins [Fri, 20 Mar 2015 21:16:55 +0000 (21:16 +0000)]
Merge "Move the assignment of existing_floating_ips before try block"

9 years agoMove metadata proxy shared options to neutron.conf
Cedric Brandily [Fri, 20 Mar 2015 16:11:53 +0000 (16:11 +0000)]
Move metadata proxy shared options to neutron.conf

This change moves metadata proxy options shared between dhcp and l3
agents to neutron.conf. This change prepares follow-up changes allowing
to run metadata proxy with nobody user/group

Change-Id: I1828e322791b8a697765cad2f12857e3d6deae68
Related-bug: #1427228

9 years agoMerge "Allow plugin to specify security-group rules ids upon creation"
Jenkins [Fri, 20 Mar 2015 19:54:15 +0000 (19:54 +0000)]
Merge "Allow plugin to specify security-group rules ids upon creation"

9 years agoMerge "Reuse nova batch notifier"
Jenkins [Fri, 20 Mar 2015 19:53:54 +0000 (19:53 +0000)]
Merge "Reuse nova batch notifier"

9 years agoMerge "Break coupling between ML2 and L3 during delete operation"
Jenkins [Fri, 20 Mar 2015 19:53:34 +0000 (19:53 +0000)]
Merge "Break coupling between ML2 and L3 during delete operation"

9 years agoMerge "Fix validation of physical network name for flat nets"
Jenkins [Fri, 20 Mar 2015 19:50:23 +0000 (19:50 +0000)]
Merge "Fix validation of physical network name for flat nets"

9 years agoReuse nova batch notifier
Assaf Muller [Mon, 13 Oct 2014 16:24:01 +0000 (19:24 +0300)]
Reuse nova batch notifier

Refactor the batch notifier currently used by the Nova notifier
into a separate class. It will be reused when batching L3 HA
state change events.

Partially-Implements: blueprint report-ha-router-master
Change-Id: I2f8cf261f48bdb632ac0bd643a337290b5297fce

9 years agoAllow plugin to specify security-group rules ids upon creation
Roey Chen [Wed, 18 Mar 2015 18:00:30 +0000 (11:00 -0700)]
Allow plugin to specify security-group rules ids upon creation

This patch enables plugin to specify the security-group rules ids,
it is optional and defaults to current behavior.
This approach is already used with network creation, where a plugin can
specify the network uuid.

Closes-Bug: #1434067
Change-Id: I034f0ffc2200f64926617e87861a97838e76342c

9 years agoAdd native OVSDB implementation of OVSDB API
Terry Wilson [Thu, 22 Jan 2015 11:39:57 +0000 (05:39 -0600)]
Add native OVSDB implementation of OVSDB API

This patch adds a native OVSDB protocol version of the new OVSDB
API. As such, it does not require using sudo/rootwrap but instead
uses the OVS IDL Python library that ships with openvswitch.

Doc-Impact
Implements: blueprint vsctl-to-ovsdb
Change-Id: I2bf5ba7f4607cec324ea841f0fea7bad274faffc

9 years agoBreak coupling between ML2 and L3 during delete operation
armando-migliaccio [Fri, 6 Feb 2015 17:21:32 +0000 (09:21 -0800)]
Break coupling between ML2 and L3 during delete operation

This is an initial attempt at breaking out the L3 logic from the ML2
framework as much as possible. This patch takes care of the notification
to the L3 agent(s), after a port has been deleted. Both base L3 and
L3+DVR operations are affected.

Related-blueprint: services-split
Related-blueprint: plugin-interface-perestroika

Change-Id: Ic41b87246ec4d89c2da49afaaccaeb8bd041dcb9

9 years agoFix validation of physical network name for flat nets
Ann Kamyshnikova [Tue, 3 Mar 2015 15:19:20 +0000 (18:19 +0300)]
Fix validation of physical network name for flat nets

Fix validation of physical network name for flat nets for
the case when physical network names are not set.

Closes-bug: #1424548

Change-Id: Ibb64af48ff65ca515f48cfba176a89afc9103f1e

9 years agoValidate when DVR enabled, l2_pop is also enabled
Gal Sagie [Wed, 18 Mar 2015 06:36:29 +0000 (08:36 +0200)]
Validate when DVR enabled, l2_pop is also enabled

The agent should fail to start when
enable_distributed_routing = True and l2_population = False
otherwise the router won't behave as expected.

All the cross subnet traffic (between VMs of the same tenant)
in DVR is now handled locally on the compute node using the router namespace.
A Linux namespace is created for every virtual router,
on each compute node that hosts VMs that are connected to that router.

The local DVR performs the routing and replaces the source MAC address and
the destination MAC address for every packet leaving the compute node.
In order to do that correctly, the router must be populated with
all the L2 addresses of the attached networks

Change-Id: Id2b56d852eff4773a347f490b19ad9eefc86af9c
Closes-Bug: #1417633
Co-Authored-By: Romil Gupta <romilg@hp.com>
9 years agoMerge "Make DHCP tests cleanup neutron manager reference"
Jenkins [Fri, 20 Mar 2015 02:20:14 +0000 (02:20 +0000)]
Merge "Make DHCP tests cleanup neutron manager reference"

9 years agoMerge "Allow to request metadata proxy only from internal interfaces"
Jenkins [Fri, 20 Mar 2015 01:44:19 +0000 (01:44 +0000)]
Merge "Allow to request metadata proxy only from internal interfaces"

9 years agoMerge "Adding a cleanup for 'fip-' and 'snat-' namespaces in netns_cleanup"
Jenkins [Fri, 20 Mar 2015 01:44:05 +0000 (01:44 +0000)]
Merge "Adding a cleanup for 'fip-' and 'snat-' namespaces in netns_cleanup"

9 years agoMerge "Basic subnetpool CRUD"
Jenkins [Thu, 19 Mar 2015 19:42:22 +0000 (19:42 +0000)]
Merge "Basic subnetpool CRUD"

9 years agoMerge "Hyper-V Agent decomposition"
Jenkins [Thu, 19 Mar 2015 18:54:34 +0000 (18:54 +0000)]
Merge "Hyper-V Agent decomposition"

9 years agoMerge "Include IPv6 SLAAC addresses implicitly for port update"
Jenkins [Thu, 19 Mar 2015 17:28:19 +0000 (17:28 +0000)]
Merge "Include IPv6 SLAAC addresses implicitly for port update"

9 years agoMerge "Add a missing mock in DHCPAgentWeightSchedulerTestCase"
Jenkins [Thu, 19 Mar 2015 15:56:00 +0000 (15:56 +0000)]
Merge "Add a missing mock in DHCPAgentWeightSchedulerTestCase"

9 years agoPrepare Base(OVS)LinuxTestCase transformation in helpers
Cedric Brandily [Thu, 19 Mar 2015 13:28:15 +0000 (13:28 +0000)]
Prepare Base(OVS)LinuxTestCase transformation in helpers

This change prepares to transform BaseLinuxTestCase[1] and
BaseOVSLinuxTestCase[1] methods into helpers in a follow-up change.

[1] in neutron.tests.functional.agent.linux.base

Change-Id: Ie04f33283544e79c1296aa1de5b6946049ae53b9

9 years agoRemove redundant unit tests from OVS DVR Agent
Gal Sagie [Thu, 19 Mar 2015 12:30:10 +0000 (14:30 +0200)]
Remove redundant unit tests from OVS DVR Agent

The same test exists in test_ovs_neutron_agent.py
test_create_agent_config_map_enable_distributed_routing

Closes-Bug: #1434051

Change-Id: I0ebba4348cbc83dd1d59ff1111c0c21054ba47b3

9 years agoMerge "Add a netns-cleanup functional test"
Jenkins [Thu, 19 Mar 2015 11:37:17 +0000 (11:37 +0000)]
Merge "Add a netns-cleanup functional test"

9 years agoMerge "Reduce code duplication and fix argument order in test_wsgi"
Jenkins [Thu, 19 Mar 2015 11:16:42 +0000 (11:16 +0000)]
Merge "Reduce code duplication and fix argument order in test_wsgi"

9 years agoMerge "Remove unused L3 HA RPC method"
Jenkins [Thu, 19 Mar 2015 10:59:02 +0000 (10:59 +0000)]
Merge "Remove unused L3 HA RPC method"

9 years agoHyper-V Agent decomposition
Claudiu Belu [Mon, 2 Feb 2015 21:09:33 +0000 (23:09 +0200)]
Hyper-V Agent decomposition

Decomposes Hyper-V Neutron Agent and adds the requirements.txt
file to set the dependency to the vendor agent.

Adds README containing information on how to properly use the
Hyper-V Neutron Agent and the ML2 Mechanism Driver.

Vendor plugin code is available on stackforge:
https://github.com/stackforge/networking-hyperv

Plugin already available in pypi:
https://pypi.python.org/pypi/networking-hyperv

DocImpact

Partially-implements: blueprint core-vendor-decomposition

Change-Id: Iedff2718732c884c297cb0be855593057bd64c38

9 years agoAdd a missing mock in DHCPAgentWeightSchedulerTestCase
YAMAMOTO Takashi [Thu, 19 Mar 2015 07:54:51 +0000 (16:54 +0900)]
Add a missing mock in DHCPAgentWeightSchedulerTestCase

start_periodic_dhcp_agent_status_check needs to be mocked
when instantiating ml2 plugin.

The test case in question was introduced by
change I5ec8adf0c4336f885d603662223caa7694708876.

Closes-Bug: #1433944
Change-Id: I2d0b57e37d10b6dbd1a06dc7bba004890e238ce6

9 years agoBasic subnetpool CRUD
Ryan Tidwell [Thu, 15 Jan 2015 21:17:17 +0000 (13:17 -0800)]
Basic subnetpool CRUD

Enable creating, reading, updating, and deleting subnet pools via REST API.
Includes required changes to REST, model, alembic migrations, and unit tests.
Subnet pools carry a list of IPv4 or IPv6 prefixes from which a subnet can be
allocated. This will enable tenants to request a subnet from a pool rather
than being forced to explicitly provide their own CIDR's for their subnets.
This change simply enables managing the lifecycle of a subnet pool and does
not yet enable allocation of subnet prefixes from a pool.

Subnet pools can have their prefix bounds (min, max, default), name, and
prefix list updated. Changes to prefix bounds do not alter existing
allocations and will not be blocked by existing allocations. Prefix lists can
only be appended to. Prefixes cannot be removed from the pool once added.

ApiImpact
Partially-Implements: blueprint subnet-allocation
Change-Id: I88c6b15aab258069758f1a9423d6616ceb4a33c4

9 years agoMerge "Include IPv6 SLAAC addresses implicitly for port create"
Jenkins [Thu, 19 Mar 2015 05:23:37 +0000 (05:23 +0000)]
Merge "Include IPv6 SLAAC addresses implicitly for port create"

9 years agoFix a usage error of joinedload + filter in dhcp scheduler
YAMAMOTO Takashi [Tue, 27 Jan 2015 06:33:36 +0000 (15:33 +0900)]
Fix a usage error of joinedload + filter in dhcp scheduler

This commit fixes filtering in get_dhcp_agents_hosting_networks.

Also, separate the argument "active" into two; active (heartbeat thing)
and admin_state_up.  Because all in-tree callers with active=True seem
to mean only the former, currently the new admin_state_up argument is not
used.  (Thus this commit doesn't change any behaviour yet.  The argument
might be useful for other changes like [1])

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

Details:

With the current coding, joinedload() produces a JOIN and
the following filter() on the columns from the joined table
would create another JOIN of the same table.  (As t1 in the
following example).  It doesn't seem to be the intended
behaviour.  As a consequence the filter (WHERE clause in
the following examples) doesn't work as expected.

Queries before this fix looked like the following,
where t1 and t2 are Agent and NetworkDhcpAgentBinding respectively:

    SELECT t2.aaa, t1_1.bbb, ...
    FROM t1, t2 LEFT OUTER JOIN t1 AS t1_1 ON t1_1.ccc = t2.ddd
    WHERE t1.eee = ...;

After the fix, it would be:

    SELECT t2.aaa, t1.bbb, ...
    FROM t2 JOIN t1 ON t1.ccc = t2.ddd
    WHERE t1.eee = ...;

Reference: http://docs.sqlalchemy.org/en/rel_0_9/orm/loading_relationships.html#contains-eager

Closes-Bug: #1414905
Change-Id: Idf9ffdb849de58fba8c18c357ffa10cf0f398140

9 years agoMerge "Fix minor decomp progress chart issues"
Jenkins [Thu, 19 Mar 2015 03:50:26 +0000 (03:50 +0000)]
Merge "Fix minor decomp progress chart issues"

9 years agoMerge "Replace keepalived notifier bash script with Python ip monitor"
Jenkins [Thu, 19 Mar 2015 03:50:09 +0000 (03:50 +0000)]
Merge "Replace keepalived notifier bash script with Python ip monitor"

9 years agoMerge "DHCP Service LoadBalancing Scheduler"
Jenkins [Thu, 19 Mar 2015 00:59:00 +0000 (00:59 +0000)]
Merge "DHCP Service LoadBalancing Scheduler"

9 years agoMerge "Adding VLAN Transparency support for ML2 along with REST API changes"
Jenkins [Thu, 19 Mar 2015 00:58:15 +0000 (00:58 +0000)]
Merge "Adding VLAN Transparency support for ML2 along with REST API changes"

9 years agoAllow to request metadata proxy only from internal interfaces
Assaf Muller [Mon, 22 Dec 2014 15:01:37 +0000 (17:01 +0200)]
Allow to request metadata proxy only from internal interfaces

Currently the metadata service can be requested on 169.254.169.254:80
from all interfaces including external interfaces. This change updates
PREROUTING rules to allow request on 169.254.169.254:80 only from
internal interfaces.

Change-Id: I44a9e03992f9e2a7bd4d798ae69d8aa7d75d3078
Closes-Bug: #1187102

9 years agoRemove unused L3 HA RPC method
Assaf Muller [Thu, 12 Feb 2015 15:59:36 +0000 (10:59 -0500)]
Remove unused L3 HA RPC method

The following patch will re-add it with its intended parameters
and use it in the agent.

Change-Id: Idffe963fffe5fdde6f474046a50208a2974edfa0
Partially-Implements: blueprint report-ha-router-master

9 years agoReplace keepalived notifier bash script with Python ip monitor
Assaf Muller [Thu, 12 Mar 2015 23:50:43 +0000 (19:50 -0400)]
Replace keepalived notifier bash script with Python ip monitor

Previously L3 HA generated a bash script and copied it to a per-router
configuration directory that was visible to that router's keepalived
instance. This patch changes the in-line generated Bash script to a
Python script that can be maintained in the repository.
The bash script was used as a keepalived notifier script, that was invoked
by keepalived whenever a state transition occured. These notifier scripts
may be invoked by keepalived out of order in case it transitions quickly
twice. For example, if the master failed and two slaves fight for the new
master role. One will transition to master, and the other will often
transition to master and then immidiately back to standby. In this case,
the transition scripts were often fired out of order, resulting in the
wrong state being reported.

The proposed approach is to get rid of the keepalived notifier scripts
entirely. Instead, monitor IP changes on the HA device. If the omnipresent
IP address was configured on the HA device, it means that we're looking
at a master instance. If it was deleted, the router transition to standby
or fault.

In order to keep the L3 agent CPU usage down, it will spawn a process
per HA router. That process will start the ip address monitor.
Whenever it gets an IP address change event, it will notify the L3 agent
via a unix domain socket.

Partially-Implements: blueprint report-ha-router-master
Change-Id: I2022bced330d5f108fbedd40548a901225d7ea1c
Closes-Bug: #1402010
Closes-Bug: #1367705

9 years agoAdd sanity check for OVSDB native support
Terry Wilson [Wed, 18 Mar 2015 22:13:53 +0000 (17:13 -0500)]
Add sanity check for OVSDB native support

This check has specific warnings about the need to install the
python-openvswitch package to use OVSDB native. If an unknown
Exception is thrown when doing a simple get_bridges() call, it will
also fail, logging the exception.

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

9 years agoFix metering agent failure when chain missing
Fei Long Wang [Mon, 16 Feb 2015 11:58:45 +0000 (00:58 +1300)]
Fix metering agent failure when chain missing

The metering agent will fail if one of the iptables chains
is missing, which will cause errors extracting data from
all the other chains. Add a simple try/except to let the
loop continue.

Closes-Bug: #1421037

Change-Id: I370ee0e2cc58ca7e1c5ef9bf4dbcce5abf7545a1

9 years agoMerge "Api tests to cover network mtu attribute"
Jenkins [Wed, 18 Mar 2015 20:10:29 +0000 (20:10 +0000)]
Merge "Api tests to cover network mtu attribute"

9 years agoFix minor decomp progress chart issues
armando-migliaccio [Wed, 18 Mar 2015 01:16:34 +0000 (18:16 -0700)]
Fix minor decomp progress chart issues

Fix broken link, add missing header, and remove new contributions
from the list. This table should just capture the progress status
of existing plugins and drivers at the time the decomp was conceived.

Change-Id: Iea28443547905d979d1866b588fa91cb6d52ecc7

9 years agoAdding VLAN Transparency support for ML2 along with REST API changes
Pritesh Kothari [Mon, 23 Feb 2015 17:52:28 +0000 (09:52 -0800)]
Adding VLAN Transparency support for ML2 along with REST API changes

* Exposing vlan transparency attributes via the network api
  calls so POST and GET operations can be performed.
* Tied in the vlan transparency attribute with create network
  call and use the config default.
* Update the unit test to cover vlan tranparency.
* Add support for ml2 to take advantage of vlan transparency
  attribute.

DocImpact
APIImpact
Partially Implements: blueprint nfv-vlan-trunks

Change-Id: Ie87087a70b83dab589419aa5c17ce7ccafd64cbd

9 years agoDHCP Service LoadBalancing Scheduler
Shivakumar M [Tue, 25 Nov 2014 08:46:07 +0000 (00:46 -0800)]
DHCP Service LoadBalancing Scheduler

In this blueprint, we also propose to write a generic scheduler
framework which can be used to schedule a new resource on
selected least loaded agents.
Currently dhcp_load_type will be fetched from neutron.conf file
and corresponding load is obtained by the agent report state.
The obtained load will be populated in the "load" column of the
agents table.
During scheduling, agent will be selected based on sorting all
the agents of particular type based on load column.
Example dhcp_load_type is networks

DocImpact

Implements: blueprint dhcpservice-loadbalancing

Change-Id: I5ec8adf0c4336f885d603662223caa7694708876
Author: Shivakumar M <shiva.kum.m@hp.com>
Co-Authored-By: Praveen Kumar SM <praveen-sm.kumar@hp.com>
Co-Authored-By: Benjamin GRASSART <benjamin.grassart@thalesgroup.com>
Co-Authored-By: Sourabh Patwardhan <sopatwar@cisco.com>
9 years agoMerge "Add portsecurity extension support"
Jenkins [Wed, 18 Mar 2015 16:48:40 +0000 (16:48 +0000)]
Merge "Add portsecurity extension support"

9 years agoMerge "Run more Rally benchmark on every patch"
Jenkins [Wed, 18 Mar 2015 16:04:48 +0000 (16:04 +0000)]
Merge "Run more Rally benchmark on every patch"

9 years agoMake DHCP tests cleanup neutron manager reference
Kevin Benton [Wed, 18 Mar 2015 15:14:09 +0000 (08:14 -0700)]
Make DHCP tests cleanup neutron manager reference

The DHCP scheduler unit tests occasionally call methods
on the core plugin via the neutron manager (e.g. in report_state).
However, they weren't calling the normal unit test cleanup routines
for tests that call the core plugin so they were leaving stale
references in the manager.

This patch uses the setup_coreplugin helper that sets up the
configuration for the core plugin and adds the cleanup call
to ensure that the neutron manager is cleaned up at the end
of each test.

Closes-Bug: #1434278
Change-Id: Ic35629659574121c739574c1ed39364d6977c3ea

9 years agoInclude IPv6 SLAAC addresses implicitly for port update
Dane LeBlanc [Mon, 16 Mar 2015 16:27:34 +0000 (12:27 -0400)]
Include IPv6 SLAAC addresses implicitly for port update

(Patch set #4 for the multiple-ipv6-prefixes blueprint)

This change adds functional code and UT for port-update
handling changes as described in the Neutron blueprint
'multiple-ipv6-prefixes'.

Whenever a port is updated on a network that includes one
or more auto-address subnets (e.g. SLAAC or DHCPv6-stateless),
then any addresses that the port previously had for those
subnets needs to be implicitly retained for the update
operation. This patch set adds this implicit retention
of the auto-addresses for port update operation.

Change-Id: I91687d05a48bc3938e4bf34a7c454823a500730c
Partially-implements: blueprint multiple-ipv6-prefixes