]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoImproves the description string for the config parameter metadata_workers.
Sanjeev Rampal [Tue, 7 Apr 2015 00:19:37 +0000 (17:19 -0700)]
Improves the  description string for the config parameter metadata_workers.

Change-Id: I98d05ce52d7cd6c3631bfe1928509fda21d16b48
Closes-Bug: 1421892

9 years agoMerge "VMWare NSXv: Metadata default gateway param"
Jenkins [Thu, 26 Mar 2015 19:42:28 +0000 (19:42 +0000)]
Merge "VMWare NSXv: Metadata default gateway param"

9 years agoMerge "Missing entry points for cisco apic topology agents"
Jenkins [Thu, 26 Mar 2015 19:37:52 +0000 (19:37 +0000)]
Merge "Missing entry points for cisco apic topology agents"

9 years agoMerge "Fix port status not being updated properly"
Jenkins [Thu, 26 Mar 2015 19:34:52 +0000 (19:34 +0000)]
Merge "Fix port status not being updated properly"

9 years agoMerge "Follow up patch for Validate when DVR enabled, l2_pop is also enabled"
Jenkins [Thu, 26 Mar 2015 19:10:48 +0000 (19:10 +0000)]
Merge "Follow up patch for Validate when DVR enabled, l2_pop is also enabled"

9 years agoMerge "Fix create_security_group_rule_bulk_native to return all created rules"
Jenkins [Thu, 26 Mar 2015 18:09:35 +0000 (18:09 +0000)]
Merge "Fix create_security_group_rule_bulk_native to return all created rules"

9 years agoMerge "Move process_ha_router_added/removed from HA agent to router"
Jenkins [Thu, 26 Mar 2015 17:09:58 +0000 (17:09 +0000)]
Merge "Move process_ha_router_added/removed from HA agent to router"

9 years agoMerge "Remove allow_overlap from subnetpools API"
Jenkins [Thu, 26 Mar 2015 14:45:40 +0000 (14:45 +0000)]
Merge "Remove allow_overlap from subnetpools API"

9 years agoMerge "Move create_dvr_fip_interfaces in to DVR"
Jenkins [Thu, 26 Mar 2015 12:50:50 +0000 (12:50 +0000)]
Merge "Move create_dvr_fip_interfaces in to DVR"

9 years agoMerge "lb-agent: use 'replace' instead of 'add' with 'bridge fdb'"
Jenkins [Thu, 26 Mar 2015 10:32:08 +0000 (10:32 +0000)]
Merge "lb-agent: use 'replace' instead of 'add' with 'bridge fdb'"

9 years agoFollow up patch for Validate when DVR enabled, l2_pop is also enabled
Romil Gupta [Mon, 23 Mar 2015 06:38:00 +0000 (23:38 -0700)]
Follow up patch for Validate when DVR enabled, l2_pop is also enabled

Reference:
https://review.openstack.org/#/c/165311/

For a VLAN underlays, DVR does not mandate l2-pop to be turned ON.

So just checking for enable_tunneling and validating for l2-pop being
turned ON is more than sufficient.

Change-Id: I96695dc623b4ea37d3ef1384eb9ac9c1384d3da3
Closes-Bug: #1417633

9 years agoRemove allow_overlap from subnetpools API
Ryan Tidwell [Fri, 20 Mar 2015 22:09:38 +0000 (15:09 -0700)]
Remove allow_overlap from subnetpools API

Removes the allow_overlap attribute from subnetpools in favor making all
subnets unique within a pool.

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

9 years agoMoves ovs_lib to agent/common
Adelina Tuvenie [Tue, 24 Mar 2015 16:29:45 +0000 (09:29 -0700)]
Moves ovs_lib to agent/common

This patch moves ovs_lib from agent/linux to agent/common
since it will be used by ovs_neutron_agent on both Linux
and Windows platforms. To provide compatibility with out of
tree code, a placeholder has been left in agent/linux.

Unit tests are updated accordingly.

Partially implements blueprint: hyper-v-ovs-agent

Change-Id: I009f7f5e3b014633541ed5a45628aa1b2287e22b

9 years agoMerge "Rename/move/remove HaRouter methods"
Jenkins [Wed, 25 Mar 2015 20:44:54 +0000 (20:44 +0000)]
Merge "Rename/move/remove HaRouter methods"

9 years agoMerge "Add some useful notes in devref/db_layer.rst"
Jenkins [Wed, 25 Mar 2015 19:27:21 +0000 (19:27 +0000)]
Merge "Add some useful notes in  devref/db_layer.rst"

9 years agoCisco UCS Manager ML2 Mechanism Driver
Sandhya Dasu [Thu, 5 Feb 2015 17:21:05 +0000 (12:21 -0500)]
Cisco UCS Manager ML2 Mechanism Driver

Introduces a ML2 based Mechanism Driver for Cisco UCS Manager. The vendor
specific driver code referenced by this MD resides in stackforge repo
networking-cisco. This MD did not exist in the Neutron tree before so no files
have to be removed as part of this change.

DocImpact

Partially-implements: blueprint core-vendor-decomposition
Implements: blueprint ml2-ucs-manager-mechanism-driver
Closes-Bug: #1434401

Conflicts:
etc/neutron/plugins/ml2/ml2_conf_cisco.ini
neutron/db/migration/alembic_migrations/versions/HEAD
setup.cfg

Change-Id: I5a32b18f0d4e3ef55738c51e65e3e81d8f415da4

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 agoRename/move/remove HaRouter methods
Assaf Muller [Wed, 25 Mar 2015 00:27:29 +0000 (20:27 -0400)]
Rename/move/remove HaRouter methods

All of the methods that use verify_ha are now part of the HaRouter
class. The check has outlived its usefulness and may die
a peaceful yet horrifying death. At its point of death,
verify_ha is akin to a guy walking down the street and yelling:
'Am I me? Am I me?' - Yes, you're you, shut up. An HA router
is an HA router, there's no point in the class checking if
it's indeed an HA router.

* keepalived_manager._get_full_config_file_path was being used
  outside of the keepalived_manager, removed the leading underscore
* _ha_get_existing_cidrs doesn't need an 'ha' prefix, it's already
  a part of the HA router class. This patch renames the method to
  a more descriptive name
* HARouter._get_ipv6_lladdr had nothing to do with HA routers, nor
  did it use the HARouter state. Moved it to ip_lib

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

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 agolb-agent: use 'replace' instead of 'add' with 'bridge fdb'
Darragh O'Reilly [Tue, 17 Mar 2015 16:03:51 +0000 (16:03 +0000)]
lb-agent: use 'replace' instead of 'add' with 'bridge fdb'

l2pop on the linuxbridge agent can fail to add permanent entries
because the 'bridge fdb add' command fails if a temporary entry
exists. This patch uses 'replace' which always works.

Closes-Bug: 1367999
Change-Id: I4371f508ad23d96de950634b4a90218ea474f3f0

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 agoAdd some useful notes in devref/db_layer.rst
Ann Kamyshnikova [Tue, 24 Mar 2015 13:57:55 +0000 (16:57 +0300)]
Add some useful notes in  devref/db_layer.rst

Added information about difference between default and server_default
parameters for columns.

This was suggested in comments to I466202ac8c378f1e19e42ec2880d0c8fbc35fd28.

Related-bug: #1295539

Change-Id: I605ab8a4f3af80497fb8ad21d43fa13d8d533325

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 agoMove process_ha_router_added/removed from HA agent to router
Assaf Muller [Tue, 24 Mar 2015 23:45:11 +0000 (19:45 -0400)]
Move process_ha_router_added/removed from HA agent to router

* Move process_ha_router_added/removed from ha.py to
  ha_router.py, rename them initialize and terminate
* Remove _process_ha_router (Spawns/disables keepalived) from
  process_router (Called when adding/updating and deleting
  a router), move its content to process_router for add/update
  and terminate for delete
* Rename ha_router.spawn_keepalived to enable_keepalived
  (Consistent with disable_keepalived and process_manager
  semantics)

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

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 agoMove create_dvr_fip_interfaces in to DVR
Carl Baldwin [Thu, 26 Feb 2015 23:21:47 +0000 (23:21 +0000)]
Move create_dvr_fip_interfaces in to DVR

I left this out of the previous patch because it took a little more
work to tease this out and I want comments on this independent of the
other patch.

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

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 port status not being updated properly
Darragh O'Reilly [Wed, 18 Mar 2015 20:45:10 +0000 (20:45 +0000)]
Fix port status not being updated properly

This problem was introduced by hierarchical port bindings and
affected ports bound on linuxbridge hosts as that agent only
passes the first 11 chars of the port_id to the plugin.

Closes-Bug: 1433461
Change-Id: I8a3863ac1bb1c359de210c535462acbb107adf98

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 agoVMWare NSXv: Metadata default gateway param
Kobi Samoray [Tue, 3 Mar 2015 09:44:18 +0000 (11:44 +0200)]
VMWare NSXv: Metadata default gateway param

Add a default gateway parameter for metadata access from remote
network.
This parameter is necessary when NSXv metadata proxy is on a different
cluster than the management VM and network, and hence requires routing.

Change-Id: I420f48ee315e4406a1a684467bcea0cb8a79f53f
Partially-Implements: blueprint vmware-nsx-v

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 agoFix create_security_group_rule_bulk_native to return all created rules
Roey Chen [Wed, 18 Mar 2015 16:29:19 +0000 (09:29 -0700)]
Fix create_security_group_rule_bulk_native to return all created rules

create_security_group_rule_bulk_native should return all of the created
security-group rules, but returns only one, this patch fix the issue and
adds a unittest to validate it.

Closes-Bug: #1434207
Change-Id: I8611c83fecf90e025b24b09fc3a371cbeebce637

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"