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

9 years agoMerge "Add ML2 VLAN mechanism driver for Brocade MLX and ICX switches."
Jenkins [Wed, 18 Mar 2015 14:29:16 +0000 (14:29 +0000)]
Merge "Add ML2 VLAN mechanism driver for Brocade MLX and ICX switches."

9 years agoApi tests to cover network mtu attribute
Pradeep Kilambi [Tue, 17 Mar 2015 20:03:03 +0000 (13:03 -0700)]
Api tests to cover network mtu attribute

Including Api tests to check for network object
to include new mtu attributes.

Change-Id: Iaa295b03715c3df4585ae443ddd655df1f107dc5

9 years agoRun more Rally benchmark on every patch
Boris Pavlovic [Sat, 14 Mar 2015 13:15:42 +0000 (16:15 +0300)]
Run more Rally benchmark on every patch

* Since 24 Nov 2014 we added a lot of Neutron benchmarks

Running more Neutron related benchmarks in Neutron gate allows
to avoid performance regressions and races.

* Neutron benchmarks are described here:
https://github.com/stackforge/rally/blob/master/rally/benchmark/scenarios/neutron/network.py
It's quite simple code be free to take a look.

* All changes in concurrency and times are related to optimization
of duration/usefulness

* To get description of benchmarks use:

   rally info find NeutronNetworks.create_and_update_networks

New benchmarks:

- NeutronNetworks.create_and_update_networks

- NeutronNetworks.create_and_delete_networks

- NeutronNetworks.create_and_update_subnets

- NeutronNetworks.create_and_delete_subnets

- NeutronNetworks.create_and_update_routers

- NeutronNetworks.create_and_delete_routers

- NeutronNetworks.create_and_list_routers

- NeutronNetworks.create_and_update_ports

- NeutronNetworks.create_and_delete_ports

- NeutronNetworks.create_and_list_ports

- Quotas.neutron_update

related bug: #bug 1419723
Change-Id: Ie3c84e057fc96c0f35ad77b7297c564442ebcf10

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 18 Mar 2015 03:28:45 +0000 (03:28 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "iptables firewall: add framework for iptables firewall functional test"
Jenkins [Wed, 18 Mar 2015 03:28:21 +0000 (03:28 +0000)]
Merge "iptables firewall: add framework for iptables firewall functional test"

9 years agoMerge "Don't delete HA router primary VIP on agent restarts"
Jenkins [Wed, 18 Mar 2015 02:13:34 +0000 (02:13 +0000)]
Merge "Don't delete HA router primary VIP on agent restarts"

9 years agoAdd ML2 VLAN mechanism driver for Brocade MLX and ICX switches.
Angela Smith [Tue, 10 Feb 2015 23:38:37 +0000 (15:38 -0800)]
Add ML2 VLAN mechanism driver for Brocade MLX and ICX switches.

This thin driver will introduce VLAN support on Brocade MLX and ICX
switches.  Vendor specific driver implementation will reside in a
separate repository.

Partial-Bug: 1420045

Change-Id: Ia5af6c2e9b52129749c17db53d1d3891d42ec7f1

9 years agoMerge "Introduce External IPAM Interface"
Jenkins [Wed, 18 Mar 2015 00:56:34 +0000 (00:56 +0000)]
Merge "Introduce External IPAM Interface"

9 years agoInclude IPv6 SLAAC addresses implicitly for port create
Dane LeBlanc [Mon, 16 Mar 2015 14:23:26 +0000 (10:23 -0400)]
Include IPv6 SLAAC addresses implicitly for port create

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

This patch set resolves an issue whereby auto-address subnets
are not being included implicitly for port create operations
that include a fixed_ips list.

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

9 years agoMerge "Handle DBDuplicateError exception properly when creating default sg"
Jenkins [Tue, 17 Mar 2015 23:17:54 +0000 (23:17 +0000)]
Merge "Handle DBDuplicateError exception properly when creating default sg"

9 years agoDon't delete HA router primary VIP on agent restarts
Assaf Muller [Mon, 16 Mar 2015 19:43:24 +0000 (15:43 -0400)]
Don't delete HA router primary VIP on agent restarts

An HA router's primary VIP was being deleted from the router
namespace when the L3 agent is restarted. Make sure that
doesn't happen and change the functional test to make sure
the bug stays squashed.

Change-Id: I0e5b416152bacf496de54bedee0fca8d3950be2b
Closes-Bug: #1432806
Closes-Bug: #1432785

9 years agoMerge "Expose Rest Api access to mtu attributes"
Jenkins [Tue, 17 Mar 2015 22:26:41 +0000 (22:26 +0000)]
Merge "Expose Rest Api access to mtu attributes"

9 years agoMerge "Advertise mtu over dhcp"
Jenkins [Tue, 17 Mar 2015 22:26:26 +0000 (22:26 +0000)]
Merge "Advertise mtu over dhcp"

9 years agoMerge "Add MTU selection to ML2"
Jenkins [Tue, 17 Mar 2015 22:17:54 +0000 (22:17 +0000)]
Merge "Add MTU selection to ML2"

9 years agoIntroduce External IPAM Interface
Carl Baldwin [Thu, 13 Nov 2014 19:27:27 +0000 (12:27 -0700)]
Introduce External IPAM Interface

This introduces an interface for an external IPAM driver.  Neutron needs to be
modified to make calls using it for its IPAM needs.  Additionally, the default
IPAM interface must be written to implement this interface.

Partially-Implements: blueprint neutron-ipam

Change-Id: Ieb565a2d2629ab8236a4be1173df464b7aa06f04

9 years agoMerge "replaces enumeration method used to get a list of interfaces"
Jenkins [Tue, 17 Mar 2015 21:41:01 +0000 (21:41 +0000)]
Merge "replaces enumeration method used to get a list of interfaces"

9 years agoMerge "OVS DVR UT: Remove an inappropriate str() conversion"
Jenkins [Tue, 17 Mar 2015 21:40:32 +0000 (21:40 +0000)]
Merge "OVS DVR UT: Remove an inappropriate str() conversion"

9 years agoMerge "IBM SDN-VE Plugin decomposition"
Jenkins [Tue, 17 Mar 2015 21:40:15 +0000 (21:40 +0000)]
Merge "IBM SDN-VE Plugin decomposition"

9 years agoMerge "Brocade Vyatta vrouter shim plugin for vendor decomposition"
Jenkins [Tue, 17 Mar 2015 19:24:26 +0000 (19:24 +0000)]
Merge "Brocade Vyatta vrouter shim plugin for vendor decomposition"

9 years agoExpose Rest Api access to mtu attributes
Pradeep Kilambi [Tue, 10 Feb 2015 22:42:20 +0000 (14:42 -0800)]
Expose Rest Api access to mtu attributes

Exposing Read only access to mtu attributes via the network
api calls so GET operations can be performed. Tied in the
mtu attribute with create network call and use the config
default. Also included unit tests to cover default and
override config case for segment_mtu attribute.

Partially Implements: blueprint mtu-selection-and-advertisement

Change-Id: I811c288bdd96691a96d1721eb29354c0911edf3a

9 years agoAdvertise mtu over dhcp
Bradley Jones [Thu, 12 Feb 2015 11:51:18 +0000 (03:51 -0800)]
Advertise mtu over dhcp

If advertise_mtu option is set in the config then set the dnsmasq config option
to advertise the mtu

Partially Implements: blueprint mtu-selection-and-advertisement

Change-Id: I5f3d4276fe36dfd89d242e9afe2d46e9cc7a8a28

9 years agoAdd MTU selection to ML2
Robert Pothier [Fri, 13 Mar 2015 15:39:27 +0000 (11:39 -0400)]
Add MTU selection to ML2

ML2 will check the config parameters for the MTU settings.
It will check the segment, path and physnet mtu settings.

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

9 years agoMerge "Fix spelling error in neutron.conf"
Jenkins [Tue, 17 Mar 2015 17:43:38 +0000 (17:43 +0000)]
Merge "Fix spelling error in neutron.conf"

9 years agoMerge "If providers exist in neutron.conf, don't look in services conf"
Jenkins [Tue, 17 Mar 2015 17:00:05 +0000 (17:00 +0000)]
Merge "If providers exist in neutron.conf, don't look in services conf"

9 years agoIBM SDN-VE Plugin decomposition
mamtap [Wed, 11 Mar 2015 12:43:44 +0000 (05:43 -0700)]
IBM SDN-VE Plugin decomposition

This addresses the changes in ml2 mech-driver
and l3 service plugin to comply with the
core-vendor-decomposition spec

The monolithic sdnve plugin will not be removed with this change
as it is still being used. Once the ml2 plugin is merged and the
older plugin becomes obsolete, it will be removed from the
neutron tree.

Partially-implements: blueprint core-vendor-decomposition
Closes-bug: #1430216
Change-Id: I5bc85a5f0a62b690004d8352b3bc43b9612c213d

9 years agoBrocade Vyatta vrouter shim plugin for vendor decomposition
Sripriya [Wed, 25 Feb 2015 09:51:04 +0000 (01:51 -0800)]
Brocade Vyatta vrouter shim plugin for vendor decomposition

Vendor plugin code is available at:
https://github.com/stackforge/networking-brocade/tree/master/networking_brocade/vyatta

DocImpact
Partially-implements: blueprint core-vendor-decomposition
Closes-bug: #1414733

Change-Id: I2503560795567a77df855b5137f4231dea3520ad

9 years agoMerge "portsecurity_db: Use is_attr_set instead of a home-grown equivalent"
Jenkins [Tue, 17 Mar 2015 14:42:49 +0000 (14:42 +0000)]
Merge "portsecurity_db: Use is_attr_set instead of a home-grown equivalent"

9 years agoFix spelling error in neutron.conf
Ryan O'Hara [Tue, 17 Mar 2015 14:32:23 +0000 (09:32 -0500)]
Fix spelling error in neutron.conf

Change-Id: I95c151736860e3c1cf92c44f743f2cea20677b5f

9 years agoMerge "Remove router binding with router-interface-delete"
Jenkins [Tue, 17 Mar 2015 14:39:53 +0000 (14:39 +0000)]
Merge "Remove router binding with router-interface-delete"

9 years agoOVS DVR UT: Remove an inappropriate str() conversion
YAMAMOTO Takashi [Thu, 5 Mar 2015 00:22:04 +0000 (09:22 +0900)]
OVS DVR UT: Remove an inappropriate str() conversion

db_get_val would return None, not 'None'.
This also makes the code consistent with the other copies.

Change-Id: Iccf68bf172bfe07ff8913505466f86f024ae6415

9 years agoMerge "Move mlnx agent to be under ml2/drivers/mlnx"
Jenkins [Tue, 17 Mar 2015 12:08:05 +0000 (12:08 +0000)]
Merge "Move mlnx agent to be under ml2/drivers/mlnx"

9 years agoMerge "OVS UT: Remove useless return_value for setup_integration_br"
Jenkins [Tue, 17 Mar 2015 11:59:31 +0000 (11:59 +0000)]
Merge "OVS UT: Remove useless return_value for setup_integration_br"

9 years agoHandle DBDuplicateError exception properly when creating default sg
Eugene Nikanorov [Sat, 14 Mar 2015 20:35:08 +0000 (23:35 +0300)]
Handle DBDuplicateError exception properly when creating default sg

Previously, an exception was not caught in one of invocations
(create_network) of _ensure_default_security_group.
Move exception handling inside that method so it never fails
with such exception.

Change-Id: Ibb0597d4db187c856f9ac1d9700701e0165c3c73
Closes-Bug: #1419723

9 years agoMerge "Fix netns-cleanup broken by ProcessMonitor refactor"
Jenkins [Tue, 17 Mar 2015 10:03:20 +0000 (10:03 +0000)]
Merge "Fix netns-cleanup broken by ProcessMonitor refactor"

9 years agoMerge "Schedule net to a DHCP agt on subnet create"
Jenkins [Tue, 17 Mar 2015 07:29:22 +0000 (07:29 +0000)]
Merge "Schedule net to a DHCP agt on subnet create"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 17 Mar 2015 06:47:18 +0000 (06:47 +0000)]
Imported Translations from Transifex

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

Change-Id: I8062b0a2a17d84efa5b96ffbda00d585c9ecd01d

9 years agoMerge "Fix l3_agentschedulers_db for consistency of code"
Jenkins [Tue, 17 Mar 2015 06:14:26 +0000 (06:14 +0000)]
Merge "Fix l3_agentschedulers_db for consistency of code"

9 years agoSchedule net to a DHCP agt on subnet create
Kevin Benton [Thu, 12 Mar 2015 01:32:52 +0000 (18:32 -0700)]
Schedule net to a DHCP agt on subnet create

Change the DHCP notifier behavior to schedule a network
to a DHCP agent when a subnet is created rather than
waiting for the first port to be created.

This will reduce the possibility to get a VM port created
and have it send a DHCP request before the DHCP agent is
ready. Before, the network would be scheduled to an agent
as a result of the API call to create the VM port, so the
DHCP port wouldn't be created until after the VM port.
After this patch, the network will have been scheduled to
a DHCP agent before the first VM port is created.

There is still a possibility that the DHCP agent could be
responding so slowly that it doesn't create its port and
activate the dnsmasq instance before the VM sends traffic.
A proper fix will ensure that the dnsmasq instance is
truly ready to serve requests for a new port will require
significantly more code for barriers (either on the subnet
creation, port creation, or the nova boot process) are too
complex to add this late in the cycle.

This patch also eliminates the logic in the n1kv plugin that
was already doing the same thing.

Closes-Bug: #1431105
Change-Id: I1c1caed0fdda6b801375a07f9252a9127058a07e

9 years agoMerge "Revert "Set default of api_workers to number of CPUs""
Jenkins [Tue, 17 Mar 2015 03:13:58 +0000 (03:13 +0000)]
Merge "Revert "Set default of api_workers to number of CPUs""

9 years agoMerge "Prevent updating mac address of bound port"
Jenkins [Tue, 17 Mar 2015 03:13:43 +0000 (03:13 +0000)]
Merge "Prevent updating mac address of bound port"

9 years agoMerge "Add MTU selection & advertisement settings to Neutron config"
Jenkins [Tue, 17 Mar 2015 03:09:09 +0000 (03:09 +0000)]
Merge "Add MTU selection & advertisement settings to Neutron config"

9 years agoMerge "Revert "fix check_ports_exist_on_l3agent in no subnet case""
Jenkins [Tue, 17 Mar 2015 02:04:38 +0000 (02:04 +0000)]
Merge "Revert "fix check_ports_exist_on_l3agent in no subnet case""

9 years agoMerge "Move Unix domain socket helpers to a common place"
Jenkins [Tue, 17 Mar 2015 01:40:39 +0000 (01:40 +0000)]
Merge "Move Unix domain socket helpers to a common place"

9 years agoRevert "Set default of api_workers to number of CPUs"
Salvatore Orlando [Fri, 13 Mar 2015 22:37:05 +0000 (22:37 +0000)]
Revert "Set default of api_workers to number of CPUs"

This reverts commit c65175811baf29e75556045e3b44ab948e02a9c3.

This is in relation to:
https://bugs.launchpad.net/neutron/+bug/1432065

Change-Id: I97562840ff57f43958c1e3e56aa41219bd01c8c5

9 years agoAdd portsecurity extension support
Yalei Wang [Mon, 9 Feb 2015 19:22:27 +0000 (03:22 +0800)]
Add portsecurity extension support

Add portsecurity extension driver into ML2 plugin and implement it in
iptables_firewall.

The scope of this change is:
    - Abstract a common class PortSecurityDbCommon from the old
      PortSecurityDbMixin
    - Add a new extension driver port-security, implement process_xxx and
      extend_xxx_dict method and provide a db migration from the existing
      networks and ports
    - Update the new added 'unfiltered_ports' in iptables firewall of l2 agent
      to reflect the update of port-security

Co-Authored-By: Shweta P <shpadubi@cisco.com>
Change-Id: I2da53168e2529db7a8094ce90ef3a8a93fe55727
Partially Implements: blueprint ml2-ovs-portsecurity

9 years agoRevert "fix check_ports_exist_on_l3agent in no subnet case"
Swaminathan Vasudevan [Mon, 16 Mar 2015 20:20:36 +0000 (20:20 +0000)]
Revert "fix check_ports_exist_on_l3agent in no subnet case"

This reverts commit e99f6e00cfd397bb74d44c9462dfcfa545dbed8c.

This patch introduces an issue with the Tempest test. Already there was a similar patch that broke the tempest test for DVR.
This patch consistently failed to pass  test_add_list_remove_router_on_l3_agent.
I would recommend to revert this patch until the tempest test is fixed.

Change-Id: Ibd1fcb7f5f3196ebc1ffa01b8d5d7c6e8f1aaaac

9 years agoMerge "fix check_ports_exist_on_l3agent in no subnet case"
Jenkins [Mon, 16 Mar 2015 17:33:24 +0000 (17:33 +0000)]
Merge "fix check_ports_exist_on_l3agent in no subnet case"

9 years agoMove Unix domain socket helpers to a common place
Assaf Muller [Thu, 12 Mar 2015 23:50:24 +0000 (19:50 -0400)]
Move Unix domain socket helpers to a common place

As part of the all consuming report-ha-router-master, a new
per router neutron-keepalived-state-change daemon will alert
the L3 agent on every keepalived state change. Since it will
use the Unix domain socket helpers, and they're currently
located in metadata related places, this patch moves them
to a common location.

Also, the UnixDomainHTTPConnection connection string
may now be overridden.

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

9 years agoMove mlnx agent to be under ml2/drivers/mlnx
Moshe Levi [Sun, 8 Mar 2015 13:24:45 +0000 (15:24 +0200)]
Move mlnx agent to be under ml2/drivers/mlnx

* move the mlnx agent to be under ml2/drivers/mlnx
* update the main entry point to be under cmd
* remove unused vnic_type parameter in agent config

Partially-implements: blueprint core-vendor-decomposition

Change-Id: Ibbb99de3124d5d81bbccbc06b33ce32b19c1daef

9 years agoMerge "Reduce db calls count in get_devices_details_list"
Jenkins [Mon, 16 Mar 2015 08:40:37 +0000 (08:40 +0000)]
Merge "Reduce db calls count in get_devices_details_list"

9 years agoiptables firewall: add framework for iptables firewall functional test
Isaku Yamahata [Fri, 27 Feb 2015 23:08:41 +0000 (15:08 -0800)]
iptables firewall: add framework for iptables firewall functional test

This patch sets up framework for functional test of iptables firewall.
Tests will come as another patches.

Partially Implements: blueprint ml2-ovs-portsecurity
Change-Id: Ia0af50c8942681559bf9801515298127d30f9e34

9 years agoAdding a cleanup for 'fip-' and 'snat-' namespaces in netns_cleanup
Itzik Brown [Wed, 11 Mar 2015 11:34:51 +0000 (13:34 +0200)]
Adding a cleanup for 'fip-' and 'snat-' namespaces in netns_cleanup

Closes-Bug: 1430253
Change-Id: Ib58fd82f1d92d3e8b18118f344d63790bfd48c62

9 years agoMerge "portsecurity_db: Fix a usage of is_attr_set"
Jenkins [Sun, 15 Mar 2015 03:56:48 +0000 (03:56 +0000)]
Merge "portsecurity_db: Fix a usage of is_attr_set"

9 years agoreplaces enumeration method used to get a list of interfaces
Matthew Thode [Mon, 9 Feb 2015 17:02:58 +0000 (11:02 -0600)]
replaces enumeration method used to get a list of interfaces

ip_lib was parsing tunnel links incorrectly. We can create interface
names with any character the filesystem supports (not '..', '/', ':').
Given this we do not know what to delimit on so parsing iproute2 output
is probably not a good idea.

I asked the iproute2 devs what the proper way we should get interface
names is and was told NOT to parse iproute2 output but to use something
like sysfs instead.  http://www.spinics.net/lists/netdev/msg316577.html

This patch pulls interfaces from sysfs (/sys/class/net) and verifies them
via checking if they are links (bonding creates files for instance and
needs to be skipped).

Currently it is not possible without jumping through a ton of hoops to
access a network namespace without iproute2 or cython, so we use ip to
run find to find the correct sysfs directory.  We also only call out to
iproute2 _ONLY_ if needed.

Change-Id: I07d1d297f07857d216649cccf717896574aac301
Closes-Bug: 1374663

9 years agoMerge "Update api tests from tempest"
Jenkins [Sat, 14 Mar 2015 17:37:25 +0000 (17:37 +0000)]
Merge "Update api tests from tempest"

9 years agoPrevent updating mac address of bound port
ChuckC [Mon, 9 Mar 2015 00:51:09 +0000 (17:51 -0700)]
Prevent updating mac address of bound port

Currently, a port's mac address can be updated even if it is bound.
This fixes the _check_mac_update_allowed() call to pass just port update
attributes rather than the entire payload and fills in missing testing.

Change-Id: Iee8492e9b4fcdb07eb438eb6f5958d7addeb3d8f
Closes-bug: #1429672

9 years agoMerge "Brocade vendor code decomposition from neutron repo."
Jenkins [Fri, 13 Mar 2015 23:44:43 +0000 (23:44 +0000)]
Merge "Brocade vendor code decomposition from neutron repo."

9 years agoMerge "Add rootwrap daemon mode support"
Jenkins [Fri, 13 Mar 2015 23:30:35 +0000 (23:30 +0000)]
Merge "Add rootwrap daemon mode support"

9 years agoMerge "Set TEMPEST_CONFIG_DIR in the api tox env"
Jenkins [Fri, 13 Mar 2015 23:11:34 +0000 (23:11 +0000)]
Merge "Set TEMPEST_CONFIG_DIR in the api tox env"

9 years agoMerge "Remove vendor entry point"
Jenkins [Fri, 13 Mar 2015 23:11:19 +0000 (23:11 +0000)]
Merge "Remove vendor entry point"

9 years agoMerge "ML2 cisco_nexus MD: sync config and models with vendor repo"
Jenkins [Fri, 13 Mar 2015 23:08:28 +0000 (23:08 +0000)]
Merge "ML2 cisco_nexus MD: sync config and models with vendor repo"

9 years agoMerge "Move internal port processing to router classes"
Jenkins [Fri, 13 Mar 2015 19:11:56 +0000 (19:11 +0000)]
Merge "Move internal port processing to router classes"

9 years agoUpdate api tests from tempest
Maru Newby [Fri, 13 Mar 2015 18:46:40 +0000 (18:46 +0000)]
Update api tests from tempest

This change is the result of running tools/copy_api_tests_from_tempest.sh

Change-Id: Ibcb6d11b3f7ed8b859c69d4c591bf785b0611416

9 years agoSet TEMPEST_CONFIG_DIR in the api tox env
Maru Newby [Fri, 13 Mar 2015 18:17:29 +0000 (18:17 +0000)]
Set TEMPEST_CONFIG_DIR in the api tox env

TEMPEST_CONFIG_DIR needs to be set for the api job to execute
successfully.  Previously this was being set by the gate but local
execution required manually setting the variable.

Change-Id: Ic1364388e812a5fca26f37049242f7d09ee75fef

9 years agoMerge "Refactor _remove_unused_security_group_info"
Jenkins [Fri, 13 Mar 2015 17:58:55 +0000 (17:58 +0000)]
Merge "Refactor _remove_unused_security_group_info"

9 years agoRemove vendor entry point
Henry Gessau [Fri, 13 Mar 2015 17:18:24 +0000 (13:18 -0400)]
Remove vendor entry point

Remove entry point pointing to external vendor package.
This console script entry point already exists in the vendor repo.

Change-Id: Ib85acffc155ae6b49477f90d06346269330220b5
Closes-bug: #1431627

9 years agoAdd a netns-cleanup functional test
Miguel Angel Ajo [Thu, 12 Mar 2015 14:58:39 +0000 (14:58 +0000)]
Add a netns-cleanup functional test

We have lots of regressions on netns, because unit test
is not enough. This commit adds basic functional testing
to the netns_cleanup.

This work should be extended when we have functional testing
for the dhcp agent, spawning dhcp services, and then
making sure they're fully cleaned up.

Change-Id: I0b5125dfa24a3dbcd44593ae2aee4dbbd47def67

9 years agoReduce db calls count in get_devices_details_list
Sergey Belous [Mon, 9 Feb 2015 16:38:05 +0000 (19:38 +0300)]
Reduce db calls count in get_devices_details_list

Each Neutron agent will impose db calls to Neutron Server
to query devices, port and networks.
Network caching is added to reduce the number
of db calls on get_devices_details_list.
Added unit tests for the check caching.

Change-Id: I933dfe9b020b15b39bc932e62d599c5d654347e1
Closes-Bug: #1370361

9 years agoMove internal port processing to router classes
Carl Baldwin [Tue, 10 Feb 2015 05:17:51 +0000 (05:17 +0000)]
Move internal port processing to router classes

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

9 years agoBrocade vendor code decomposition from neutron repo.
Shiv Haris [Tue, 3 Feb 2015 01:58:53 +0000 (17:58 -0800)]
Brocade vendor code decomposition from neutron repo.

Brocade code decomposition of VDX mechanism driver,
includes moving out the driver and unit tests. Left
behind are the DB model for migration and config

Closes bug: #1427793

Change-Id: I3b06a1800cce1ddbb87c6ebd7981e3f249df5060