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

9 years agoMerge "Fix incorrect comments"
Jenkins [Fri, 13 Mar 2015 14:18:22 +0000 (14:18 +0000)]
Merge "Fix incorrect comments"

9 years agoRefactor _remove_unused_security_group_info
Miguel Angel Ajo [Tue, 3 Feb 2015 13:35:40 +0000 (13:35 +0000)]
Refactor _remove_unused_security_group_info

_remove_unused_security_group_info is refactored into smaller
functions, to make this block easier to understand.

Implements blueprint refactor-iptables-firewall-driver

Change-Id: I4107f1a702d059337e7b2d701a5d0372ee2cfe11

9 years agoAdd MTU selection & advertisement settings to Neutron config
Tim Swanson [Fri, 6 Feb 2015 23:49:49 +0000 (18:49 -0500)]
Add MTU selection & advertisement settings to Neutron config

neutron.conf parameter additions in support of MTU selection
and advertisement.  Also, under ML2 group, add an additional
configuration params to optionally set the path and segment
MTU values as well as optionally map physnets to MTU values.

DocImpact

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

9 years agoML2 cisco_nexus MD: sync config and models with vendor repo
Rich Curran [Tue, 10 Mar 2015 14:55:19 +0000 (10:55 -0400)]
ML2 cisco_nexus MD: sync config and models with vendor repo

Updates required to the upstream neutron ML2 cisco nexus MD code to
support stackforge repo changes.

Original development done under cisco-openstack repo. File history for
these changes can be found under the staging/junoplus branch.

Change-Id: Idc9da84cefa4131a84b911f77d99a3b1647103a8
Closes-Bug: 1429879

9 years agoMerge "Break coupling between ML2 and L3 during create/update operations"
Jenkins [Fri, 13 Mar 2015 13:07:21 +0000 (13:07 +0000)]
Merge "Break coupling between ML2 and L3 during create/update operations"

9 years agofix check_ports_exist_on_l3agent in no subnet case
lzklibj [Thu, 26 Feb 2015 05:19:07 +0000 (21:19 -0800)]
fix check_ports_exist_on_l3agent in no subnet case

If no subnets attached to the given router, this check
should return False.

Currently, if no subnets attached to given router, the
following process in this method will fetch all ports
to continue its checking, consider those ports are not
related to the given router, the following checking
should be invalid.

To issue #1378066, after running "router-gateway-clear",
_schedule_router will be triggered, and the invalid
checking will make processing in get_candidates believe
that all l3-agents are valid to schedule this router,
and finally, invalid records are inserted into table
RouterL3AgentBindings.

Closes-Bug: #1378066
Closes-Bug: #1417908
Closes-Bug: #1420032

Change-Id: If96d866c831330cca68a5fe5a0f27f178bbf40a6

9 years agoFix netns-cleanup broken by ProcessMonitor refactor
Miguel Angel Ajo [Wed, 11 Mar 2015 12:23:20 +0000 (12:23 +0000)]
Fix netns-cleanup broken by ProcessMonitor refactor

Change I0da6071037f9728cc20403324e36c32116bcf00d broke the
netns-cleanup script. As the process_monitor parameter
is now mandatory for the dhcp driver.

Change-Id: I69617c67815b71a05a25936c5e7acc7c116c0dd6
Closes-bug: #1430762

9 years agoMerge "Set default of api_workers to number of CPUs"
Jenkins [Fri, 13 Mar 2015 09:25:26 +0000 (09:25 +0000)]
Merge "Set default of api_workers to number of CPUs"

9 years agoMerge "Refactor retry mechanism used in some DB operations"
Jenkins [Fri, 13 Mar 2015 07:54:20 +0000 (07:54 +0000)]
Merge "Refactor retry mechanism used in some DB operations"

9 years agoMerge "Use common agent.linux.utils.ensure_dir method"
Jenkins [Fri, 13 Mar 2015 07:41:38 +0000 (07:41 +0000)]
Merge "Use common agent.linux.utils.ensure_dir method"

9 years agoMerge "Revert "Revert "Remove port from ovsdb after its deletion"""
Jenkins [Fri, 13 Mar 2015 06:26:41 +0000 (06:26 +0000)]
Merge "Revert "Revert "Remove port from ovsdb after its deletion"""

9 years agoMerge "Update contribute.rst with Big Switch decomp"
Jenkins [Fri, 13 Mar 2015 04:47:29 +0000 (04:47 +0000)]
Merge "Update contribute.rst with Big Switch decomp"

9 years agoSet default of api_workers to number of CPUs
Russell Bryant [Tue, 9 Dec 2014 21:59:20 +0000 (14:59 -0700)]
Set default of api_workers to number of CPUs

The current default for api_workers is 0.  This patch changes it to
use the number of CPUs available, which is the default that will
provide best performance.  This is consistent with some other
OpenStack service (Nova and Swift, at least, perhaps others).

Note that devstack is updated in another patch to ensure multiple API
workers is being tested for Neutron the same way it's tested for
several other services:

    https://review.openstack.org/140482

Co-Authored-By: Eugene Nikanorov <enikanorov@mirantis.com>
DocImpact
UpgradeImpact
Change-Id: I4d76baf68b014fc80693f53874734783089abda2

9 years agoRefactor retry mechanism used in some DB operations
Eugene Nikanorov [Thu, 22 Jan 2015 12:54:29 +0000 (15:54 +0300)]
Refactor retry mechanism used in some DB operations

Use oslo_db helper that will allow to restart the whole
transaction in case it needs a certain operation to be repeated.
This is a workaround for the REPEATABLE READ problem where
retrying logic will not work because queries inside a transation
will not see updates made by other transactions.
So, run every attempt in a separate transaction.

Change-Id: I68f9ae8019879725df58f5da2c83bb699a548255
Closes-Bug: #1382064

9 years agoRevert "Revert "Remove port from ovsdb after its deletion""
Kevin Benton [Sun, 1 Mar 2015 09:59:54 +0000 (01:59 -0800)]
Revert "Revert "Remove port from ovsdb after its deletion""

This reverts commit 294019139d575bd7144cfcc229c98c8497bfbf7c.

Change-Id: I7e3a3e063e57fe904f5c6703cfa5704a94fd87a0

9 years agoAdd rootwrap daemon mode support
Terry Wilson [Mon, 23 Feb 2015 20:56:44 +0000 (14:56 -0600)]
Add rootwrap daemon mode support

This patch introduces support for rootwrap daemon mode. It adds
a new config option, AGENT.root_helper_daemon with no default. To
enable, set to something like:

root_helper_daemon = sudo neutron-rootwrap-daemon /etc/neutron/rootwrap.conf

The patch currently assumes that the root_helper_daemon value, and specifically
the rootwrap config, will not change once calls to execute() happen. While it
would not be hard to generate a rootwrap daemon client for each new config, I
couldn't think of a legitimate reason to support it and left it out as YAGNI.

This patch does change the behavior of the addl_env argument to create_process
and execute. Previously, an environment dict would be passed to Popen. If
a root helper was used, this environemnt would actually be passed to 'sudo'
which would filter it before passing it to the underlying command. In the case
of daemon mode, this would cause a problem as the enviornment is filtered by
sudo only once, at daemon startup. Any environment variables added at execute
time would then just be passed directly to the underyling command unfiltered.

oslo.rootwrap 1.6.0 fixes this issue by denying the passing of environment
variables to the daemon altogether. Instead, anything using rootwrap and needing
to pass additional environment variables should define an EnvFilter and run the
command with env var=val cmd. utils.execute/create_process have been modified to
run code in this way (which netns.execute already did).

No code in neutron currently uses both run_as_root=True and addl_env, so this
change does not require any change in code or filters.

DocImpact
Implements: blueprint rootwrap-daemon-mode
Change-Id: I567334bb611253c7b9d830d50c5be308a5153baf

9 years agoBreak coupling between ML2 and L3 during create/update operations
armando-migliaccio [Thu, 5 Feb 2015 16:40:04 +0000 (08:40 -0800)]
Break coupling between ML2 and L3 during create/update operations

This is an initial patch in a series that, by using an event framework,
cleans up the relationship between ML2 and L3, so that they are no longer
tightly coupled. A follow-up will take address the coupling during the
port delete operation.

The newly introduced notification hooks not only benefit the L3 service
plugin, but any other plugin that has an interest in knowing about port
events.

Long term, the notification bits can move in a more 'common' place so that
other plugins can take advantage of them, but as mentioned in a parent patch,
the perestroika is not quite there yet.

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

Change-Id: I6527b1cb53a71a1f68329a7a3b1878094558f8c2

9 years agoMerge "ofagent: Update after networking-ofagent release"
Jenkins [Fri, 13 Mar 2015 01:34:02 +0000 (01:34 +0000)]
Merge "ofagent: Update after networking-ofagent release"

9 years agoMerge "Don't start transaction during floating IP delete"
Jenkins [Fri, 13 Mar 2015 01:31:03 +0000 (01:31 +0000)]
Merge "Don't start transaction during floating IP delete"

9 years agoMerge "Migrate to oslo.log"
Jenkins [Fri, 13 Mar 2015 01:28:48 +0000 (01:28 +0000)]
Merge "Migrate to oslo.log"

9 years agoFix incorrect comments
shihanzhang [Fri, 13 Mar 2015 01:28:29 +0000 (09:28 +0800)]
Fix incorrect comments

some functions already change, so the comments also should change.

Change-Id: Id55a064c53b89df24150130e526e9be39d229f3a

9 years agoMerge "Remove dead code"
Jenkins [Thu, 12 Mar 2015 22:28:16 +0000 (22:28 +0000)]
Merge "Remove dead code"

9 years agoMerge "Fix non-existent self.local_subnets in DvrRouter class"
Jenkins [Thu, 12 Mar 2015 18:24:10 +0000 (18:24 +0000)]
Merge "Fix non-existent self.local_subnets in DvrRouter class"

9 years agoRemove router binding with router-interface-delete
lzklibj [Wed, 11 Mar 2015 13:59:43 +0000 (06:59 -0700)]
Remove router binding with router-interface-delete

When "neutron router-interface-delete ROUTER subnet"
command is executed to delete a router interface, it
should check for dvr ports changing on nodes which
have their l3-agent binded to the router. And if there
is any node has no port related to the router, the
binding to the L3-agent should be removed from the
"RouterL3AgentBindings" table.

This patch fixes the problem mentioned above.

Closes-Bug: #1413630

Change-Id: I9e2b115079fa2c66c98b9c45386d139fdebf63e7

9 years agoRemove dead code
Paul Michali [Wed, 11 Mar 2015 19:38:44 +0000 (15:38 -0400)]
Remove dead code

Since VPNaaS has been updated, the get_snat_ns_name() method
is no longer needed.

Change-Id: Id852614efc5ef20f8dc2c8ed5cd0b97b354e995e
Closes-Bug: #1430967

9 years agoMerge "Return 404 when executing net-list-on-dhcp-agent with invalid agent_id"
Jenkins [Thu, 12 Mar 2015 13:35:58 +0000 (13:35 +0000)]
Merge "Return 404 when executing net-list-on-dhcp-agent with invalid agent_id"

9 years agoUpdate contribute.rst with Big Switch decomp
Kevin Benton [Thu, 12 Mar 2015 11:22:24 +0000 (04:22 -0700)]
Update contribute.rst with Big Switch decomp

Update the status of the Big Switch Networks code split
in the contribute devref.

Partial-implements: blueprint core-vendor-decomposition
Change-Id: I46d762bb637793b51b46a9d7ae88ceef0efffecf

9 years agoMigrate to oslo.log
Ihar Hrachyshka [Thu, 26 Feb 2015 22:26:41 +0000 (23:26 +0100)]
Migrate to oslo.log

It's mostly a matter of changing imports to a new location.

Non-obvious changes needed:
* pass overwrite= argument to oslo_context since oslo.log reads context
  from its thread local store and not local.store from incubator
* don't store context at local.store now that there is no code that
  would consume it
* LOG.deprecated() -> versionutils.report_deprecated_feature()
* dropped LOG.audit check from hacking rule since now the method does
  not exist
* WritableLogger is now located in oslo_log.loggers

Dropped log module from the tree. Also dropped local module that is now
of no use (and obsolete, as per oslo team).

Added versionutils back to openstack-common.conf since now we use the
module directly from neutron code and not just as a dependency of some
other oslo-incubator module.

Note: tempest tests are expected to be broken now, so instead of fixing
all the oslo.log related issues for the subtree in this patch, I only
added TODOs with directions for later fix.

Closes-Bug: #1425013
Change-Id: I310e059a815377579de6bb2aa204de168e72571e

9 years agoMerge "Stop using RPC namespace to unbreak rolling upgrades"
Jenkins [Thu, 12 Mar 2015 09:39:23 +0000 (09:39 +0000)]
Merge "Stop using RPC namespace to unbreak rolling upgrades"

9 years agoFix l3_agentschedulers_db for consistency of code
Hirofumi Ichihara [Thu, 12 Mar 2015 09:26:57 +0000 (18:26 +0900)]
Fix l3_agentschedulers_db for consistency of code

Fix for consistency between l3_agentschedulers_db and agentschedulers_db.

Change-Id: I62d411a3effec5eb3335306298959635768c0999