]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoAdding more unit tests for the FWaaS agent
Sridar Kandaswamy [Fri, 23 Aug 2013 07:39:18 +0000 (00:39 -0700)]
Adding more unit tests for the FWaaS agent

Change-Id: Ic3de53ed9fa47f6518cbb25dac4ee7782c97bfbb
Fixes: bug #1215771
11 years agoSync rpc fix from oslo-incubator
Russell Bryant [Tue, 3 Sep 2013 06:51:14 +0000 (02:51 -0400)]
Sync rpc fix from oslo-incubator

Sync the following fix from oslo-incubator:

76972e2 Support a new qpid topology

This includes one other commit, so that the above fix could be brought
over cleanly:

5ff534d Add config for amqp durable/auto_delete queues

Closes-bug: #1178375
Change-Id: I99d6a1771bc3223f86db0132525bf22c271fe862

11 years agoLBaaS: update status of members according to health statistics
Oleg Bondarev [Wed, 14 Aug 2013 12:11:24 +0000 (16:11 +0400)]
LBaaS: update status of members according to health statistics

Added members health stats reporting to the haproxy driver.
During pool stats update db plugin checks for members stats
and updates members statuses if any

Fixes bug 1160125

Change-Id: I77bf13615607fcf91bf877c228811ea8008b2457

11 years agoMerge "Adds metrics collection support in Hyper-V"
Jenkins [Mon, 2 Sep 2013 22:05:26 +0000 (22:05 +0000)]
Merge "Adds metrics collection support in Hyper-V"

11 years agoFix DHCP agent to work without extra_dhcp_opt extension
Francois Eleouet [Mon, 2 Sep 2013 16:21:01 +0000 (18:21 +0200)]
Fix DHCP agent to work without extra_dhcp_opt extension

With the introduction of extra_dhcp_opt extension, DHCP agent
stopped serving mac adresses when used in conjunction with a
plugin that doesn't support this extension. This fixes the agent
by not assuming that port dict contains extra_dhcp_opt key.

Closes Bug: #1219893

Change-Id: I5bb52f3092f04c5e332b43cb3a04de05edc29cf5

11 years agoAdds metrics collection support in Hyper-V
Alessandro Pilotti [Thu, 22 Aug 2013 00:14:00 +0000 (03:14 +0300)]
Adds metrics collection support in Hyper-V

Blueprint: hyper-v-metrics

Hyper-V Server 2012 supports a new set of metrics API that can be used to
provide switch port metrics data to external applications, e.g. Ceilometer.

Metrics collection is disabled by default and can be enabled with a config
option.

Metrics are configured via ACLs applied by the Hyper-V plugin agent.

Change-Id: Ife2a53db84936bae7c73b8c027022bbc5e89d48a

11 years agoMerge "Minimize ovs l2 agent calls to get_vif_port_set()"
Jenkins [Wed, 28 Aug 2013 14:47:52 +0000 (14:47 +0000)]
Merge "Minimize ovs l2 agent calls to get_vif_port_set()"

11 years agoMerge "Remove trailing comma"
Jenkins [Wed, 28 Aug 2013 14:20:48 +0000 (14:20 +0000)]
Merge "Remove trailing comma"

11 years agoMerge "Adds support for the Hyper-V WMI V2 namespace"
Jenkins [Wed, 28 Aug 2013 10:40:40 +0000 (10:40 +0000)]
Merge "Adds support for the Hyper-V WMI V2 namespace"

11 years agoMerge "Fix script to build rpm required for L2 OVS agent for XenServer"
Jenkins [Wed, 28 Aug 2013 10:12:18 +0000 (10:12 +0000)]
Merge "Fix script to build rpm required for L2 OVS agent for XenServer"

11 years agoMerge "Support for Floating IPs in PLUMgrid plugin"
Jenkins [Wed, 28 Aug 2013 06:34:44 +0000 (06:34 +0000)]
Merge "Support for Floating IPs in PLUMgrid plugin"

11 years agoMerge "BigSwitch plugin - add portbinding info in requests to controller"
Jenkins [Wed, 28 Aug 2013 06:34:21 +0000 (06:34 +0000)]
Merge "BigSwitch plugin - add portbinding info in requests to controller"

11 years agoMerge "Make Neutron NVP plugin future-versions friendly"
Jenkins [Wed, 28 Aug 2013 06:09:34 +0000 (06:09 +0000)]
Merge "Make Neutron NVP plugin future-versions friendly"

11 years agoMerge "subnet calls of ml2 mechanism driver"
Jenkins [Wed, 28 Aug 2013 06:09:26 +0000 (06:09 +0000)]
Merge "subnet calls of ml2 mechanism driver"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 28 Aug 2013 03:30:32 +0000 (03:30 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Enable authentication between PLUMgrid Director and Plugin"
Jenkins [Tue, 27 Aug 2013 23:07:13 +0000 (23:07 +0000)]
Merge "Enable authentication between PLUMgrid Director and Plugin"

11 years agoMake Neutron NVP plugin future-versions friendly
armando-migliaccio [Tue, 27 Aug 2013 19:53:58 +0000 (12:53 -0700)]
Make Neutron NVP plugin future-versions friendly

This patch enables the plugin to deal correctly with
newer versions of the NVP platform; this is done by
allowing the plugin to fall back to the closest known
version of the NVP platform. This is acceptable behavior
as L2/L3 operations implemented by the platform are most
certainly backward compatible.

This patch also improves test coverage for this part of the
code, which is critical to the correct behavior of the plugin.

Fixes bug #1217479

Change-Id: Ifcce47c6ee2bc2bc96ddfe9298d252700aceca3f

11 years agoFix script to build rpm required for L2 OVS agent for XenServer
armando-migliaccio [Thu, 22 Aug 2013 20:23:21 +0000 (13:23 -0700)]
Fix script to build rpm required for L2 OVS agent for XenServer

Use up to date way to retrieve the version info.

Fixes bug #1215619

Change-Id: I7263fd61a8ea407626d2330f7546f4046e803b50

11 years agosubnet calls of ml2 mechanism driver
Zang MingJie [Mon, 26 Aug 2013 09:31:46 +0000 (17:31 +0800)]
subnet calls of ml2 mechanism driver

Implements blueprint ml2-mechanism-driver-subnet-calls

Change-Id: Ib9a8009975959692f46f80fb2a850fcc2b22debe

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 27 Aug 2013 06:13:26 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: Ia664404f7d37fff4cbc76fb43227584fcdd106a2

11 years agoMerge "Fix port creation issue appeared with postgresql backend"
Jenkins [Tue, 27 Aug 2013 03:45:59 +0000 (03:45 +0000)]
Merge "Fix port creation issue appeared with postgresql backend"

11 years agoMerge "Deal with 501 errors from NVP correctly"
Jenkins [Tue, 27 Aug 2013 02:30:32 +0000 (02:30 +0000)]
Merge "Deal with 501 errors from NVP correctly"

11 years agoMerge "Use system locale when Accept-Language header is not provided"
Jenkins [Tue, 27 Aug 2013 02:03:33 +0000 (02:03 +0000)]
Merge "Use system locale when Accept-Language header is not provided"

11 years agoMulti-segment and trunk support for the Cisco N1Kv Plugin
Rudrajit Tapadar [Sat, 10 Aug 2013 06:42:45 +0000 (23:42 -0700)]
Multi-segment and trunk support for the Cisco N1Kv Plugin

This patch adds vlan and vxlan trunk support in the
Cisco N1Kv plugin. It also adds support for multi-segment
networks for bridging vlan networks with vxlan networks.

Change-Id: Ibecbbfbce1eb4d18ef6a1bc5250622b9ae87d39c
Implements: blueprint multi-segment-and-trunk-support-cisco-nexus1000v

11 years agoRefactor BigSwitch error handling to use db rollbacks
Kevin Benton [Fri, 23 Aug 2013 03:17:00 +0000 (20:17 -0700)]
Refactor BigSwitch error handling to use db rollbacks

This patch adjusts most of the logic handling the
calls to the controller in the BigSwitch/floodlight
plugin to make use of the db rollbacks from
sqlalchemy for free on exceptions. This eliminates
several complex try-except blocks and makes
maintaining db<->controller consistency easier.

Fixes: bug #1215823
Change-Id: Ia636c40e744b3b1c543e891791bf492df4f675d2

11 years agoMerge "Add extra_dhcp_opt extension to BigSwitch/Floodlight plugin"
Jenkins [Sun, 1 Sep 2013 18:50:03 +0000 (18:50 +0000)]
Merge "Add extra_dhcp_opt extension to BigSwitch/Floodlight plugin"

11 years agoMerge "Analyze re-raised exceptions in Cisco Plugin"
Jenkins [Sun, 1 Sep 2013 18:32:00 +0000 (18:32 +0000)]
Merge "Analyze re-raised exceptions in Cisco Plugin"

11 years agoMerge "Add missing match in OVS agent tunnel mac leaning"
Jenkins [Sun, 1 Sep 2013 16:44:24 +0000 (16:44 +0000)]
Merge "Add missing match in OVS agent tunnel mac leaning"

11 years agoMerge "Correct VPNaaS limit checks in extension"
Jenkins [Sun, 1 Sep 2013 08:35:29 +0000 (08:35 +0000)]
Merge "Correct VPNaaS limit checks in extension"

11 years agoMerge "Fix 500 error on invalid security-group-rule creation for NVP"
Jenkins [Sun, 1 Sep 2013 04:46:29 +0000 (04:46 +0000)]
Merge "Fix 500 error on invalid security-group-rule creation for NVP"

11 years agoMerge "Return 400 if creating a distributed router on old NVP platforms"
Jenkins [Sat, 31 Aug 2013 20:19:10 +0000 (20:19 +0000)]
Merge "Return 400 if creating a distributed router on old NVP platforms"

11 years agobp: pxeboot-port, provide pxeboot on ports
dekehn [Sat, 31 Aug 2013 02:15:12 +0000 (20:15 -0600)]
bp: pxeboot-port, provide pxeboot on ports

Teach neutron how to manage PXE boot.

Allow pxe boot parameters to be specified when creating a network port.

Implements bp:pxeboot-ports

Change-Id: I45fe7a16bc6c5975a765dd6a065558b9ba702e5b

11 years agoMerge "Create RPC connection before modifying OVS bridges"
Jenkins [Fri, 30 Aug 2013 23:56:45 +0000 (23:56 +0000)]
Merge "Create RPC connection before modifying OVS bridges"

11 years agoFix comment typo s/no/so
Aaron Rosen [Fri, 30 Aug 2013 22:15:24 +0000 (15:15 -0700)]
Fix comment typo s/no/so

Change-Id: I1c7b0834202caca6b3bb79acd243c96b865583bc

11 years agoAdd missing match in OVS agent tunnel mac leaning
Francois Eleouet [Fri, 30 Aug 2013 20:30:04 +0000 (22:30 +0200)]
Add missing match in OVS agent tunnel mac leaning

Learned flows introduced in commit a369f9e39691c01a4e4f7f8668cb37fc17ba03b3
to learn remote mac addresses on tunnels currently only match local VLAN,
but not destination mac address, as a consequence, connectivity may be
erratic as soon as more than two agents are used

Change-Id: I467e47d0dd2c1e5aca12a4e240e348116d530d4f
Closes-Bug: #1219074

11 years agoCreate RPC connection before modifying OVS bridges
Stephen Gran [Thu, 29 Aug 2013 06:11:44 +0000 (07:11 +0100)]
Create RPC connection before modifying OVS bridges

On startup, the agent removes and readds flows to the OVS bridges.  If
an RPC setup error exits the process prematurely, this can leave the
bridges in an unsafe state.  It is better to set the RPC communication
up before making changes to the host system.

Closes-Bug: 1217980
Change-Id: Ib9bbb864b9129bb7b1376a150a37a0c07908d74b
Signed-off-by: Stephen Gran <stephen.gran@guardian.co.uk>
11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 30 Aug 2013 16:39:57 +0000 (16:39 +0000)]
Merge "Imported Translations from Transifex"

11 years agoReturn 400 if creating a distributed router on old NVP platforms
armando-migliaccio [Tue, 13 Aug 2013 21:13:14 +0000 (14:13 -0700)]
Return 400 if creating a distributed router on old NVP platforms

Without checking for the right NVP support, creating a distributed
router will silently fail, i.e. ithe 'distributed' attribute will
be ignored and a centralized router will be created instead.

Supports blueprint nvp-distributed-router

Change-Id: If8e40c0907d78c30f9ba918aaaff57e58ebb8055

11 years agoMerge "Corrects error in ml2 rpc log message formatting"
Jenkins [Fri, 30 Aug 2013 07:08:31 +0000 (07:08 +0000)]
Merge "Corrects error in ml2 rpc log message formatting"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 30 Aug 2013 06:13:51 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: I503e7e0273a8b344646a99373ddd87451ed7fd75

11 years agoCorrects error in ml2 rpc log message formatting
Zang MingJie [Thu, 29 Aug 2013 07:46:17 +0000 (15:46 +0800)]
Corrects error in ml2 rpc log message formatting

Change-Id: Ic6f445408ef83c2aa0376c94f395363503412814

11 years agoMerge "Load tables of service plugins when migration auto generation"
Jenkins [Fri, 30 Aug 2013 04:13:17 +0000 (04:13 +0000)]
Merge "Load tables of service plugins when migration auto generation"

11 years agoMerge "Support for NVP distributed router"
Jenkins [Fri, 30 Aug 2013 02:22:24 +0000 (02:22 +0000)]
Merge "Support for NVP distributed router"

11 years agoCorrect VPNaaS limit checks in extension
Paul Michali [Fri, 23 Aug 2013 20:16:01 +0000 (16:16 -0400)]
Correct VPNaaS limit checks in extension

For the following VPNaaS attributes, ensure that these validation
tests are performed in the extension:

    keepalive >= 60 (seconds)
    mtu >= 0 (octets)
    DPD interval > 0 (seconds)
    DPD timeout > 0 (seconds)

Currently, the units for keepalive can only be seconds. If this
changes in the future (e.g. to allow kilobytes units), then the
test for the value will need to be changed.

To correctly test the MTU limits for an IPSec connection, the
protocol must be taken into consideration, which is defined by
the vpnservice object. Because of this dependency, we cannot
validate this in the extension, and will instead, just make
sure the value is positive.

Likewise, the attribute validators cannot ensure that the
DPD timeout is greater than the interval (again, because the
validators can only check the individual attributes one at
a time).

The range validator was modified to allow single ended ranges
for some of these attributes. The range also ensures the value
is an integer.

Companion changes are being made in the CLI code for these limit
changes.

Update: Fixed typo causing tox failure.

bug 1216117

Change-Id: I85d6175d81fbe7d27231aed48fb4691351e0db4c

11 years agoMerge "Fix unsuitable assertTrue/assertFalse in api ut"
Jenkins [Fri, 30 Aug 2013 00:13:41 +0000 (00:13 +0000)]
Merge "Fix unsuitable assertTrue/assertFalse in api ut"

11 years agoMerge "Forbid update of subnet gateway ip when in use by a port"
Jenkins [Thu, 29 Aug 2013 22:01:09 +0000 (22:01 +0000)]
Merge "Forbid update of subnet gateway ip when in use by a port"

11 years agoFix unsuitable assertTrue/assertFalse in api ut
ZhiQiang Fan [Thu, 29 Aug 2013 21:35:32 +0000 (05:35 +0800)]
Fix unsuitable assertTrue/assertFalse in api ut

Some usages of assertTrue()/assertFalse() are incorrect, improve
them to more explicit assert from the unit test suite.

Closes-Bug: #1218621
Change-Id: I22be2af05f06e91020dbaa4cf08bf395d68f563b

11 years agoMerge "Improve dhcp agent structure to support multiple dhcp models"
Jenkins [Thu, 29 Aug 2013 20:46:20 +0000 (20:46 +0000)]
Merge "Improve dhcp agent structure to support multiple dhcp models"

11 years agoMerge "Fix incorrect usage of assertTrue()"
Jenkins [Thu, 29 Aug 2013 20:25:35 +0000 (20:25 +0000)]
Merge "Fix incorrect usage of assertTrue()"

11 years agoMerge "Add list of pool ids to HealthMonitor dict"
Jenkins [Thu, 29 Aug 2013 17:32:51 +0000 (17:32 +0000)]
Merge "Add list of pool ids to HealthMonitor dict"

11 years agoSupport for NVP distributed router
Salvatore Orlando [Wed, 3 Jul 2013 20:07:09 +0000 (22:07 +0200)]
Support for NVP distributed router

Blueprint nvp-distributed-router

This patch adds support for NVP distributed logical routers
adding a simple attribute extension.
The default router type can be controlled used the default_router_type
option in the nvp section of neutron configuration.
In order to ensure backward compatibility, pre-existing routers
will be treated as centralized routers.

Change-Id: Iaab9ffb6071c93990be711ebb56c212230544a7a

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 29 Aug 2013 13:28:55 +0000 (13:28 +0000)]
Merge "Imported Translations from Transifex"

11 years agoLoad tables of service plugins when migration auto generation
Akihiro MOTOKI [Thu, 29 Aug 2013 12:08:06 +0000 (21:08 +0900)]
Load tables of service plugins when migration auto generation

When we run "neutron-db-manage revision --autogenerate", it detects
table deletion of service plugins even when they are configured.
We need to load tables of service plugins to teach alembic such
tables exist.

Change-Id: I9186d36496069c8253683bd200326b80a6565fa6
Closes-Bug: #1218338

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 29 Aug 2013 06:14:33 +0000 (06:14 +0000)]
Imported Translations from Transifex

Change-Id: I8a48ee88df7f54559cd1b05245d6523a127ef665

11 years agoUse assertEqual instead of assertEquals
ZhiQiang Fan [Thu, 29 Aug 2013 05:46:04 +0000 (13:46 +0800)]
Use assertEqual instead of assertEquals

Closes-Bug: #1218185

For unittest, assertEquals is deprecated in py3, use assertEqual
instead.

Change-Id: Ia71b51a0f2625aec5fb4644853a79c2ea80a799c

11 years agoMerge "Fix a race condition in add_tunnel_endpoint()"
Jenkins [Thu, 29 Aug 2013 05:06:14 +0000 (05:06 +0000)]
Merge "Fix a race condition in add_tunnel_endpoint()"

11 years agoMerge "Add recent neutron extentions and IB support"
Jenkins [Thu, 29 Aug 2013 04:51:44 +0000 (04:51 +0000)]
Merge "Add recent neutron extentions and IB support"

11 years agoFix a race condition in add_tunnel_endpoint()
Roman Podolyaka [Tue, 30 Apr 2013 12:12:15 +0000 (15:12 +0300)]
Fix a race condition in add_tunnel_endpoint()

If there are multiple OVS agents concurrently executing
'tunnel_sync' RPC call a race condition can occur
leading to insertion of two different TunnelEndpoint
entries having the same 'id' value.

Unfortunately, we can not rely on:
  - @lockutils.synchronized(), because a Neutron installation can use
    more than one API node
  - with_lockmode('update'), because it works differently in PostgreSQL
    comparing to MySQL and doesn't guarantee that no new rows have been
    added to the table since the select query was issued. Please take a
    look at http://www.postgresql.org/files/developer/concurrency.pdf for
    more details.

The proposed fix:
  - ensures there is a unique constraint set for 'id' column
  - wraps creation of a new TunnelEndpoint entry into a
    repeatedly executed transactional block (so even if a concurrent
    DB transaction has been flushed or commited earlier than this one
    we can handle an integrity error and try again, in spite of the
    specified transactions isolation level value)

Fixes bug 1167916

Change-Id: I62dc729d595f090436199d5e1b6b98a884ead7a5

11 years agoForbid update of subnet gateway ip when in use by a port
Salvatore Orlando [Thu, 8 Aug 2013 17:38:11 +0000 (10:38 -0700)]
Forbid update of subnet gateway ip when in use by a port

Bug 1186322

If a port is currently using the subnet's gateway IP, which usually
happens for router interfaces, do not allow updates to the gateway IP.
This patch adds an extra query on the IPAllocation model, which
returns at most a single record, and is executed in _validate_subnet
only when the subnet is updated.

Change-Id: Ie29be1b83f9a639562bfc84f3f2c082833126d32

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 28 Aug 2013 16:35:21 +0000 (16:35 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Correct spelling mistake"
Jenkins [Wed, 28 Aug 2013 16:35:11 +0000 (16:35 +0000)]
Merge "Correct spelling mistake"

11 years agoMerge "Avoid performing extra query for fetching mac learning binding"
Jenkins [Wed, 28 Aug 2013 16:35:02 +0000 (16:35 +0000)]
Merge "Avoid performing extra query for fetching mac learning binding"

11 years agoMerge "Allow for skipping admin roles loading on context creation"
Jenkins [Wed, 28 Aug 2013 16:32:34 +0000 (16:32 +0000)]
Merge "Allow for skipping admin roles loading on context creation"

11 years agoCorrect spelling mistake
lawrancejing [Wed, 28 Aug 2013 13:26:32 +0000 (21:26 +0800)]
Correct spelling mistake

Change-Id: I3bd2f76e73459e50d255f75f79262af537b29596

11 years agoAllow for skipping admin roles loading on context creation
Salvatore Orlando [Wed, 28 Aug 2013 07:32:31 +0000 (00:32 -0700)]
Allow for skipping admin roles loading on context creation

Bug 1216866

There are cases in which an admin context is created only to grab a db
session and ensure no tenant filters are applied in _model_query. In
these cases evaluating the policy engine for grabbing admin roles is not
necessary, and can cause unexpected and serious issues if the context is
grabbed before all the extensions are loaded.

Change-Id: I0cbf4b51ca1286373c16eb907840a32f4b8190c6

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 28 Aug 2013 06:13:16 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: I963fdd0c311be49a96a337e439f4028756baafbe

11 years agoFix incorrect usage of assertTrue()
Rosario Di Somma [Tue, 27 Aug 2013 13:25:59 +0000 (09:25 -0400)]
Fix incorrect usage of assertTrue()

The usage of assertTrue() is incorrect, more explicit assert
from the unit test suite(like assertIsNotNone or assertIn)
should be used instead.

Fixes: bug #1217028
Change-Id: I30a80bc9e122d28c22b698e0cb97068c1040bfc3
Signed-off-by: Rosario Di Somma <rosario.disomma@dreamhost.com>
11 years agoAdd extra_dhcp_opt extension to BigSwitch/Floodlight plugin
Kevin Benton [Mon, 19 Aug 2013 16:34:36 +0000 (09:34 -0700)]
Add extra_dhcp_opt extension to BigSwitch/Floodlight plugin

Adds support for the DHCP options extenion to the
BigSwitch/Floodlight plugin.

Fixes: bug #1206655
Change-Id: Ida30ca44ecbb9d1208303e47519427a4111f6025

11 years agoRemove trailing comma
ZhiQiang Fan [Tue, 27 Aug 2013 00:17:55 +0000 (08:17 +0800)]
Remove trailing comma

Closes-Bug: #1217135

There are trailing commas in default value of some options, uncomment
them will cause CRITICAL error for neutron-server. These sample config
may mislead operators, so this patch fix them to the correct format.

Change-Id: Ie0b7626aade653b761257eb2bf397cb3cc5a961e

11 years agoEnable authentication between PLUMgrid Director and Plugin
Edgar Magana [Sun, 25 Aug 2013 20:11:27 +0000 (13:11 -0700)]
Enable authentication between PLUMgrid Director and Plugin

Implements blueprint plumgrid-plugin-rest-access

Change-Id: I0f9a6c39c09f756ee5fc7c9d6993e59b1e6be639

11 years agoMerge "Separate l3 db tests for l3 agent into their own test case"
Jenkins [Mon, 26 Aug 2013 18:19:44 +0000 (18:19 +0000)]
Merge "Separate l3 db tests for l3 agent into their own test case"

11 years agoAdds support for the Hyper-V WMI V2 namespace
Claudiu Belu [Wed, 7 Aug 2013 14:15:09 +0000 (07:15 -0700)]
Adds support for the Hyper-V WMI V2 namespace

Blueprint: hyper-v-wmi-v2

The Hyper-V APIs are mainly based on WMI. The original 2008 Hyper-V
release introduced the "root\virtualization" namespace which got
superseded in Hyper-V Server / Windows Server 2012 by the
"root\virtualization\v2" namespace (referred as V2 in the sources).

The original namespace has been dropped in the upcoming Hyper-V 2012
R2 (currently available in preview), which means that the Grizzly code
will not be compatible with it as is.

The Hyper-V driver is structured with a clear decoupling between OS
interaction classes (so called *utils modules and classes) and the
agent's logic.

This allows us to provide an implementation of the V2 API without
impacting the rest of the agent's code, based on a factory module
added to instantiate the proper version of the *utils classes: the
original "V1" ones for versions of the OS predating 2012 and the
newer "V2" ones starting from Hyper-V 2012 (Windows kernel version
6.2).

Change-Id: I380d8c65715242d8a5b94b5061ebe4f30e6c2090

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 26 Aug 2013 06:20:37 +0000 (06:20 +0000)]
Imported Translations from Transifex

Change-Id: I9300e32b84f02492c8cf32cfff65f3eb207672d5

11 years agoMerge "Enable GRE and VXLAN with the same ID"
Jenkins [Mon, 26 Aug 2013 01:06:44 +0000 (01:06 +0000)]
Merge "Enable GRE and VXLAN with the same ID"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sun, 25 Aug 2013 15:36:38 +0000 (15:36 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Add metadata_proxy_socket into configuration files"
Jenkins [Sun, 25 Aug 2013 07:15:44 +0000 (07:15 +0000)]
Merge "Add metadata_proxy_socket into configuration files"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 25 Aug 2013 06:14:47 +0000 (06:14 +0000)]
Imported Translations from Transifex

Change-Id: Iec84d6c1aced5c2cbd976f899811396f9f9e6753

11 years agoAnalyze re-raised exceptions in Cisco Plugin
Paul Michali [Fri, 23 Aug 2013 15:47:24 +0000 (11:47 -0400)]
Analyze re-raised exceptions in Cisco Plugin

Checked all cases of re-raised exceptions. In several cases, the exception
was redundant (re-raising the same exception), so the try block and
exception handling was removed.

In one case, exceptions raised from two sources were re-raised with a
a different exception. Instead of doing this, the original exceptions
were changed and the try block and re-raised exception were removed.

In cases where there were database exceptions that were re-raised as
Neutron exceptions, the traceback was left as-is, since it was more
informative to know the higher level source of the issue.

The same was true for the exception mentioned in the bug, where the
original failure was in the ncclient library parsing the configuration
and it would be more descriptive to know that there was a connection
failure or a config failure, that to know the library method.

bug 1213159

Change-Id: Ie334d2548bf651c61e878bf797adaf8c5880eb86

11 years agoSupport for Floating IPs in PLUMgrid plugin
Edgar Magana [Fri, 23 Aug 2013 01:42:04 +0000 (18:42 -0700)]
Support for Floating IPs in PLUMgrid plugin

Implements blueprint plumgrid-plugin-floatingip

Include operations supporting create, update and delete of Floating IPs
Drivers been updated properly

Change-Id: I8ed5e620e45f026e0673be78971329a93353370d

11 years agoBigSwitch plugin - add portbinding info in requests to controller
Kevin Benton [Fri, 23 Aug 2013 12:51:54 +0000 (05:51 -0700)]
BigSwitch plugin - add portbinding info in requests to controller

Include portbinding info in requests to controller so it receives
information about the compute node like the VIF type and the host
ID. Also includes better debug output on back-end failures.

Fixes: bug #1216061
Change-Id: Ib85c8a088ee9fb94baaf8f28849b318b32d9d672

11 years agoMinimize ovs l2 agent calls to get_vif_port_set()
Maru Newby [Thu, 22 Aug 2013 07:57:00 +0000 (07:57 +0000)]
Minimize ovs l2 agent calls to get_vif_port_set()

The ovs l2 agent was previously calling get_vif_port_set() on the
integration bridge once per rpc_loop() iteration and then again in
the periodic _report_state() call that returns the current device
count to the neutron service.  Since get_vif_port_set() is an
expensive call (relying on shell commands) and since there
is minimal risk associated with reporting stats that are a few
seconds old, this patch caches the device count for reuse by
_report_state().

Partial-Bug: 1177973

Change-Id: Ice73384ed1ba1e97120028cd0a9bff94a62a41a4

11 years agoImprove dhcp agent structure to support multiple dhcp models
armando-migliaccio [Fri, 2 Aug 2013 00:13:26 +0000 (17:13 -0700)]
Improve dhcp agent structure to support multiple dhcp models

This patch introduces some minor refactoring of the dhcp
code so that it is easy to support both an in-node/same
process dhcp provisioning model (e.g. with dnsmasq) and
proxy model, where DHCP is provided by an external node.

Higher separation of concerns is also achieved by doing
better data encapsulation.

Implements blueprint dhcp-flexi-model

Change-Id: Icbd215e9682ecaebb6a4300423f3564e8e677566

11 years agoAvoid performing extra query for fetching mac learning binding
Salvatore Orlando [Wed, 21 Aug 2013 12:14:54 +0000 (05:14 -0700)]
Avoid performing extra query for fetching mac learning binding

Bug 1214879

Add a relationship performing eager load in the Port model, thus preventing
the 'extend' function from performing an extra query.
This patch also replaces assertTrue with assertEqual in unit tests as it
needs to evaluate whether the value of the mac_learning_enabled attribute
is equal to the boolean literal True, whereas assertTrue verifies that the
expression passed to it evaluates to True. This means that any value but
False will be enough for the test to pass, which is not correct.

Change-Id: I03345ef3a125fdfa1ec7f6c3363d76efc12ced82

11 years agoSeparate l3 db tests for l3 agent into their own test case
Salvatore Orlando [Fri, 23 Aug 2013 10:37:57 +0000 (03:37 -0700)]
Separate l3 db tests for l3 agent into their own test case

Bug 1215871

This patch does a simple refactoring of test_l3_plugin, pushing out tests
aimed at validating the interactions of the l3 agent with the server.

These tests explicitly use TestL3NatPlugin, whereas all the
other tests use a configurable plugin, which might be specificed by a child
class. This might lead to confusion and possibly errors in unit tests for
child classes, especially those not using the l3 agent - for which running
these test is also superfluous.

Change-Id: Ia9ed320ea775fc548e6a5b711c67c9f3b0ae2f6d

11 years agoFix port creation issue appeared with postgresql backend
Eugene Nikanorov [Thu, 22 Aug 2013 15:08:34 +0000 (19:08 +0400)]
Fix port creation issue appeared with postgresql backend

IPAllocationPool has relation to IPAvailabilityRange which is setup to
load eagerly. Eager loading is implemented with left outer join which is
incompatible with with_lockmode('update') on postgresql.
The fix redefines eager loading with options(joinedload) making it use
inner join.

fixes bug 1215350

Change-Id: I148d37f2a1c2a340327d36c240eb8173aee9219a

11 years agoDeal with 501 errors from NVP correctly
armando-migliaccio [Thu, 22 Aug 2013 20:12:15 +0000 (13:12 -0700)]
Deal with 501 errors from NVP correctly

This is done by adding the error code to the exception
handlers dictionary as done for other error codes.

Fixes bug #1215583

Change-Id: Ic876c6bccaf94cae626dfc908c4a34dfbcead406

11 years agoEnable GRE and VXLAN with the same ID
Francois Eleouet [Wed, 7 Aug 2013 09:19:46 +0000 (11:19 +0200)]
Enable GRE and VXLAN with the same ID

Current packet processing in br-tun is based on tun-id,
as a consequence, two networks using different tunnel
types but sharing the same tun-id would not be properly isolated.

To ensure proper isolation within a single bridge, NORMAL action
can't be used any more as it floods unknown unicasts on all
bridges ports. It is replaced by a learn action that dynamically
sets-up flows when packets are recieved from tunnel ports. As mac
address are learnt in explicit flows (in table 20), we can use a
default action in that table to flood unknown unicasts to the
right set of ports, like broadcasts and multicasts packets.

See https://wiki.openstack.org/wiki/Ovs-flow-logic for a more
detailled explanation of the flow logic

Another alternative could have been to use distinct bridges for
each tunnel type (whithout modifying the current flow logic),
but previous alternative may be preferable as it paves the way
for new tunneling optimisations (like RPC based mac learning and
partial-mesh flooding proposed in bp/l2-population)

Change-Id: I1dfe74f96680c2c6fe4d8d4aac4821c6b020c005
Closes-Bug: #1196963

11 years agoMerge "Disallow non-admin to specify binding:profile"
Jenkins [Thu, 22 Aug 2013 12:14:42 +0000 (12:14 +0000)]
Merge "Disallow non-admin to specify binding:profile"

11 years agoAdd recent neutron extentions and IB support
Irena Berezovsky [Sun, 11 Aug 2013 06:19:03 +0000 (09:19 +0300)]
Add recent neutron extentions and IB support

Additions to Mellanox Plugin:
Add ML2 compatibility support.
Enable Infiniband Network Type.
Keep the compatibility to Linux Bridge Plugin to allow Network node deployment via Linux Bridge L2 Agent.
Add support for Host Port Binding and L3/DHCP Agent Scheduler.

Implements: blueprint mlnx-plugin-improvments

Change-Id: Ieca518bbd07a39258cd14ceeecd3f9d3e2b6f219

11 years agoMerge "Adding VPC support to the Cisco plugin"
Jenkins [Thu, 22 Aug 2013 10:42:52 +0000 (10:42 +0000)]
Merge "Adding VPC support to the Cisco plugin"

11 years agoMerge "Remove calls to policy.check and policy.enforce from plugin code"
Jenkins [Thu, 22 Aug 2013 10:42:43 +0000 (10:42 +0000)]
Merge "Remove calls to policy.check and policy.enforce from plugin code"

11 years agoMerge "Fix auth_url in metadata_agent.ini"
Jenkins [Thu, 22 Aug 2013 10:34:24 +0000 (10:34 +0000)]
Merge "Fix auth_url in metadata_agent.ini"

11 years agoMerge "Fix typos and code style check"
Jenkins [Thu, 22 Aug 2013 06:50:35 +0000 (06:50 +0000)]
Merge "Fix typos and code style check"

11 years agoMerge "Syslog support for neutron metadata proxy"
Jenkins [Thu, 22 Aug 2013 06:34:35 +0000 (06:34 +0000)]
Merge "Syslog support for neutron metadata proxy"

11 years agoMerge "Use subnet id instead of wrong built-in id()"
Jenkins [Thu, 22 Aug 2013 05:21:22 +0000 (05:21 +0000)]
Merge "Use subnet id instead of wrong built-in id()"

11 years agoAdd metadata_proxy_socket into configuration files
Yong Sheng Gong [Thu, 22 Aug 2013 04:14:26 +0000 (12:14 +0800)]
Add metadata_proxy_socket into configuration files

Change-Id: I76856c2f804be92fa8cc667b4653d2e5e58e422a
Fixes: Bug #1215261
11 years agoDisallow non-admin to specify binding:profile
Akihiro MOTOKI [Thu, 22 Aug 2013 02:34:43 +0000 (11:34 +0900)]
Disallow non-admin to specify binding:profile

Change-Id: Iefa4b251f3b0a373fb9b2b7d576e14d58afece59
Fixes-Bug: #1214873

11 years agoMerge "make neutron-ns-metadata-proxy configurable"
Jenkins [Thu, 22 Aug 2013 02:31:59 +0000 (02:31 +0000)]
Merge "make neutron-ns-metadata-proxy configurable"

11 years agoFix 500 error on invalid security-group-rule creation for NVP
armando-migliaccio [Tue, 20 Aug 2013 23:51:29 +0000 (16:51 -0700)]
Fix 500 error on invalid security-group-rule creation for NVP

Validate that, when creating rules specifying a protocol different
from TCP, UDP, ICMP and ICMPv6, no port (range) is specified because
NVP does not like it.

The extra validation is specific to the NVP plugin because other
plugins may choose a different failure mode. For example, the ovs
plugin does not complain at all, but it just ignores the port range
if the protocol is not a port-oriented one.

Fixes bug #1213293

Change-Id: I46e9032b5cf7f7d88b9d05c3bf020784b04217d9

11 years agoMerge "Add missing ForeignKeyConstraint to Cisco providernet migration"
Jenkins [Wed, 21 Aug 2013 18:02:38 +0000 (18:02 +0000)]
Merge "Add missing ForeignKeyConstraint to Cisco providernet migration"