]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoFix functional configure script
Maru Newby [Mon, 30 Mar 2015 21:17:19 +0000 (21:17 +0000)]
Fix functional configure script

A recent change to devstack renamed lib/neutron to lib/neutron-legacy,
and this change updates the functional setup script to reflect the
change.

Change-Id: I5eb4b4052da4b0db128feb42feae50a8bc59f373
Closes-Bug: #1438426

9 years agoMerge "Fix DBDuplicateError handling in _ensure_default_security_group"
Jenkins [Mon, 30 Mar 2015 17:34:46 +0000 (17:34 +0000)]
Merge "Fix DBDuplicateError handling in _ensure_default_security_group"

9 years agoMerge "Add tests for the l3 agent namespaces manager"
Jenkins [Mon, 30 Mar 2015 15:03:22 +0000 (15:03 +0000)]
Merge "Add tests for the l3 agent namespaces manager"

9 years agoMerge "Remove unnecessary 'IN vs ==' sql query branches"
Jenkins [Mon, 30 Mar 2015 12:21:09 +0000 (12:21 +0000)]
Merge "Remove unnecessary 'IN vs ==' sql query branches"

9 years agoMerge "Fix minor nits in _notify_l3_agent_new_port()"
Jenkins [Mon, 30 Mar 2015 09:14:06 +0000 (09:14 +0000)]
Merge "Fix minor nits in _notify_l3_agent_new_port()"

9 years agoMerge "Validate string length at API level"
Jenkins [Sun, 29 Mar 2015 18:36:57 +0000 (18:36 +0000)]
Merge "Validate string length at API level"

9 years agoMerge "Add language around re-proposing specs for new releases"
Jenkins [Sun, 29 Mar 2015 17:02:23 +0000 (17:02 +0000)]
Merge "Add language around re-proposing specs for new releases"

9 years agoMerge "Reload DHCP interface when its port is updated"
Jenkins [Sun, 29 Mar 2015 16:57:50 +0000 (16:57 +0000)]
Merge "Reload DHCP interface when its port is updated"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 29 Mar 2015 06:13:27 +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: Iff665505f6cf88bf23e27c0e37a6babb221560d2

9 years agoMerge "Update NEC plugin decomposition status"
Jenkins [Sun, 29 Mar 2015 05:25:53 +0000 (05:25 +0000)]
Merge "Update NEC plugin decomposition status"

9 years agoAdd tests for the l3 agent namespaces manager
Miguel Lavalle [Sun, 8 Mar 2015 22:32:21 +0000 (17:32 -0500)]
Add tests for the l3 agent namespaces manager

The following tests are added for the l3 agent namespaces manager:

1) Unit tests
2) Funtional test
3) A test case within the l3 funtional test for periodic_sync_routers_task

Change-Id: Ia26f1ccdc0a6619aa231c8799acc80377f4144f8
Partially-Implements: bp restructure-l3-agent

9 years agoMerge "Revert "Fix validation of physical network name for flat nets""
Jenkins [Sat, 28 Mar 2015 19:41:37 +0000 (19:41 +0000)]
Merge "Revert "Fix validation of physical network name for flat nets""

9 years agoMerge "Fix common misspellings"
Jenkins [Sat, 28 Mar 2015 17:07:47 +0000 (17:07 +0000)]
Merge "Fix common misspellings"

9 years agoMerge "Support Dual-Stack Gateway Ports on Neutron Routers"
Jenkins [Sat, 28 Mar 2015 15:41:19 +0000 (15:41 +0000)]
Merge "Support Dual-Stack Gateway Ports on Neutron Routers"

9 years agoUpdate NEC plugin decomposition status
Akihiro Motoki [Sat, 28 Mar 2015 09:06:18 +0000 (18:06 +0900)]
Update NEC plugin decomposition status

PyPI is now available and update the document.

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

Change-Id: I8d8d96fb4473aa03b518c2e223b9a92fa1cca7e9

9 years agoMerge "Remove neutron.tests.sub_base"
Jenkins [Sat, 28 Mar 2015 04:03:01 +0000 (04:03 +0000)]
Merge "Remove neutron.tests.sub_base"

9 years agoSupport Dual-Stack Gateway Ports on Neutron Routers
Dane LeBlanc [Wed, 18 Mar 2015 20:38:57 +0000 (16:38 -0400)]
Support Dual-Stack Gateway Ports on Neutron Routers

(Patch set #2 for multiple-ipv6-prefixes blueprint)

This patchset adds support for dual-stack gateway ports on Neutron
routers. Some background on the changes included in this patchset:

- The L3 driver's init_l3() method has been changed to accept a list
  of gateway IPs, rather than a single gateway IP.
- The Neutron port dictionary's singular 'subnet' entry has been
  replaced with a 'subnets' list, since ports can now be associated
  with multiple subnets.
- The Neutron port dictionary no longer has a (singular) 'ip_cidr'
  entry, since a port can now be associated with multiple IP CIDRs
  (e.g. up to one IP CIDR per IP family on gateway ports).
  Instead, a 'prefixlen' entry has been added to the Neutron
  fixed_ips dictionary, so that the port's (multiple) IP CIDRs can
  be derived from the matching 'ip_address' and 'prefixlen' pairs
  in the port's fixed_ips.

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

9 years agoMerge "Use router state in get_ha_device_name and ha_network_added"
Jenkins [Fri, 27 Mar 2015 21:29:47 +0000 (21:29 +0000)]
Merge "Use router state in get_ha_device_name and ha_network_added"

9 years agoMerge "Send only one rule in queue on rule create/delete"
Jenkins [Fri, 27 Mar 2015 19:17:37 +0000 (19:17 +0000)]
Merge "Send only one rule in queue on rule create/delete"

9 years agoRemove neutron.tests.sub_base
Maru Newby [Fri, 27 Mar 2015 17:39:41 +0000 (17:39 +0000)]
Remove neutron.tests.sub_base

Change Ifca5615680217818b8c5e8fc2dee5d089fbd9532 was intended to
remove the neutron.tests.sub_base module, but a bad rebase means that
it was left in the tree.

Change-Id: I5656a10bf3f8d3e87bf481a5a4f4a764bec17843

9 years agoMerge "Don't eagerly load ranges from IPAllocationPool"
Jenkins [Fri, 27 Mar 2015 17:24:25 +0000 (17:24 +0000)]
Merge "Don't eagerly load ranges from IPAllocationPool"

9 years agoMerge "If configured, set the MTU for fpr/rfp intefaces"
Jenkins [Fri, 27 Mar 2015 16:19:32 +0000 (16:19 +0000)]
Merge "If configured, set the MTU for fpr/rfp intefaces"

9 years agoEnable Process Monitor by default.
Miguel Angel Ajo [Tue, 24 Mar 2015 13:10:37 +0000 (13:10 +0000)]
Enable Process Monitor by default.

Process monitor is enabled by default by this patch,
with a default 60 second monitoring interval, this
interval was calculated early in the development
process to scale to 1000s of processes with light load.
We believe it's important to have it enabled to get
user feedback as we release kilo.

Process monitor is sucessfully enabled and backported
to Red Hat D/S distributions from icehouse to juno
without any issue.

Specific process monitor functional tests provide
coverage, also keepalived checks that it can be
properly respawned.

We should follow up with dhcp and l3 agent functional
testing for killing and checking their processes
correctly respawned. Normal process start/stop is
already validated by other functional tests and tempest.

DocImpact

Change-Id: I85fe31bee30714148168a293eea29fa0a37f9701
Implements: blueprint agent-child-processes-status

9 years agoMerge "Enable services on agents with admin_state_up False"
Jenkins [Fri, 27 Mar 2015 09:16:33 +0000 (09:16 +0000)]
Merge "Enable services on agents with admin_state_up False"

9 years agoReload DHCP interface when its port is updated
Kevin Benton [Thu, 12 Mar 2015 09:06:47 +0000 (02:06 -0700)]
Reload DHCP interface when its port is updated

When a DHCP port corresponding to a DHCP agent is updated,
trigger a reload on the namespace so it uses the latest port
attributes (e.g. IP address).

Closes-Bug: #1431248
Change-Id: I3d1d7b95a8baa4416f1ea3fbbf25a51b818c2c23

9 years agoDon't eagerly load ranges from IPAllocationPool
Kevin Benton [Fri, 27 Mar 2015 02:52:23 +0000 (19:52 -0700)]
Don't eagerly load ranges from IPAllocationPool

The subnet object eagerly loads the IPAllocationPools
associated with it. Each of these was eagerly loading
the IPAvailabilityRange objects associated with it.
On a large subnet with lots of churn, this could be
thousands of records. All of these records were being
loaded for every call to get_subnet, which means all
get_subnets, get_networks, and so-on. icky

This patch changes the relationship between IPAllocationPool
and available_ranges to a 'select' load, so they won't be
loaded until referenced. On my test system with a subnet
that contained 10k ports, this changed the subnet-show time
from 4.7 seconds to 0.56 seconds.

There is no performance downside to this in the upstream
code. At the time of this patch, there were no references
to 'available_ranges' on an IPAllocationPool result. The
logic that deals with the available ranges queries them
explicitly using join statements.

Change-Id: Ia94ce9437ad21e4f21526ba84213fd673693db34
Closes-Bug: #1437131

9 years agoRevert "Fix validation of physical network name for flat nets"
Dan Prince [Fri, 27 Mar 2015 02:19:58 +0000 (22:19 -0400)]
Revert "Fix validation of physical network name for flat nets"

This reverts commit dbe37d571474ca759e57e61308cd3926a00b481e.

This validation change broke TripleO's os-cloud-config
setup-neutron script.

Change-Id: I94c419b26ba93c67c9064fc110c8986c1ff68897
Closes-bug: #1437116

9 years agoEnable services on agents with admin_state_up False
Itsuro Oda [Thu, 8 Jan 2015 23:47:56 +0000 (08:47 +0900)]
Enable services on agents with admin_state_up False

Previously when admin_state_up of an agent is turned to False,
all services on it will be disabled.
This fix makes existing services on agents with admin_state_up
False keep available.
To keep current behavior available the following configuration
parameter added.

* enable_services_on_agents_with_admin_state_down

If the parameter is True, existing services on agents with admin_state_up
False keep available. No more service will be scheduled to the agent
automatically. But adding a service to the agent manually is available.
i.e. admin_state_up: False means to stop automatic scheduling under the
parameter is True.
The default of the parameter is False (current behavior).

Change-Id: Ifba606a5c1f3f07d717c7695a7a64e16238c2057
Closes-Bug: #1408488

9 years agoSimplify base test cases
Maru Newby [Mon, 23 Mar 2015 23:18:44 +0000 (23:18 +0000)]
Simplify base test cases

Previous changes (Ifa270536481fcb19c476c9c62d89e6c5cae36ca1 and
I44251db399cd73390a9d1931a7f253662002ba10) separated out test setup
that had to import Neutron to allow the api tests to run.  The api
tests previously imported Tempest, and errors would result if both
Neutron and Tempest were imported in the same test run.  Now that the
api tests do not import Tempest, the base test cases can be simplified
by reversing the referenced changes.

A dependent change to neutron-fwaas removes reference to testlib
plugin: I0f2098cfd380fb6978d643cfd09bcc5cf8ddbdb9

Change-Id: Ifca5615680217818b8c5e8fc2dee5d089fbd9532

9 years agoMerge "OVS agent support on Hyper-V"
Jenkins [Thu, 26 Mar 2015 23:52:42 +0000 (23:52 +0000)]
Merge "OVS agent support on Hyper-V"

9 years agoMerge "Add L3 router plugin shim for Brocade MLX"
Jenkins [Thu, 26 Mar 2015 23:15:58 +0000 (23:15 +0000)]
Merge "Add L3 router plugin shim for Brocade MLX"

9 years agoMerge "Add full-stack tests framework"
Jenkins [Thu, 26 Mar 2015 23:14:56 +0000 (23:14 +0000)]
Merge "Add full-stack tests framework"

9 years agoMerge "Stop any spawned ProcessMonitor at test cleanup"
Jenkins [Thu, 26 Mar 2015 22:15:03 +0000 (22:15 +0000)]
Merge "Stop any spawned ProcessMonitor at test cleanup"

9 years agoMerge "Add missing DeferredOVSBridge export"
Jenkins [Thu, 26 Mar 2015 22:10:52 +0000 (22:10 +0000)]
Merge "Add missing DeferredOVSBridge export"

9 years agoSend only one rule in queue on rule create/delete
Ilya Sokolov [Tue, 23 Dec 2014 13:22:20 +0000 (13:22 +0000)]
Send only one rule in queue on rule create/delete

Now we send all labels and rules per rule create/delete
and rebuild whole iptables chains.
In this patch we send only affected rule and create/
delete only this rule from iptables.

Change-Id: I58ebd8d810c62980c09a340ee1680be17c12b74a
Closes-Bug: #1400280

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 agoAdd full-stack tests framework
John Schwarz [Tue, 14 Oct 2014 11:09:14 +0000 (14:09 +0300)]
Add full-stack tests framework

This patch introduces the full-stack tests framework, as specified in
the blueprint. In short, this adds the neutron.tests.fullstack module,
which supports test-managed neutron daemons. Currently only
neutron-server is supported and follow-up patches will support for
multiple agents.

Implements: blueprint integration-tests
Co-Authored-By: Maru Newby <marun@redhat.com>
Change-Id: Iff24fc7cd428488e918c5f06bc7f923095760b07

9 years agoStop any spawned ProcessMonitor at test cleanup
Miguel Angel Ajo [Tue, 24 Mar 2015 13:07:37 +0000 (13:07 +0000)]
Stop any spawned ProcessMonitor at test cleanup

Base test class adds a cleanup fixture to stop any
spawned process monitor via unit or functional tests,
which otherwise would keep running after the tests already
finished, and execution functions go unpatched.

Without this patch unit tests will randomly fail
when we enable process monitor by default at change:
I85fe31bee30714148168a293eea29fa0a37f9701

Co-Authored-By: Maru Newby <marun@redhat.com>
Change-Id: Ide799a52391b14ff921de25788e8b0f0463fb8f8

9 years agoAdd missing DeferredOVSBridge export
armando-migliaccio [Thu, 26 Mar 2015 18:15:19 +0000 (11:15 -0700)]
Add missing DeferredOVSBridge export

To preserve bw compat.

Change-Id: Ice23208bacfe855b6d6224604a5d4fc1550eb7e3

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 agoUse router state in get_ha_device_name and ha_network_added
Assaf Muller [Tue, 24 Mar 2015 23:56:37 +0000 (19:56 -0400)]
Use router state in get_ha_device_name and ha_network_added

get_ha_device_name and ha_network_added were moved from the
agent to the router class, but they're not using the router
state. Rather, they're accepting arguments that they don't
need.

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

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 agoAdd language around re-proposing specs for new releases
Kyle Mestery [Thu, 26 Mar 2015 12:58:08 +0000 (12:58 +0000)]
Add language around re-proposing specs for new releases

Attempt to provide guidance over how we handle specs which do not make
a release and want to be re-proposed into the next release.

Change-Id: I3820438e81fced0630c471f1e240174e63bbf062

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 agoIf configured, set the MTU for fpr/rfp intefaces
rajeev [Fri, 6 Mar 2015 15:02:30 +0000 (10:02 -0500)]
If configured, set the MTU for fpr/rfp intefaces

if network_device_mtu parameter is configured, set the MTU for
fpr and rfp interfaces to the value specified by the parameter
at the time of creation of these interfaces.

Enhanced DVR functional test to verify MTU gets
set for the fpr/rfp interfaces.

Co-Authored-By: Adolfo Duarte <adolfo.duarte@hp.com>
Closes-bug: #1429162
Change-Id: Ie41122d1f7306dfd3debbbb8dbf2ecabf716dcb8

9 years agoAdd L3 router plugin shim for Brocade MLX
Angela Smith [Wed, 4 Mar 2015 23:59:23 +0000 (15:59 -0800)]
Add L3 router plugin shim for Brocade MLX

Change-Id: I4eba6a3fb8ce2b22e0d142643d753ee2314425b8
Closes-Bug: #1428316

9 years agoOVS agent support on Hyper-V
Adelina Tuvenie [Tue, 24 Mar 2015 18:29:17 +0000 (11:29 -0700)]
OVS agent support on Hyper-V

This patch abstracts away platform specific differences in
agent/linux/utils.py and agent/linux/polling.py in order for
OVS neutron agent to work on Hyper-V.

agent.linux.utils uses fcntl that is not available on Windows and
also uses rootwrap which is no necessary on Windows.

ovsdb_monitor.SimpleInterfaceMonitor works only on GNU/Linux because
agent.linux.async_process uses platfom specific components like the
kill command.

Unit tests have been updated accordingly

Implements blueprint: hyper-v-ovs-agent

Change-Id: I3326414335467d9dc5da03e6d1016d0e32330dd0

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 common misspellings
Martin Kletzander [Thu, 19 Mar 2015 16:25:57 +0000 (17:25 +0100)]
Fix common misspellings

Wikipedia's list of common misspellings [1] has a machine-readable
version.  This patch fixes those misspellings mentioned in the list
which don't have multiple right variants (as e.g. "accension", which can
be both "accession" and "ascension"), such misspellings are left
untouched.  The list of changes was manually re-checked for false
positives.

[1] https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

Partial-Bug: #1390035
Change-Id: Ie5d86247cc4f50b6578a9b76c9c8cade35128d5a
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
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 agoFix minor nits in _notify_l3_agent_new_port()
Saggi Mizrahi [Wed, 18 Mar 2015 13:57:41 +0000 (15:57 +0200)]
Fix minor nits in _notify_l3_agent_new_port()

- Moved string formatting to the log instead of call
- Used dict.get() instead of __getitem__(). I assume that was the
  author's intent or the subsequent condition in redundant.

Change-Id: If2fa3654591607c01effc12cc1bafea38ac4945d
Signed-off-by: Saggi Mizrahi <saggi.mizrahi@huawei.com>
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"