]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoImprove handling of security group updates
Salvatore Orlando [Thu, 19 Dec 2013 08:26:38 +0000 (00:26 -0800)]
Improve handling of security group updates

Currently updates to security group rules or membership
are handled by immediately triggering a call to refresh_firewall.
This call is quite expensive, and it is often executed with a
very high frequency.

With this patch, the notification handler simply adds devices for
which the firewall should be refreshed to a set, which will then
be processed in another routine. The latter is supposed to
be called in the main agent loop.

This patch for 'provider updates' simply sets a flag for refreshing
the firewall for all devices.

In order to avoid breaking other agents leveraging the security
group RPC mixin, the reactive behaviour is still available, and is
still the default way of handling security group updates.

Partial-Bug: #1253993
Partially implements blueprint: neutron-tempest-parallel

Change-Id: I1574544734865506ff5383404516cc9349c16ec4

10 years agoMerge "NVP plugin:fix delete sec group when backend is out of sync"
Jenkins [Sun, 9 Feb 2014 00:57:51 +0000 (00:57 +0000)]
Merge "NVP plugin:fix delete sec group when backend is out of sync"

10 years agoMerge "Enable hacking H233 rule"
Jenkins [Sat, 8 Feb 2014 02:09:33 +0000 (02:09 +0000)]
Merge "Enable hacking H233 rule"

10 years agoMerge "validate if the router has external gateway interface set"
Jenkins [Sat, 8 Feb 2014 02:09:24 +0000 (02:09 +0000)]
Merge "validate if the router has external gateway interface set"

10 years agoMerge "improve UT coverage for nicira_db operations"
Jenkins [Sat, 8 Feb 2014 01:14:38 +0000 (01:14 +0000)]
Merge "improve UT coverage for nicira_db operations"

10 years agoNVP plugin:fix delete sec group when backend is out of sync
Salvatore Orlando [Fri, 15 Nov 2013 11:06:19 +0000 (03:06 -0800)]
NVP plugin:fix delete sec group when backend is out of sync

If a security group does not exist on the NVP backend, an error
should not be raised on deletion of the security group.

This patch changes the plugin behavior by deleting the record
from the database and just logging that the security group
was not found on the NVP backend.

Closes-Bug: #1251422

Change-Id: Ib8adf7a830ff336655fd83ad4118cde641adf284

10 years agoMerge "Simplify ip allocation/recycling to relieve db pressure"
Jenkins [Thu, 6 Feb 2014 19:49:31 +0000 (19:49 +0000)]
Merge "Simplify ip allocation/recycling to relieve db pressure"

10 years agoMerge "[ML2] l2-pop MD handle multi create/delete ports"
Jenkins [Thu, 6 Feb 2014 19:49:20 +0000 (19:49 +0000)]
Merge "[ML2] l2-pop MD handle multi create/delete ports"

10 years agoMerge "Tweak version nvp/nsx version validation logic for router operations"
Jenkins [Thu, 6 Feb 2014 19:48:01 +0000 (19:48 +0000)]
Merge "Tweak version nvp/nsx version validation logic for router operations"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 6 Feb 2014 17:07:37 +0000 (17:07 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "LBaaS: fix handling pending create/update members and health monitors"
Jenkins [Thu, 6 Feb 2014 14:59:31 +0000 (14:59 +0000)]
Merge "LBaaS: fix handling pending create/update members and health monitors"

10 years agoMerge "Expunge session contents between plugin requests"
Jenkins [Thu, 6 Feb 2014 14:25:21 +0000 (14:25 +0000)]
Merge "Expunge session contents between plugin requests"

10 years agoMerge "Fix error message typo"
Jenkins [Thu, 6 Feb 2014 08:57:48 +0000 (08:57 +0000)]
Merge "Fix error message typo"

10 years agoMerge "Configure floating IPs addresses after NAT rules"
Jenkins [Thu, 6 Feb 2014 07:05:54 +0000 (07:05 +0000)]
Merge "Configure floating IPs addresses after NAT rules"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 6 Feb 2014 06:24:36 +0000 (06:24 +0000)]
Imported Translations from Transifex

Change-Id: I05e158928b76ba1d8aeb1b74fcf07035e419825d

10 years agoMerge "Use an independent iptables lock per namespace"
Jenkins [Thu, 6 Feb 2014 00:43:21 +0000 (00:43 +0000)]
Merge "Use an independent iptables lock per namespace"

10 years agoMerge "NVP: Add LOG.exception to see why router was not created"
Jenkins [Thu, 6 Feb 2014 00:43:11 +0000 (00:43 +0000)]
Merge "NVP: Add LOG.exception to see why router was not created"

10 years agoMerge "Base ML2 bulk support on the loaded drivers"
Jenkins [Thu, 6 Feb 2014 00:43:00 +0000 (00:43 +0000)]
Merge "Base ML2 bulk support on the loaded drivers"

10 years agoFix error message typo
Fawad Khaliq [Wed, 5 Feb 2014 18:15:13 +0000 (10:15 -0800)]
Fix error message typo

 * Fix error message typo in "_network_admin_state"
   function where "Network Admin State Validation Falied"
   should be changed to "Network Admin State Validation Failed"

Change-Id: I767e93c300250b4422e3980f799862ceb976c951
Closes-Bug: #1276409
Signed-off-by: Fawad Khaliq <fawad@plumgrid.com>
10 years agoConfigure floating IPs addresses after NAT rules
Salvatore Orlando [Tue, 14 Jan 2014 20:47:46 +0000 (12:47 -0800)]
Configure floating IPs addresses after NAT rules

Change the behaviour of the L3 agent in order to set the IP addresses
for the floating IPs on the external gateway interface after the
relevant NAT rules have been applied.
This will avoid a transitory period in which the floating IP exists
and is reachable but it not yet wired to the actual target.

Partial-Bug: #1265505

Change-Id: Ib382fde021868bab2185f2fa5bdee86559148ba7

10 years agoimprove UT coverage for nicira_db operations
armando-migliaccio [Tue, 14 Jan 2014 21:35:06 +0000 (13:35 -0800)]
improve UT coverage for nicira_db operations

Also, ensure that a rollback is issued in the
event of any DB error.

Change-Id: I706db09f11fb5f6b369a1bd0cb1016df7d0359b5
Related-bug: #1265472

10 years agoMerge "Remove release_lease from the DHCP driver interface"
Jenkins [Wed, 5 Feb 2014 15:05:51 +0000 (15:05 +0000)]
Merge "Remove release_lease from the DHCP driver interface"

10 years agoMerge "Use information from the dnsmasq hosts file to call dhcp_release"
Jenkins [Wed, 5 Feb 2014 15:05:42 +0000 (15:05 +0000)]
Merge "Use information from the dnsmasq hosts file to call dhcp_release"

10 years agoMerge "LBaaS: handle NotFound exceptions in update_status callback"
Jenkins [Wed, 5 Feb 2014 12:56:08 +0000 (12:56 +0000)]
Merge "LBaaS: handle NotFound exceptions in update_status callback"

10 years agoMerge "Remove garbage in vim header"
Jenkins [Wed, 5 Feb 2014 12:26:11 +0000 (12:26 +0000)]
Merge "Remove garbage in vim header"

10 years agoMerge "Fix race condition in delete_port method. Fix update_port method"
Jenkins [Wed, 5 Feb 2014 11:47:54 +0000 (11:47 +0000)]
Merge "Fix race condition in delete_port method. Fix update_port method"

10 years agoMerge "Reduce severity of log messages in validation methods"
Jenkins [Wed, 5 Feb 2014 11:46:36 +0000 (11:46 +0000)]
Merge "Reduce severity of log messages in validation methods"

10 years agoMerge "Change metadata-agent to have a configurable backlog"
Jenkins [Wed, 5 Feb 2014 11:46:24 +0000 (11:46 +0000)]
Merge "Change metadata-agent to have a configurable backlog"

10 years agoMerge "Change metadata-agent to spawn multiple workers"
Jenkins [Wed, 5 Feb 2014 11:46:14 +0000 (11:46 +0000)]
Merge "Change metadata-agent to spawn multiple workers"

10 years agoMerge "Avoid re-wiring ports unnecessarily"
Jenkins [Wed, 5 Feb 2014 10:04:45 +0000 (10:04 +0000)]
Merge "Avoid re-wiring ports unnecessarily"

10 years agoMerge "Rename nvp_cluster for VMware NSX plugin"
Jenkins [Wed, 5 Feb 2014 08:58:32 +0000 (08:58 +0000)]
Merge "Rename nvp_cluster for VMware NSX plugin"

10 years agoMerge "Process port_update notifications in the main agent loop"
Jenkins [Wed, 5 Feb 2014 08:44:31 +0000 (08:44 +0000)]
Merge "Process port_update notifications in the main agent loop"

10 years agoMerge "Minimize the cost of checking for api worker exit"
Jenkins [Wed, 5 Feb 2014 07:52:48 +0000 (07:52 +0000)]
Merge "Minimize the cost of checking for api worker exit"

10 years agoAvoid re-wiring ports unnecessarily
Salvatore Orlando [Sat, 21 Dec 2013 00:59:05 +0000 (16:59 -0800)]
Avoid re-wiring ports unnecessarily

In the majority of cases a port_update notification pertains
a change in the properties affecting port filter, and does
not affect port wiring, ie: the local vlan tag.

This patch simply avoids doing port wiring/unwiring if the
local vlan tag did not change.
The extra overhead for the ovs-db get operation is offset
by the fact that get commands are generally faster than
set commands, and by avoiding executing the ovs-ofctl operation.

Partial-Bug: #1253993
Partially implements blueprint: neutron-tempest-parallel

Change-Id: Ia0bd2dc4e5a2634a4c863ff32ccc5cabe8e21337

10 years agoProcess port_update notifications in the main agent loop
Salvatore Orlando [Thu, 12 Dec 2013 14:02:13 +0000 (06:02 -0800)]
Process port_update notifications in the main agent loop

Instead of processing a port update notification directly in
the RPC call, the actual processing is moved into the main
rpc loop, whereas the RPC call just adds the updated port
identifier to a set of updated ports.
In this way, a port_update notification won't compete with the
main rpc loop, causing long delays into its completion under
heavy load. Also, repeated port_update notifications received
within a single iteration of the main agent loop will be
coalesced and processed only once.
This will also avoid the risk of processing notifications out
of order thus ending up with an actual configuration which
differs from the desired one.

This patch still performs L2 wiring for updated ports even if
it is necessary only when the administrative state of a port
changes.

The update_ports method has been renamed to scan_ports as the latter
name appears to be more in line with what the method actually does.

Partial-Bug: #1253993
Partially implements blueprint: neutron-tempest-parallel
Change-Id: I219c6bdf63b0b5e945b655677f9e28fa591f03cd

10 years agoBase ML2 bulk support on the loaded drivers
Kevin Benton [Fri, 24 Jan 2014 19:43:54 +0000 (19:43 +0000)]
Base ML2 bulk support on the loaded drivers

Changes the ML2 plugin bulk support flag to
be based on the bulk support of the underlying
drivers.

Closes-Bug: #1272490
Change-Id: I28281c9ecc1696b929c7e0125d02a37946948744

10 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 5 Feb 2014 06:24:10 +0000 (06:24 +0000)]
Imported Translations from Transifex

Change-Id: Iabfa4ccf4cfa145630fb5044bdeed76acb29ba6e

10 years agoMerge "Report proper error message in PLUMgrid Plugin"
Jenkins [Wed, 5 Feb 2014 05:17:45 +0000 (05:17 +0000)]
Merge "Report proper error message in PLUMgrid Plugin"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 5 Feb 2014 01:55:56 +0000 (01:55 +0000)]
Merge "Imported Translations from Transifex"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 4 Feb 2014 06:23:51 +0000 (06:23 +0000)]
Imported Translations from Transifex

Change-Id: I5d64e7d935354693146ac58bfe2d0b0ad04a7c24

10 years agoChange metadata-agent to have a configurable backlog
Brian Haley [Thu, 30 Jan 2014 20:05:49 +0000 (15:05 -0500)]
Change metadata-agent to have a configurable backlog

The metadata agent currently runs with a default socket backlog
of 128.  This isn't enough on a busy network node, even when
spawning multiple worker processes.

This change addes a new "metadata_backlog = XX" to the ini file
to support a configurable value to help improve performance.

Change-Id: Ibea398f3b65a56deb1418f39810d87d8360ea9f3
Closes-bug: #1274536

10 years agoSync with commit-id: 9d529dd324d234d7aeaa3e6b4d3ab961f177e2ed
Salvatore Orlando [Fri, 17 Jan 2014 16:48:44 +0000 (08:48 -0800)]
Sync with commit-id: 9d529dd324d234d7aeaa3e6b4d3ab961f177e2ed

(Pulling from the gate, neutron fail rates are currently too high
to have neutron jobs in the queue.)

Related-Bug: #1270212
Change-Id: I94965b395cfb34ed1576b84f21aa48edf991d629

10 years agoChange metadata-agent to spawn multiple workers
Brian Haley [Thu, 30 Jan 2014 19:39:47 +0000 (14:39 -0500)]
Change metadata-agent to spawn multiple workers

There is currently only one metadata-agent per network node,
which could be handling connections from hundreds or thousands
of metadata-namespace-proxy processes.

This change addes a new "metadata_workers = XX" to the ini file
to support creating more workers to help improve performance.

Change-Id: Ib9ebcfc543a83982dd93db79c7dc631283fd3bfa
Partial-bug: #1274536

10 years agoTweak version nvp/nsx version validation logic for router operations
armando-migliaccio [Thu, 30 Jan 2014 02:53:46 +0000 (18:53 -0800)]
Tweak version nvp/nsx version validation logic for router operations

This patch improves how the nsx/nvp controller version is validated
prior to some router operations. This is done by greatly simplifying
the boolean condition.

Missing unit tests are also added for increased coverage.

Closes-bug: 1274361

Change-Id: I1b21444fd86b6e6a0c72bb5a43f1707934dd70e4

10 years agoMerge "Fix the migration adding a UC to agents table"
Jenkins [Thu, 30 Jan 2014 01:33:26 +0000 (01:33 +0000)]
Merge "Fix the migration adding a UC to agents table"

10 years agoSimplify ip allocation/recycling to relieve db pressure
Carl Baldwin [Mon, 18 Nov 2013 23:32:19 +0000 (23:32 +0000)]
Simplify ip allocation/recycling to relieve db pressure

I found that multiple calls to delete_port can pile up on the
_recycle_ip operation.  This patch simplifies this operation.  It
reduces the _recycle_ip operation to a single row delete in the ip
allocations table and doesn't touch the availability table.

To acheive the recycling of ips in a pool, this code runs a more
complex operation of rebuilding the availability table when it is
exhausted.  Only one API process will perform this more expensive
operation and others waiting for allocation will immediately benefit.
The amortized cost of this operation is much less than the cumulative
cost of running the more expensive _recycle_ip operation for every
port delete.

IP allocation behaves a bit differently with this patch.  Instead of
giving out the first IP available in a pool, the entire pool will be
allocated before wrapping around and recycling ip addresses that have
been released.  This is a desirable feature as it puts ip addresses in
a sort of quarantine after they are released.  It is easier to
distinguish newly allocated ips from old ones.

Change-Id: Ia55b66128de9986e075b0f87acc401d211cd91d3
Closes-Bug: #1252506
Closes-Bug: #1257815

10 years agoReduce severity of log messages in validation methods
Carl Baldwin [Fri, 24 Jan 2014 22:35:48 +0000 (22:35 +0000)]
Reduce severity of log messages in validation methods

I noticed this while reviewing Ic2c87174.  When I read through log
files, I don't want to see errors like this that come from validating
bad user input.  Info severity is more appropriate.

Change-Id: Ib8a4dd08570923c6cade6447b52bb73d20558258
Closes-Bug: #1272565

10 years agoRemove garbage in vim header
Salvatore Orlando [Thu, 23 Jan 2014 23:13:56 +0000 (15:13 -0800)]
Remove garbage in vim header

Introduced by commit 9d01010e8826eafc48044fc4018944a34bc96ba4

Change-Id: I97c7789fa13e61d16466cddac49fc41d1f917e80

10 years agoEnable hacking H233 rule
ZhiQiang Fan [Thu, 23 Jan 2014 01:31:27 +0000 (09:31 +0800)]
Enable hacking H233 rule

H233: Check that all occurrences look like print functions, not print
operator.

Change-Id: I4600eb32e1a8ecba13fc252d7ef08681672a40a7

10 years agoRename nvp_cluster for VMware NSX plugin
Salvatore Orlando [Wed, 22 Jan 2014 12:55:46 +0000 (04:55 -0800)]
Rename nvp_cluster for VMware NSX plugin

Rename the module into nsx_cluster and the class into NSXCluster,
and update references accordingly.

Also, rename utility method create_nvp_cluster to create_nsx_cluster
and move it into nsx_utils.

Partial-implements blueprint: nicira-plugin-renaming

Change-Id: I1a943cc64730ea67f464c3804370dad46411f8a2

10 years agoMinimize the cost of checking for api worker exit
Maru Newby [Mon, 20 Jan 2014 19:28:03 +0000 (19:28 +0000)]
Minimize the cost of checking for api worker exit

A recent change to oslo allows the configuration of the interval
that ProcessLauncher waits between checks of child exit.  The
default interval of 0.01s resulted in the neutron service consuming
unnecessary cpu cycles checking whether api workers had exited (5%
cpu on idle in a VM).  This patch extends the interval to 1s to
minimize the cost of the checks.

Change-Id: I0407ccb2db65cd3839586faff15e70dbc35f005e
Closes-bug: #1095346

10 years agoRemove and recreate interface if already exists
Aaron Rosen [Mon, 13 Jan 2014 21:57:04 +0000 (13:57 -0800)]
Remove and recreate interface if already exists

If the dhcp-agent machine restarts when openvswitch comes up it logs the
following warning messages for all tap interfaces that do not exist:

bridge|WARN|could not open network device tap2cf7dbad-9d (No such device)

Once the dhcp-agent starts it recreates the interfaces and re-adds them to the
ovs-bridge. Unfortunately, ovs does not reinitialize the interfaces as they
are already in ovsdb and does not assign them a ofport number.

This situation corrects itself though the next time a port is added to the
ovs-bridge which is why no one has probably noticed this issue till now.

In order to correct this we should first remove interface that exist and
then readd them.

Closes-bug: #1268762

Change-Id: I4bb0019135ab7fa7cdfa6d5db3bff6eafe22fc85

10 years agoMerge "Clean up ML2 Manager"
Jenkins [Sat, 18 Jan 2014 10:32:58 +0000 (10:32 +0000)]
Merge "Clean up ML2 Manager"

10 years agoMerge "VMware NSX: add sanity checks for NSX cluster backend"
Jenkins [Sat, 18 Jan 2014 05:50:11 +0000 (05:50 +0000)]
Merge "VMware NSX: add sanity checks for NSX cluster backend"

10 years agoUse an independent iptables lock per namespace
Carl Baldwin [Fri, 17 Jan 2014 19:28:10 +0000 (19:28 +0000)]
Use an independent iptables lock per namespace

Since iptables is independent from namespace to namespace, it makes
sense to use an independent lock per namespace.  This improvement is
aimed at improving the parallel performance in the L3 agent.

Partially implements blueprint: neutron-tempest-parallel

Change-Id: I15e9c9da9a7c15981757a09bc744501722d62db2

10 years agoReport proper error message in PLUMgrid Plugin
Fawad Khaliq [Mon, 13 Jan 2014 18:42:55 +0000 (10:42 -0800)]
Report proper error message in PLUMgrid Plugin

Change-Id: Ifc1bb55f6b025bba77cf9858ed392dbf170075a7
Closes-Bug: #1268460
Signed-off-by: Fawad Khaliq <fawad@plumgrid.com>
10 years agoMerge "Update RPC code from oslo"
Jenkins [Thu, 16 Jan 2014 16:25:15 +0000 (16:25 +0000)]
Merge "Update RPC code from oslo"

10 years agoMerge "Configure plugins by name"
Jenkins [Thu, 16 Jan 2014 11:56:25 +0000 (11:56 +0000)]
Merge "Configure plugins by name"

10 years agoClean up ML2 Manager
zhhuabj [Thu, 16 Jan 2014 06:34:14 +0000 (14:34 +0800)]
Clean up ML2 Manager

Some things need cleanup in the ML2Manager.

1) Replace sys.exit(1) with raise SystemExit(1)
2) Replace reserved keyword type with network_type

Change-Id: I921bfaec7d3e31503942b3ca4a1b2218c44b14ac
Closes-Bug: #1259646

10 years agoMerge "Fix negative unit test for sec group rules"
Jenkins [Thu, 16 Jan 2014 04:57:02 +0000 (04:57 +0000)]
Merge "Fix negative unit test for sec group rules"

10 years agoExpunge session contents between plugin requests
Salvatore Orlando [Wed, 15 Jan 2014 20:45:22 +0000 (12:45 -0800)]
Expunge session contents between plugin requests

In the NVP plugin, metadata processing performs several plugin operations
with the same context (and db session). The first operation might leave
persisted objects in the session instance which then conflict with objects
created in the second operation.

Closes-Bug: #1266482

Change-Id: Ic9e2b952013610647aa222f1a8b6e33504b54b37

10 years agoMerge "Add binding:host_id when creating port for probe"
Jenkins [Wed, 15 Jan 2014 18:30:52 +0000 (18:30 +0000)]
Merge "Add binding:host_id when creating port for probe"

10 years agoRemove release_lease from the DHCP driver interface
Carl Baldwin [Wed, 13 Nov 2013 18:50:48 +0000 (18:50 +0000)]
Remove release_lease from the DHCP driver interface

Neither the midonet nor the linux dhcp driver needs a call to
release_lease.  Removing this from the driver API simplifies more code
in the DHCP agent.

Change-Id: Ib144b2bf3720b1b999205ace1a7d1ffe5ef3b167
Closes-Bug: #1269505

10 years agoVMware NSX: add sanity checks for NSX cluster backend
armando-migliaccio [Thu, 9 Jan 2014 13:53:09 +0000 (05:53 -0800)]
VMware NSX: add sanity checks for NSX cluster backend

Ensure that all transport nodes registered are up
and running. A failure here, may prevent a lot of
failures down the lines.

Change-Id: I3473928e296ec6792f34bc27a4ae797fed337e7c
Closes-bug: #1267468

10 years agoMerge "LBaaS: synchronize haproxy deploy/undeploy_instance methods"
Jenkins [Wed, 15 Jan 2014 12:43:38 +0000 (12:43 +0000)]
Merge "LBaaS: synchronize haproxy deploy/undeploy_instance methods"

10 years agoUpdate RPC code from oslo
Gary Kotton [Mon, 30 Dec 2013 08:48:15 +0000 (00:48 -0800)]
Update RPC code from oslo

The common RPC code has been updated to include the following:
    8575d87af49ea276341908f83c8c51db13afca44
    8b2b0b743e84ceed7841cf470afed6a5da8e1d07
    23f602940c64ba408d77ceb8f5ba0f67ee4a18ef
    6d0a6c3083218cdac52758a8b6aac6b03402c658
    7cac1ac1bd9df36d4e5183afac3b643df10b1d4d
    8159efddabb09dd9b7c99963ff7c9de0a6c62b62

Updated to include the following in modules in openstack-common.conf:
py3kcompat, sslutils, and versionutils.

The update also includes imports from the RPC code

Change-Id: I84c5b8e2b17da0018dd69ecb354d123a609afe98

10 years agoFix the migration adding a UC to agents table
Roman Podoliaka [Thu, 12 Dec 2013 06:20:15 +0000 (08:20 +0200)]
Fix the migration adding a UC to agents table

The migration script mistakenly assumes that all core
plugins use agents extension, which is not true (e.g.
plumgrid and bigswitch don't).

Apply this migration script only for plugins that are
stated in the original migration script adding agents
table (511471cc46b_agent_ext_model_supp.py).

Related-Bug: #1254246

Change-Id: I7915ef8d183782eb5d46ac47f45014aa9e9640fb

10 years agoConfigure plugins by name
Zang MingJie [Fri, 10 Jan 2014 10:35:49 +0000 (18:35 +0800)]
Configure plugins by name

To configure core plugin or service plugins, instead of using class names,
simpler names can also be used, ex:

service_plugins = router, firewall, lbaas

For compatibility with previous versions, the class name of a plugin can be
specified instead of its entrypoint name, ex:

service_plugins = router, neutron.services.firewall.fwaas_plugin.FirewallPlugin, lbaas

DocImpact

Implements: blueprint config-plugin-by-name
Change-Id: Ia4aaa1d305b160a4d6dab9e227c744727a4c78c2

10 years agoFix negative unit test for sec group rules
Salvatore Orlando [Mon, 13 Jan 2014 11:33:40 +0000 (03:33 -0800)]
Fix negative unit test for sec group rules

Ensure the test fails because the security group
rule could not be created, and not because the security
group was deleted before creating the rule.

Closes-Bug: #1268561

Change-Id: Ib2ea8c4507862d7bb343ce5181cf018b3cdf4b73

10 years agoNVP: Add LOG.exception to see why router was not created
Aaron Rosen [Tue, 14 Jan 2014 21:03:32 +0000 (13:03 -0800)]
NVP: Add LOG.exception to see why router was not created

Add missing LOG.exception so that it exposes what error occurred.

Change-Id: I9194795678a6be59eb1d2555dfa99ca7a035c418
Closes-bug: #1269152

10 years agoAdd binding:host_id when creating port for probe
Jakub Libosvar [Thu, 9 Jan 2014 19:38:37 +0000 (20:38 +0100)]
Add binding:host_id when creating port for probe

When probe is created it needs to have correct bindings otherwise port
is marked as dead.

Change-Id: I64441fbe802aab068c129c9647c7144fcd4c50a1
Partial-Bug: #1262785

10 years agoFix race condition in delete_port method. Fix update_port method
Eugene Nikanorov [Mon, 13 Jan 2014 14:58:59 +0000 (18:58 +0400)]
Fix race condition in delete_port method. Fix update_port method

Port can be gone between
  l3plugin.prevent_l3_port_deletion(context, id)
and port query. Need to handle it properly.
ALso need to handle non-existing port in update_port properly.

Closes-Bug: #1266537

Change-Id: Ic203f21db277f83c604a8757a8c421b3fb9ae709

10 years agoUse information from the dnsmasq hosts file to call dhcp_release
Carl Baldwin [Tue, 12 Nov 2013 22:52:47 +0000 (22:52 +0000)]
Use information from the dnsmasq hosts file to call dhcp_release

Certain situations can cause the DHCP agent's local cache to get out
of sync with the leases held internally by dnsmasq.  This method of
detecting when to call dhcp_release is idempotent and not dependent on
the cache.  It is more robust.

Change-Id: I4eafd9cfb94a77a2f0229f89de5483dad23725cf
Closes-Bug: #1250644

10 years agoFix pip install failure due to missing nvp.ini file
armando-migliaccio [Tue, 7 Jan 2014 10:20:28 +0000 (02:20 -0800)]
Fix pip install failure due to missing nvp.ini file

It looks like sdist does not support symlinks, therefore
letting nvp.ini point to nsx.ini is not a good solution.
Since nvp.ini is going away, leave a copy for now, but
add a warning so that users are aware of the switch,
whilst preserving full backward-compatibility.

Closes-bug: #1266555

Change-Id: Id98c41145712583072a8e63a5de31ecc1074e420

10 years agoMerge "L3 Agent can handle many external networks"
Jenkins [Mon, 13 Jan 2014 16:34:56 +0000 (16:34 +0000)]
Merge "L3 Agent can handle many external networks"

10 years agoMerge "Make timeout for ovs-vsctl configurable"
Jenkins [Mon, 13 Jan 2014 16:21:53 +0000 (16:21 +0000)]
Merge "Make timeout for ovs-vsctl configurable"

10 years agoMerge "VMware NSX: Fix db integrity error on dhcp port operations"
Jenkins [Mon, 13 Jan 2014 10:44:41 +0000 (10:44 +0000)]
Merge "VMware NSX: Fix db integrity error on dhcp port operations"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 13 Jan 2014 06:34:08 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: Ic9f6e6754db748acf456cc69b38c4268b86fe3e1

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 13 Jan 2014 03:49:47 +0000 (03:49 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Update lockutils and fixture in openstack.common"
Jenkins [Mon, 13 Jan 2014 00:59:52 +0000 (00:59 +0000)]
Merge "Update lockutils and fixture in openstack.common"

10 years agoMerge "Fix mistake in usage drop_constraint parameters"
Jenkins [Mon, 13 Jan 2014 00:58:06 +0000 (00:58 +0000)]
Merge "Fix mistake in usage drop_constraint parameters"

10 years agoMerge "Fix race condition on ml2 delete and update port methods"
Jenkins [Sun, 12 Jan 2014 20:49:57 +0000 (20:49 +0000)]
Merge "Fix race condition on ml2 delete and update port methods"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 12 Jan 2014 06:34:37 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: I498d30ef3158b1823a48ad521bc0c5f7149e6ab4

10 years agoMerge "Remove FWaaS Noop driver as default and move to unit tests dir"
Jenkins [Sun, 12 Jan 2014 02:50:07 +0000 (02:50 +0000)]
Merge "Remove FWaaS Noop driver as default and move to unit tests dir"

10 years agoMerge "Fix extension description and remove unused exception"
Jenkins [Sun, 12 Jan 2014 00:39:26 +0000 (00:39 +0000)]
Merge "Fix extension description and remove unused exception"

10 years agoMerge "Remove extra whitespace"
Jenkins [Sun, 12 Jan 2014 00:39:17 +0000 (00:39 +0000)]
Merge "Remove extra whitespace"

10 years agoMerge "Add VXLAN example to ovs_neutron_plugin.ini"
Jenkins [Sun, 12 Jan 2014 00:18:04 +0000 (00:18 +0000)]
Merge "Add VXLAN example to ovs_neutron_plugin.ini"

10 years agoMerge "Add test to port_security to test with security_groups"
Jenkins [Sat, 11 Jan 2014 07:14:14 +0000 (07:14 +0000)]
Merge "Add test to port_security to test with security_groups"

10 years agoMerge "Remove dupl. for get_resources in adv. services"
Jenkins [Fri, 10 Jan 2014 23:32:30 +0000 (23:32 +0000)]
Merge "Remove dupl. for get_resources in adv. services"

10 years agoMake timeout for ovs-vsctl configurable
Salvatore Orlando [Tue, 10 Dec 2013 12:20:26 +0000 (04:20 -0800)]
Make timeout for ovs-vsctl configurable

This patch adds a new configuration variable for the timeout on
ovs-vsctl commands, and sets the default timeout to 10 seconds.
This is aimed at allowing users to tune the agents in order to avoid
timeout errors on their deployments.

Change-Id: I73ea0d0de49a4b4a118bc2d68ad9c093ea122717
Closes-Bug: #1254520

10 years agoMerge "Fix Migration 50e86cb2637a and 38335592a0dc"
Jenkins [Fri, 10 Jan 2014 17:32:02 +0000 (17:32 +0000)]
Merge "Fix Migration 50e86cb2637a and 38335592a0dc"

10 years agoRemove extra whitespace
Salvatore Orlando [Fri, 10 Jan 2014 13:09:18 +0000 (05:09 -0800)]
Remove extra whitespace

Remove an extra whitespace in the __str__ routine for the
VifPort class

Change-Id: Ie4a7d011af1697d2e6f523dfe00244aaa42d5127

10 years agoFix extension description and remove unused exception
Salvatore Orlando [Fri, 10 Jan 2014 13:04:23 +0000 (05:04 -0800)]
Fix extension description and remove unused exception

Change-Id: Id0a40a8decb46e306256196c7fc79d687d4f8075
Closes-Bug: #1267841

10 years agoFix mistake in usage drop_constraint parameters
Ann Kamyshnikova [Wed, 4 Dec 2013 06:59:59 +0000 (10:59 +0400)]
Fix mistake in usage drop_constraint parameters

In migration e197124d4b9_add_unique_constrain mistake in usage
drop_constraint parameter type_ and positional arguments name
and table_name.

The same mistake was already fixed in migration
63afba73813_ovs_tunnelendpoints_id_unique.

Change-Id: I6a250e55ea53048bb11afd71fecf94da6f0c7421
Closes-bug: #1257607

10 years agoMerge "Update the descriptions for the log cfg opts"
Jenkins [Fri, 10 Jan 2014 09:29:13 +0000 (09:29 +0000)]
Merge "Update the descriptions for the log cfg opts"

10 years agoFix race condition on ml2 delete and update port methods
Eugene Nikanorov [Thu, 9 Jan 2014 09:23:02 +0000 (13:23 +0400)]
Fix race condition on ml2 delete and update port methods

Synchronize access to ports table when deleting and updating
a port. Otherwise concurrent update/delete request for the same port
may cause neutron server to throw an exception and return
'500 Internal server error' for such requests.

Change-Id: I868002643147ce6baace5671cffb38b4f5e66729
Closes-Bug: #1266537

10 years agoFix Migration 50e86cb2637a and 38335592a0dc
Aaron Rosen [Thu, 9 Jan 2014 21:49:10 +0000 (13:49 -0800)]
Fix Migration 50e86cb2637a and 38335592a0dc

When the rename of quantum->neutron occurred here ee3fe4e8 it also renamed
the the table creation from quantum_nvp_port_mapping to
neutron_nvp_port_mapping. This went undetected for a long time because
when neutron-server starts up it pushes down the scheme for tables that
are not there so the table would be created.

Because of this the following migration 50e86cb2637a called
op.rename_table('neutron_nvp_port_mapping', 'neutron_nsx_port_mappings')
though the table name being used was quantum_nvp_port_mapping. Because of this
the quantum_id->nvp_id mapping was never migrated over to the new table and
you would be left with a quantum_nvp_port_mapping table hanging around.

In addition, the downgrade would rename the table to neutron_nvp_port_mapping
instead of quantum_nvp_port_mapping. This patch addresses this issues.

Change-Id: I4f80b7b9dc56996ecd83826ee65918f5311c7c4f
Closes-bug: #1267619

10 years agoL3 Agent can handle many external networks
Sylvain Afchain [Fri, 29 Nov 2013 23:49:02 +0000 (00:49 +0100)]
L3 Agent can handle many external networks

With this patch a l3 agent can handle
any networks by setting the neutron
parameter external_network_bridge
and gateway_external_network_id to
empty.

Related-Bug: #1234750
Related-Bug: #1194350

Change-Id: Id260a239df23951da730513f40cda490002effc3

10 years agoUpdate lockutils and fixture in openstack.common
Ann Kamyshnikova [Fri, 20 Sep 2013 11:48:37 +0000 (15:48 +0400)]
Update lockutils and fixture in openstack.common

lockutils: included commits:
  8b2b0b7 Use hacking import_exceptions for gettextutils._
  6d0a6c3 Correct invalid docstrings
  12bcdb7 Remove vim header
  79e6bc6 fix lockutils.lock() to make it thread-safe
  ace5120 Add main() to lockutils that creates temp dir for locks
  537d8e2 Allow lockutils to get lock_path conf from envvar
  371fa42 Move LockFixture into a fixtures module
  d498c42 Fix to properly log when we release a semaphore
  29d387c Add LockFixture to lockutils
  3e3ac0c Modify lockutils.py due to dispose of eventlet
  90b6a65 Fix locking bug
  27d4b41 Move synchronized body to a first-class function
  15c17fb Make lock_file_prefix optional
  1a2df89 Enable H302 hacking check

fixture: created, included commits:
  45658e2 Fix violations of H302:import only modules
  12bcdb7 Remove vim header
  3970d46 Fix typos in oslo
  371fa42 Move LockFixture into a fixtures module
  f4a4855 Consolidate the use of stubs
  6111131 Make openstack.common.fixture.config Py3 compliant
  3906979 Add a fixture for dealing with config
  d332cca Add a fixture for dealing with mock patching.
  1bc3ecf Start adding reusable test fixtures.

Also tox.ini was corrected to let lockutils work in tests.

This change is needed for work on bp: db-sync-models-with-migrations

Closes-Bug: #1065531

Change-Id: I139f30b4767ff2c9d1f01ee728823859c09b3859

10 years agoAdd test to port_security to test with security_groups
Aaron Rosen [Wed, 8 Jan 2014 21:03:29 +0000 (13:03 -0800)]
Add test to port_security to test with security_groups

This patch adds a missing testcase to the port_security tests to test
for creating a port with port_security_enabled=False and passing in
a security group.

Closes-bug: #1267246
Change-Id: Ifb5a5571f016a5d7c5b5075c97dc27279cd79bb7