]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 "Fix incorrect comments"
Jenkins [Fri, 13 Mar 2015 14:18:22 +0000 (14:18 +0000)]
Merge "Fix incorrect comments"

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 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 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 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 agoReturn 404 when executing net-list-on-dhcp-agent with invalid agent_id
Hirofumi Ichihara [Wed, 25 Feb 2015 09:02:35 +0000 (18:02 +0900)]
Return 404 when executing net-list-on-dhcp-agent with invalid agent_id

Neutron server returns HTTP code 200 when users execute
net-list-on-dhcp-agent with invalid agent_id.
Users expect HTTP code 404 to be returned.

Change-Id: I41652a9bf4a81835abb6646ea870781472757623
Closes-bug: 1425138

9 years agoofagent: Update after networking-ofagent release
YAMAMOTO Takashi [Wed, 11 Mar 2015 03:23:59 +0000 (12:23 +0900)]
ofagent: Update after networking-ofagent release

Closes-Bug: #1412653
Related: blueprint core-vendor-decomposition
Change-Id: Ibccc46f1d2b944ac12d8765fddd94f01fd89390b

9 years agoUse common agent.linux.utils.ensure_dir method
zengfagao [Mon, 9 Feb 2015 16:17:24 +0000 (08:17 -0800)]
Use common agent.linux.utils.ensure_dir method

We repeated os.makedirs(dir, 0o755) in several places. We should use
common neutron.agent.linux.utils.ensure_dir. Unit tests are also added.

Change-Id: Iaeae5ff7dc6676420c000d6501f69a5997ad4b6c
Closes-bug: 1419042

9 years agoMerge "linuxbridge UT: Mock get_interface_by_ip"
Jenkins [Thu, 12 Mar 2015 03:30:12 +0000 (03:30 +0000)]
Merge "linuxbridge UT: Mock get_interface_by_ip"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Thu, 12 Mar 2015 03:10:20 +0000 (03:10 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Arista L3 Service Plugin decomposition"
Jenkins [Thu, 12 Mar 2015 03:09:33 +0000 (03:09 +0000)]
Merge "Arista L3 Service Plugin decomposition"

9 years agoMerge "Add Mellanox decomposition progress to chart"
Jenkins [Thu, 12 Mar 2015 02:33:37 +0000 (02:33 +0000)]
Merge "Add Mellanox decomposition progress to chart"

9 years agoStop using RPC namespace to unbreak rolling upgrades
Assaf Muller [Thu, 12 Mar 2015 02:11:33 +0000 (22:11 -0400)]
Stop using RPC namespace to unbreak rolling upgrades

This is a temporary patch until we get an Oslo messaging
release that supports Targets with multiple namespaces:
https://review.openstack.org/#/c/163673/

Change-Id: I96e01c00991a9d8602ebc89dbad5206b805c67eb
Related-Bug: #1430984

9 years agoMerge "linuxbridge UT: Do not create the same instance in each cases"
Jenkins [Thu, 12 Mar 2015 02:13:07 +0000 (02:13 +0000)]
Merge "linuxbridge UT: Do not create the same instance in each cases"

9 years agoAdd Mellanox decomposition progress to chart
Moshe Levi [Thu, 5 Mar 2015 09:25:00 +0000 (11:25 +0200)]
Add Mellanox decomposition progress to chart

Change-Id: Ib8f0178625d6ecc1d21bd831c84acbe0a5280811
Partially-implements: blueprint core-vendor-decomposition

9 years agoMerge "Add README and requirements.txt for VMware plugins"
Jenkins [Thu, 12 Mar 2015 00:18:14 +0000 (00:18 +0000)]
Merge "Add README and requirements.txt for VMware plugins"

9 years agoArista L3 Service Plugin decomposition
Sukhdev [Fri, 6 Mar 2015 01:28:25 +0000 (17:28 -0800)]
Arista L3 Service Plugin decomposition

Moving back-end drivers of Arista L3
Service Plugin from neutron tree to
stackforge networking-arista.

Change-Id: I0b10ce12bc10fb74c905ec11e64be8da12f341f4
Closes-bug: 1428909
Related-blueprint: core-vendor-decomposition

9 years agoMerge "Raise QuotaResourceUnknown in the quota engine"
Jenkins [Wed, 11 Mar 2015 23:59:21 +0000 (23:59 +0000)]
Merge "Raise QuotaResourceUnknown in the quota engine"

9 years agoMerge "Change linux/ip_lib code to better handle address families"
Jenkins [Wed, 11 Mar 2015 22:54:32 +0000 (22:54 +0000)]
Merge "Change linux/ip_lib code to better handle address families"

9 years agoFix pylint issue with type VS isinstance in event_observers
Assaf Muller [Wed, 11 Mar 2015 15:45:00 +0000 (11:45 -0400)]
Fix pylint issue with type VS isinstance in event_observers

New version of pylint started complaining about the unpythonic
usage of type. This patch fixes the issue. Another patch will
propose to pin the version of pylint.

Change-Id: I5377cf152e62a74f6bf0c4ccc8ce3a563066adab

9 years agoMerge "utils.execute: Add a debug-level log to record stdin"
Jenkins [Wed, 11 Mar 2015 13:41:20 +0000 (13:41 +0000)]
Merge "utils.execute: Add a debug-level log to record stdin"

9 years agoMerge "Added oslo.log dependency"
Jenkins [Wed, 11 Mar 2015 13:28:02 +0000 (13:28 +0000)]
Merge "Added oslo.log dependency"

9 years agoMerge "contribute.rst: Use consistent tags"
Jenkins [Wed, 11 Mar 2015 12:10:40 +0000 (12:10 +0000)]
Merge "contribute.rst: Use consistent tags"

9 years agoRaise QuotaResourceUnknown in the quota engine
Salvatore Orlando [Tue, 10 Mar 2015 20:37:07 +0000 (13:37 -0700)]
Raise QuotaResourceUnknown in the quota engine

This patch lets the quota engine verify whether it manages a resource
for which a limit is being checked.

So far this check has been delegated to the drivers. This is
conceptually wrong and also lead to code duplication.

Unit tests and some docstrings are also fixed accordingly as a
part of this patch.

Closes-Bug: #1430519
Related to blueprint better-quotas

Change-Id: If1467881f13e30afa53a23b904f8eae5c7264834

9 years agoutils.execute: Add a debug-level log to record stdin
YAMAMOTO Takashi [Wed, 11 Mar 2015 05:33:28 +0000 (14:33 +0900)]
utils.execute: Add a debug-level log to record stdin

It's important to record stdin than it used to be because
the recent versions of ovs_lib passes flow strings to
ovs-ofctl command via stdin.

Change-Id: I3b3d5742076e05a3d4ebf5adc26356742b2928e4

9 years agoMerge "Add proccess monitor to keepalived"
Jenkins [Wed, 11 Mar 2015 08:36:57 +0000 (08:36 +0000)]
Merge "Add proccess monitor to keepalived"

9 years agoMerge "Prevent calling waitall() inside a GreenPool's greenthread"
Jenkins [Wed, 11 Mar 2015 08:10:54 +0000 (08:10 +0000)]
Merge "Prevent calling waitall() inside a GreenPool's greenthread"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 11 Mar 2015 06:14:01 +0000 (06:14 +0000)]
Imported Translations from Transifex

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

Change-Id: Idf397a2c4ffca0468f9f93a4efc11d63a254fd96

9 years agoMerge "FIP debug messages"
Jenkins [Wed, 11 Mar 2015 04:52:13 +0000 (04:52 +0000)]
Merge "FIP debug messages"

9 years agoMerge "ofagent: Have a thin driver module"
Jenkins [Wed, 11 Mar 2015 03:21:21 +0000 (03:21 +0000)]
Merge "ofagent: Have a thin driver module"

9 years agocontribute.rst: Use consistent tags
YAMAMOTO Takashi [Wed, 11 Mar 2015 01:44:18 +0000 (10:44 +0900)]
contribute.rst: Use consistent tags

Related: blueprint core-vendor-decomposition
Change-Id: I7a6d6d96cfe58f52477b091e4b484ddc19cb4fbb

9 years agoAdd README and requirements.txt for VMware plugins
Salvatore Orlando [Wed, 11 Mar 2015 00:41:53 +0000 (17:41 -0700)]
Add README and requirements.txt for VMware plugins

These files were forgotten in the decomposition patch.

Related to Blueprint core-vendor-decomposition

Change-Id: Ibd7bba5a287b455c4fcb8252e13ce277c12d44cb

9 years agoFix non-existent self.local_subnets in DvrRouter class
Assaf Muller [Fri, 20 Feb 2015 00:59:21 +0000 (19:59 -0500)]
Fix non-existent self.local_subnets in DvrRouter class

Found via the pylint no-member check.

Co-Authored-By: michael.smith6@hp.com
Closes-Bug: #1423777
Change-Id: I280948300810f199988a943aeb6577243423a4e7

9 years agoMerge "tests: initialize policy in BaseTestCase"
Jenkins [Tue, 10 Mar 2015 22:12:22 +0000 (22:12 +0000)]
Merge "tests: initialize policy in BaseTestCase"

9 years agoMerge "policy: don't hack around oslo.config path search algorithm"
Jenkins [Tue, 10 Mar 2015 22:12:06 +0000 (22:12 +0000)]
Merge "policy: don't hack around oslo.config path search algorithm"

9 years agoAdded oslo.log dependency
Ihar Hrachyshka [Tue, 10 Mar 2015 21:57:58 +0000 (22:57 +0100)]
Added oslo.log dependency

This is needed for vendor libraries out of tree to start switching their
code to oslo.log logging interface. Hopefully, they will be able to run
against neutron core using neutron.openstack.common.log while executing
oslo_log.log.* calls.

Change-Id: I666389efe65526bda66c5f70170687638d1a5038
Related-Bug: #1425013

9 years agoMerge "Don't notify dead DHCP agent of removed networks"
Jenkins [Tue, 10 Mar 2015 20:57:10 +0000 (20:57 +0000)]
Merge "Don't notify dead DHCP agent of removed networks"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 10 Mar 2015 17:42:09 +0000 (17:42 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Update default tox envlist to match voting gate checks"
Jenkins [Tue, 10 Mar 2015 15:55:50 +0000 (15:55 +0000)]
Merge "Update default tox envlist to match voting gate checks"

9 years agoMerge "Fix wrong log output in neutron/neutron/agent/linux/dhcp.py"
Jenkins [Tue, 10 Mar 2015 15:15:09 +0000 (15:15 +0000)]
Merge "Fix wrong log output in neutron/neutron/agent/linux/dhcp.py"

9 years agoMerge "NEC plugin code split"
Jenkins [Tue, 10 Mar 2015 14:10:04 +0000 (14:10 +0000)]
Merge "NEC plugin code split"

9 years agoMerge "Improve performance of _get_security_group_member_ips"
Jenkins [Tue, 10 Mar 2015 13:47:55 +0000 (13:47 +0000)]
Merge "Improve performance of _get_security_group_member_ips"

9 years agoMerge "Added check for emptyness where in_ is being used"
Jenkins [Tue, 10 Mar 2015 11:41:40 +0000 (11:41 +0000)]
Merge "Added check for emptyness where in_ is being used"

9 years agoDon't notify dead DHCP agent of removed networks
Eugene Nikanorov [Mon, 9 Mar 2015 08:25:47 +0000 (11:25 +0300)]
Don't notify dead DHCP agent of removed networks

This is needed to avoid a case when agent sees network
removal notifications on startup. Processing of those notifications
may overlap with processing of active networks and DHCP might be
disabled on some of active networks as a result.

Change-Id: I8271e8fce8b4d80a339f598b98467694774a299e
Closes-Bug: #1429737

9 years agoPrevent calling waitall() inside a GreenPool's greenthread
Elena Ezhova [Thu, 19 Feb 2015 10:34:17 +0000 (13:34 +0300)]
Prevent calling waitall() inside a GreenPool's greenthread

When neutron-server is running with several api workers
sending it a termination signal (SIGTERM, SIGHUP or SIGINT)
leads to waitall() being called inside a GreenPool's greenthread.

The reason is that a wsgi server is started in a green thread
from the same green pool that is passed to the server itself
to be used for spawning client green threads.

To avoid it, it is reasonable to use different pools for spawning
a wsgi server and for its internal usage.

This is also the case for metadata agent running with several
metadata workers.

Change-Id: I38174396f06fcb29ac0776534ac6494dabb00df6
Closes-Bug: #1423250

9 years agoAdded check for emptyness where in_ is being used
Sergey Belous [Mon, 26 Jan 2015 14:11:53 +0000 (17:11 +0300)]
Added check for emptyness where in_ is being used

All the Neutron code was scanned for places where in_ is being used
and added checks to ensure that the input is not an empty sequence.

Change-Id: I1e27f94ea350ce1dfabdd7eb14e4397ca29e8eb7
Closes-Bug:1264579

9 years agoMerge "In Arista ML2 delete tenant without any resources"
Jenkins [Tue, 10 Mar 2015 08:20:40 +0000 (08:20 +0000)]
Merge "In Arista ML2 delete tenant without any resources"

9 years agoImprove performance of _get_security_group_member_ips
Eugene Nikanorov [Mon, 9 Mar 2015 09:04:34 +0000 (12:04 +0300)]
Improve performance of _get_security_group_member_ips

Use set operations instead of using list.
Currently complexity of the method is O(n^2) where n is
amount of ips (amount of VMs in the network).
When amount of VM is big (large L2 domain), this method
can significantly load the controller.
Reduce method complexity to O(n) on average.

Change-Id: If1660e8227e5c5cd80d49ebcc6a2e06d33d31939
Closes-Bug: #1429753

9 years agoNEC plugin code split
Akihiro Motoki [Sat, 7 Feb 2015 13:22:14 +0000 (22:22 +0900)]
NEC plugin code split

- Removes main codes and unit tests of NEC plugin
- Add plugin-specific requirements.txt to the plugin dir.
- Move config to the plugin top dir
- Remove references of networking_nec from config module
  because it may prevent config guide generator.
- agent command can be moved to neutron/cmd/eventlet
  if some consensus has been made.

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

Change-Id: I946e0f829e8f6251a63572331c783d7a7b5f6c01

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 10 Mar 2015 06:15:55 +0000 (06:15 +0000)]
Imported Translations from Transifex

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

Change-Id: Ifd938b609bc68a34ba7b6ec55e00f3def7654844

9 years agoMerge "Use an existing function in process monitor tests"
Jenkins [Tue, 10 Mar 2015 04:58:31 +0000 (04:58 +0000)]
Merge "Use an existing function in process monitor tests"

9 years agoChange linux/ip_lib code to better handle address families
Brian Haley [Thu, 19 Feb 2015 19:50:43 +0000 (14:50 -0500)]
Change linux/ip_lib code to better handle address families

The code in linux/ip_lib doesn't handle IP address families
similarly amongst all its APIs.  It also doesn't consistently
handle how it passes options and arguments along to /sbin/ip

So in the spirit of re-factoring, let's try and fix that:

1. Have the code determine the IP address family from its
   arguments, given that it was passed an IP address.

2. Always follow an (options, command, arguments) style.
   Options need a '-' prepended and go first, followed by the
   command, and finally by any arguments.

3. In cases where we can't infer an address family but need
   one it is now required (e.g. listing routes).

I also cleaned-up the IpRule class to fall in line with the
other classes.

Change-Id: Idcb9af698e3ea2d99a6a281c86fa13f51499b628
Closes-Bug: #1419805

9 years agoofagent: Have a thin driver module
YAMAMOTO Takashi [Mon, 9 Mar 2015 07:47:29 +0000 (16:47 +0900)]
ofagent: Have a thin driver module

It seems preferable to have a thin driver module
rather than directly referencing an external module in setup.cfg.

This also introduces "ofagent" directory which can be used to
put requirements.txt later.

Closes-Bug: #1412653
Related: blueprint core-vendor-decomposition
Change-Id: Id86ade4ae75dceb5ce4283869f42f4c0d1af7c4d

9 years agoDon't start transaction during floating IP delete
Kevin Benton [Fri, 27 Feb 2015 22:56:39 +0000 (14:56 -0800)]
Don't start transaction during floating IP delete

The previous floating IP code was starting a transaction to
delete the floating IP object from the database and then
calling the core plugin's delete_port method which could make
many yielding calls, risking deadlocks.

This patch updates the relationship between floating IP and the
ports table to allow the port deletion to automatically clear
the floating IP object via a cascade.

Closes-Bug: #1426543
Closes-Bug: #1426482
Change-Id: I4b1cdc198c18d5c673a35aaf9c7e960f97f1e20b

9 years agolinuxbridge UT: Mock get_interface_by_ip
YAMAMOTO Takashi [Tue, 10 Mar 2015 01:12:50 +0000 (10:12 +0900)]
linuxbridge UT: Mock get_interface_by_ip

To avoid querying devices on the system running UT,
which might or might not work.

The regression was introduced by
commit b7a56fd1b44649daa1f768157e68a135b9e01dd1 .

Closes-Bug: #1430098
Change-Id: I2dcdf4b9516e0a90dffee26684fdce7f0ce43cd8

9 years agolinuxbridge UT: Do not create the same instance in each cases
YAMAMOTO Takashi [Tue, 10 Mar 2015 01:23:53 +0000 (10:23 +0900)]
linuxbridge UT: Do not create the same instance in each cases

Reuse the one created by setUp() instead.

Related-Bug: #1430098
Change-Id: I2cf1123c66a81ad967507a2fefb89c306cdb28bb

9 years agoMerge "Initial copy of api tests from tempest"
Jenkins [Tue, 10 Mar 2015 00:50:15 +0000 (00:50 +0000)]
Merge "Initial copy of api tests from tempest"

9 years agoMerge "Fix tempest api testing"
Jenkins [Mon, 9 Mar 2015 23:31:40 +0000 (23:31 +0000)]
Merge "Fix tempest api testing"

9 years agoIn Arista ML2 delete tenant without any resources
Sukhdev [Mon, 9 Mar 2015 21:45:21 +0000 (14:45 -0700)]
In Arista ML2 delete tenant without any resources

If there are no resources associated with a
tenant, it was deleted from Arista DB in
delete_xxx_precommit() methods. The sync
mechanism used to make sure that back-end is in
sync with DB.

Lately, the sync mechanism has been enhanced to
support scaled deployment. Therefore, the
delete_tenat() call now needs to be invoked from
delete_xxx_postcommit() methods instead of
delete_xxx_precommit() methods. Additionally,
when the tenant is removed from the DB, it is
removed from the back-end as well. This removes
the dependancy on the sync mechanism to take
care of this.
[Note: Sync will still do it, but, this way it
gets done right away]

Closes-bug: 1429968
Change-Id: I2f6ddb01079fe4e2648685ca97d0be06db2d1a55

9 years agoInitial copy of api tests from tempest
Maru Newby [Mon, 9 Mar 2015 18:54:54 +0000 (18:54 +0000)]
Initial copy of api tests from tempest

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

Change-Id: Ica02dbe1ed26f1bc9526ea9682756ebc5877cf4a

9 years agoFix tempest api testing
Maru Newby [Mon, 9 Mar 2015 18:56:59 +0000 (18:56 +0000)]
Fix tempest api testing

This change adds the identity v2 paths to the list of copied modules
and updates the identity client init.

Change-Id: Ic02ba41eabfb78c49b23c905f1c5cc1d033e2d72

9 years agoMerge "Fix dhcp config dir removed too soon"
Jenkins [Mon, 9 Mar 2015 20:05:21 +0000 (20:05 +0000)]
Merge "Fix dhcp config dir removed too soon"

9 years agoUse an existing function in process monitor tests
Livnat Peer [Thu, 5 Mar 2015 11:43:17 +0000 (13:43 +0200)]
Use an existing function in process monitor tests

No need to have a duplicate logic, reusing the function from utils

Change-Id: Ice51844e362135a95a28fa265a5d44726025271d

9 years agoMerge "[contribute.rst] Current status of Freescale Codebase."
Jenkins [Mon, 9 Mar 2015 17:58:14 +0000 (17:58 +0000)]
Merge "[contribute.rst] Current status of Freescale Codebase."

9 years agoMerge "Add a functional test for iptables_manager.binary_name"
Jenkins [Mon, 9 Mar 2015 17:58:00 +0000 (17:58 +0000)]
Merge "Add a functional test for iptables_manager.binary_name"

9 years agoMerge "Vendor decomposition to move CSR1000v support to the networking-cisco repo"
Jenkins [Mon, 9 Mar 2015 17:52:19 +0000 (17:52 +0000)]
Merge "Vendor decomposition to move CSR1000v support to the networking-cisco repo"

9 years agoFix dhcp config dir removed too soon
Darragh O'Reilly [Sun, 8 Mar 2015 11:10:34 +0000 (11:10 +0000)]
Fix dhcp config dir removed too soon

The config dir is now removed after unplugging.
This patch also mocks out shutil.rmtree in all dhcp tests.

Change-Id: I68faacbb820957fa0bece7003676bd981c56de58
Closes-Bug: 1429559

9 years agoMerge "Raise error upon deleting subnet with router ports"
Jenkins [Mon, 9 Mar 2015 16:43:05 +0000 (16:43 +0000)]
Merge "Raise error upon deleting subnet with router ports"

9 years agoFIP debug messages
Michael Smith [Tue, 24 Feb 2015 00:21:54 +0000 (16:21 -0800)]
FIP debug messages

The experimental DVR test job is seeing intermittent failures
related to FIPs.  This patch will add debug log messages to the
l3-agent to help debug the failures.  These logs messages will
indicate when fips have been added and the fip statuses before
they are sent to the plugin.

Change-Id: Ic27c02ae45971efc9ba2aec84aafaa89ff9243e6

9 years agoAdd proccess monitor to keepalived
Mike Kolesnik [Tue, 3 Feb 2015 08:58:47 +0000 (10:58 +0200)]
Add proccess monitor to keepalived

Adding process monitor to keepalived code, so that keepalived processes
launched by the L3 agent will get monitored the same as other processes
launched by the L3 agent.

Old monitoring code was removed since it's not needed anymore.

Implements: blueprint agent-child-processes-status

Change-Id: I94a889ee07286ab3c6cdab9ab15e5aee6fbd133a

9 years agoFix wrong log output in neutron/neutron/agent/linux/dhcp.py
Mitsuhiro SHIGEMATSU [Mon, 9 Mar 2015 09:55:46 +0000 (18:55 +0900)]
Fix wrong log output in neutron/neutron/agent/linux/dhcp.py

When all subnets are turning off dhcp and killing the process,
this wrong log output "Killing dhcpmasq for network ..." occurs.
It should be "Killing dnsmasq for network ..."

Change-Id: Ic12dc66365d9d127b59279581227060ca6e65105
Closes-Bug: #1429775

9 years ago[contribute.rst] Current status of Freescale Codebase.
Trinath Somanchi [Mon, 9 Mar 2015 10:53:37 +0000 (16:23 +0530)]
[contribute.rst] Current status of Freescale Codebase.

Partially-implements: blueprint core-vendor-decomposition

Closes-bug: #1427588

Change-Id: Ic7a04eee1fe9e9a620ca6bcb843bcf2ed87cad26

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Sun, 8 Mar 2015 17:03:55 +0000 (17:03 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "ml2 plugin: use attributes.{NETWORK, SUBNET, PORT} consistently"
Jenkins [Sun, 8 Mar 2015 10:09:05 +0000 (10:09 +0000)]
Merge "ml2 plugin: use attributes.{NETWORK, SUBNET, PORT} consistently"

9 years agoMerge "Add script to copy neutron api tests from tempest"
Jenkins [Sun, 8 Mar 2015 08:43:00 +0000 (08:43 +0000)]
Merge "Add script to copy neutron api tests from tempest"

9 years agoMerge "Big Switch Networks code split"
Jenkins [Sun, 8 Mar 2015 08:42:35 +0000 (08:42 +0000)]
Merge "Big Switch Networks code split"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 8 Mar 2015 06:07:41 +0000 (06:07 +0000)]
Imported Translations from Transifex

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

Change-Id: Icf7c953453d46fb4b3923f02105a6bdecacdbc0a

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Sun, 8 Mar 2015 03:00:52 +0000 (03:00 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Updated from global requirements"
Jenkins [Sat, 7 Mar 2015 22:44:48 +0000 (22:44 +0000)]
Merge "Updated from global requirements"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sat, 7 Mar 2015 06:14:47 +0000 (06:14 +0000)]
Imported Translations from Transifex

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

Change-Id: Ibccb7b855647e6438fe3b751a1abf5c9ff52bdf8

9 years agoMerge "ofagent: kill the left over after decomposition"
Jenkins [Sat, 7 Mar 2015 02:16:42 +0000 (02:16 +0000)]
Merge "ofagent: kill the left over after decomposition"

9 years agoMerge "VMware NSX: Update decomposition progress table"
Jenkins [Sat, 7 Mar 2015 01:54:10 +0000 (01:54 +0000)]
Merge "VMware NSX: Update decomposition progress table"