]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoFix error code for deletion of router which is in use by vpnservice
Nachi Ueno [Wed, 11 Sep 2013 23:24:13 +0000 (16:24 -0700)]
Fix error code for deletion of router which is in use by vpnservice

In this commit, we check router is in use by a vpnservice or not when
we delete router.

Fixes bug 1224174

Change-Id: I55a4b9b93715fbb36816c69729d88eb494bcf15e

11 years agoMerge "Support for NVP advanced service router"
Jenkins [Wed, 11 Sep 2013 17:52:32 +0000 (17:52 +0000)]
Merge "Support for NVP advanced service router"

11 years agoMerge "Ensure pid file is removed when metadata ns daemon receives SIGTERM"
Jenkins [Wed, 11 Sep 2013 17:45:19 +0000 (17:45 +0000)]
Merge "Ensure pid file is removed when metadata ns daemon receives SIGTERM"

11 years agoAdds support for L3 routing/NAT as a service plugin
Bob Melander [Wed, 3 Apr 2013 19:22:30 +0000 (21:22 +0200)]
Adds support for L3 routing/NAT as a service plugin

- Adds L3 routing/NAT service plugin
- Removes L3 routing/NAT from ML2 plugin
- Moves "router:external" attribute to new extension "External-net"
- Introduces separate RPC topic for L3 callbacks from L3 agent

Implements: blueprint quantum-l3-routing-plugin

Change-Id: Id9af10c2910f9a1730b163203a68d101ffc3b282

11 years agoSupport for NVP advanced service router
Kaiwei Fan [Fri, 23 Aug 2013 06:25:52 +0000 (23:25 -0700)]
Support for NVP advanced service router

When creating an LR:
    - deploy an Edge asynchronously
    - create a L2 switch for connecting LR and Edge
    - attach a router port to the L2 switch.
    - assign ip address 169.254.2.1/28 and nexthop 169.254.2.3 to LR
When set external gateway:
    - configure Edge interface and default gateway
    - Add static routes to Edge for all logic networks attached to LR via nexthop 169.254.2.1
    - configure SNAT rules for all logic networks attached to LR
When add router interface:
    - Add static route/SNAT rule for the network attached to LR
When associate floating IP address:
    - configure DNAT rule for the floating ip and the port

Tests being done:
    - Verified Edge is deployed asynchronously and LR is attached to the internal created L2 switch
    - Manually attach Edge's vNic to the L2 switch and Edge is able to ping 169.254.2.1
    - Verified router-delete deletes Edge asynchronously and remove the internal L2 switch
    - Verified SNAT/DNAT/static-routes rules are configured on Edge in correct order
    - Verified external vnic ip address/netmask and default gateway is configured

Implements: blueprint nvp-service-router
Change-Id: If9eff53df4d65cf4e318dedbfaafc742f6c6ab7f

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 11 Sep 2013 07:38:53 +0000 (07:38 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Register an extend_dict function for ext_gw_mode extension"
Jenkins [Wed, 11 Sep 2013 07:16:50 +0000 (07:16 +0000)]
Merge "Register an extend_dict function for ext_gw_mode extension"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 11 Sep 2013 06:09:42 +0000 (06:09 +0000)]
Imported Translations from Transifex

Change-Id: I8de01b47a78ae301d9760ee8ab0e596e967e333f

11 years agoRegister an extend_dict function for ext_gw_mode extension
Salvatore Orlando [Tue, 10 Sep 2013 22:38:16 +0000 (15:38 -0700)]
Register an extend_dict function for ext_gw_mode extension

Bug 1223585wq

Use dict extension methods instead of overriding make_router_dict in
order to make this extension consistent with all the others.

Change-Id: I94fa7e70e5a869963ec4dfa9de85c8d922976843

11 years agoAdds help text to brocade configuration options
Justin Hammond [Tue, 3 Sep 2013 20:57:52 +0000 (15:57 -0500)]
Adds help text to brocade configuration options

Help text was added to the configuration options defined in the brocade neutron
plugin. This help text should assist users of the brocade plugin. The OSTYPE
configuration option was not used in the plugin and was labeled as such so a
user of the plugin would not worry about the meaning of it.

The example etc file /etc/neutron/plugins/brocade/brocade.ini has been updated
to share the same help values where applicable.

Fixes-Bug: #1157511

Change-Id: Ie068396e77902037a7a0b5334d4dfb0dcdd3575e

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 10 Sep 2013 16:16:18 +0000 (16:16 +0000)]
Merge "Imported Translations from Transifex"

11 years agoadd missing comma to supported alias string list
Mark McClain [Mon, 9 Sep 2013 18:04:50 +0000 (14:04 -0400)]
add missing comma to supported alias string list

Fixes bug: 1222949

Change-Id: Iac7f3b7605149e706e2ea8a30700dccd09f3c57e

11 years agoEnsure pid file is removed when metadata ns daemon receives SIGTERM
Darragh O'Reilly [Tue, 10 Sep 2013 09:06:28 +0000 (09:06 +0000)]
Ensure pid file is removed when metadata ns daemon receives SIGTERM

These files from the metadata namespace proxy are not being removed
because delete_pid() is registered with atexit. This means it only runs
when a process exits normally and won't run when a process receives a
signal.

This patch registers a signal handler for SIGTERM that calls exit()
to make the process exit normally so delete_pid() gets called.

Fixes bug: 1223250

Change-Id: I6309802e2109359560ccc084559ec8e4d310cce2

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 10 Sep 2013 06:09:56 +0000 (06:09 +0000)]
Imported Translations from Transifex

Change-Id: Ib94bfe915a60c9c1a1d2375b9a15c666f065d865

11 years agoAvoid KeyError 'distributed' exception when using NVP <3.x
armando-migliaccio [Mon, 9 Sep 2013 21:54:32 +0000 (14:54 -0700)]
Avoid KeyError 'distributed' exception when using NVP <3.x

This patch fixes an issue found when creating routers with
NVP plugin and NVP platform 2.2

Fixes bug 1220931

Change-Id: Ia7b358b59e48a723c07efec015bb650accaa3322

11 years agoMerge "Make neutron.common.log.log print module path"
Jenkins [Mon, 9 Sep 2013 16:33:45 +0000 (16:33 +0000)]
Merge "Make neutron.common.log.log print module path"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 9 Sep 2013 15:31:16 +0000 (15:31 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Enhance unittest for hyperv_neutron_agent"
Jenkins [Mon, 9 Sep 2013 15:24:41 +0000 (15:24 +0000)]
Merge "Enhance unittest for hyperv_neutron_agent"

11 years agoMerge "Fix message i18n error"
Jenkins [Mon, 9 Sep 2013 15:03:30 +0000 (15:03 +0000)]
Merge "Fix message i18n error"

11 years agoMerge "LBaaS: Fix healthmonitor disassociation for non-admin"
Jenkins [Mon, 9 Sep 2013 12:46:04 +0000 (12:46 +0000)]
Merge "LBaaS: Fix healthmonitor disassociation for non-admin"

11 years agoMerge "Move declaration of int_br_device_count earlier"
Jenkins [Mon, 9 Sep 2013 09:03:01 +0000 (09:03 +0000)]
Merge "Move declaration of int_br_device_count earlier"

11 years agoLBaaS: Fix healthmonitor disassociation for non-admin
Eugene Nikanorov [Wed, 4 Sep 2013 18:00:40 +0000 (22:00 +0400)]
LBaaS: Fix healthmonitor disassociation for non-admin

Due to specifics of policy engine, checked object should have
tenant_id to be checked by rule admin_or_owner.
In 'disassociate' operation neutron API layer works with
PoolHealthMonitorAssociation which doesn't have tenant_id field.
Need to add it to resulting dict returned by get_pool_health_monitor.

Change-Id: I6c58558b09ff34dedd7da30866275de44d3ba993
Closes-bug: 1220668

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 9 Sep 2013 06:10:05 +0000 (06:10 +0000)]
Imported Translations from Transifex

Change-Id: I3f069fcb0ff5645581152ca33d12ed802d0779e5

11 years agoFix message i18n error
ZhiQiang Fan [Tue, 27 Aug 2013 00:02:04 +0000 (08:02 +0800)]
Fix message i18n error

Partial-Bug: #1217100

Using tools/check_i18n.py to scan source directory, and fix most of
the errors.

- Message internationalization
- First letter must be capital
- Using comma instead of percent in LOG.xxx

Note: all extension's description are not touched in this patch,
can be fixed after discussing.
Note: all nicira/check_nvp_config.py print messages are not fixed.

Change-Id: I79ef06fd42f6780beb5019c592662536c2a51864

11 years agoEnhance unittest for hyperv_neutron_agent
Hui HX Xiang [Mon, 19 Aug 2013 15:13:41 +0000 (08:13 -0700)]
Enhance unittest for hyperv_neutron_agent

Change-Id: Idc726ba668eba56a64dc498b49ec0e5e397590b5

11 years agoMerge "Enclose command args in with_venv.sh"
Jenkins [Sat, 7 Sep 2013 16:58:56 +0000 (16:58 +0000)]
Merge "Enclose command args in with_venv.sh"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sat, 7 Sep 2013 16:58:03 +0000 (16:58 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Fix IF checks on spawned green thread instance"
Jenkins [Sat, 7 Sep 2013 16:57:54 +0000 (16:57 +0000)]
Merge "Fix IF checks on spawned green thread instance"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 7 Sep 2013 06:10:31 +0000 (06:10 +0000)]
Imported Translations from Transifex

Change-Id: I4602704b4a4f1be5a49f1431eebd58072dfb7704

11 years agoMerge "Mock midonetclient in test_midonet_lib"
Jenkins [Fri, 6 Sep 2013 23:37:45 +0000 (23:37 +0000)]
Merge "Mock midonetclient in test_midonet_lib"

11 years agoFix IF checks on spawned green thread instance
Kaiwei Fan [Thu, 5 Sep 2013 20:57:13 +0000 (13:57 -0700)]
Fix IF checks on spawned green thread instance

Initially the symptom looks like race condition between two threads when
stopping the task manager. After further analysis/troubleshooting, it
turns out that two threads are spawned if a task manager is stopped and
started again, causing unexpected errors.

The IF check on the spawned thread sometimes return True sometime return False
if not compared against None explicitly. This makes start() method
think no thread has been started or stop() method think no thread is started.
Change the check to compare against None.

Also fixed a problem in unit-test where a thread may never terminated when
a stop call is invoked during db access.

Closes-Bug: 1221486
Change-Id: I0d67bfe8fef7a390f0d6bc0f5a42835f86a9fb27

11 years agoPrevents 400 NVP errors caused by a None display_name
armando-migliaccio [Fri, 6 Sep 2013 19:57:48 +0000 (12:57 -0700)]
Prevents 400 NVP errors caused by a None display_name

The API forbids a resource name to be None, but the
Model does not. Such errors may  be induced by
programming directly against the plugin interface. With
this fix we avoid raising 400 faults which may be introduced
by involuntary programming errors.

Fixes bug 1221896

Change-Id: Ic1201c5af5691f2bed38753453f73c229858b10f

11 years agoMake neutron.common.log.log print module path
Akihiro MOTOKI [Fri, 6 Sep 2013 17:10:57 +0000 (02:10 +0900)]
Make neutron.common.log.log print module path

Closes-Bug: #1221663

neutron.common.log.log is useful for logging arguments of a method.
It outputs class name and method name, but module path is not output.
A module path is useful to search the log message.

Change-Id: Ic2903da750cc13980d5cdee153bb079f7d4ee122

11 years agoMerge "Replace assertEquals with assertEqual"
Jenkins [Fri, 6 Sep 2013 14:49:52 +0000 (14:49 +0000)]
Merge "Replace assertEquals with assertEqual"

11 years agoLoad ML2 mech drivers as listed in ml2_conf.ini
Rich Curran [Fri, 6 Sep 2013 12:45:18 +0000 (08:45 -0400)]
Load ML2 mech drivers as listed in ml2_conf.ini

stevedore requires an additional parameter to be used (name_order=True) to
sort the loaded extensions to match the order used in the parameter "names".

bug 1221490

Change-Id: I614716c45d91cdf152650fba5ec8ced1e9c5aad4

11 years agoMock midonetclient in test_midonet_lib
Rossella Sblendido [Fri, 6 Sep 2013 10:42:31 +0000 (10:42 +0000)]
Mock midonetclient in test_midonet_lib

Change-Id: Idb4de82c193b2f2589131b06bad04bc858499a21
Closes-bug: #1221674

11 years agoReplace assertEquals with assertEqual
Zhongyue Luo [Fri, 6 Sep 2013 07:27:20 +0000 (15:27 +0800)]
Replace assertEquals with assertEqual

The method assertEquals has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases

Also in Python 3, a deprecated warning is raised when using assertEquals
therefore we should use assertEqual instead.

Fixes bug #1221601

Change-Id: Id502cfbc210c6c3fe0a256d5350e159ffa220141

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 6 Sep 2013 06:09:44 +0000 (06:09 +0000)]
Imported Translations from Transifex

Change-Id: I874308f83a54defeb77336acc1c0318172db1bb6

11 years agoMerge "vArmour gateway agent and FWaaS driver"
Jenkins [Fri, 6 Sep 2013 00:34:03 +0000 (00:34 +0000)]
Merge "vArmour gateway agent and FWaaS driver"

11 years agoMerge "Allow default network and policy profiles"
Jenkins [Thu, 5 Sep 2013 22:26:49 +0000 (22:26 +0000)]
Merge "Allow default network and policy profiles"

11 years agoMerge "Install metering_agent.ini and vpn_agent.ini"
Jenkins [Thu, 5 Sep 2013 22:18:37 +0000 (22:18 +0000)]
Merge "Install metering_agent.ini and vpn_agent.ini"

11 years agoMerge "LBaaS: make haproxy stats parsing more safe"
Jenkins [Thu, 5 Sep 2013 22:12:48 +0000 (22:12 +0000)]
Merge "LBaaS: make haproxy stats parsing more safe"

11 years agoInstall metering_agent.ini and vpn_agent.ini
Sascha Peilicke [Thu, 5 Sep 2013 08:30:44 +0000 (10:30 +0200)]
Install metering_agent.ini and vpn_agent.ini

Fixes Bug: 1221451
Change-Id: I83c4e4e0cfd6605930acfcc4f69ea9ece35abc24

11 years agoMerge "fix conversion type missing"
Jenkins [Thu, 5 Sep 2013 20:30:23 +0000 (20:30 +0000)]
Merge "fix conversion type missing"

11 years agoMerge "Fix NVP plugin to send notifications for gateway-less subnets"
Jenkins [Thu, 5 Sep 2013 20:25:05 +0000 (20:25 +0000)]
Merge "Fix NVP plugin to send notifications for gateway-less subnets"

11 years agoAllow default network and policy profiles
Abhishek Raut [Sat, 31 Aug 2013 00:39:26 +0000 (17:39 -0700)]
Allow default network and policy profiles

Allow for default network/policy profile to be used if
no network/policy profile is specified during network/port creation
in the Cisco N1KV plugin.

Change-Id: I6120abb5abb9a869eb7310453cf27dd8f72bfd1d
Closes-Bug: #1218588

11 years agofix conversion type missing
Kun Huang [Thu, 5 Sep 2013 06:20:23 +0000 (14:20 +0800)]
fix conversion type missing

Conversion type is missing in some places which would cause some
unexcepted error. By using 'grep -rn "%(\w\+)\W"', we could find
all cases of '%(variable_a)' and fix them.

Change-Id: I05cbaac73976c70be8428bf5a2d0017ea7059cb3
Closes-Bug: #1221036

11 years agoMerge "Add sub-type field to VXLAN network profiles for Cisco N1KV plugin"
Jenkins [Thu, 5 Sep 2013 16:13:17 +0000 (16:13 +0000)]
Merge "Add sub-type field to VXLAN network profiles for Cisco N1KV plugin"

11 years agoMerge "Implement Allowed Address Pairs"
Jenkins [Thu, 5 Sep 2013 16:13:07 +0000 (16:13 +0000)]
Merge "Implement Allowed Address Pairs"

11 years agoMerge "Use admin context to retrieve metadata ports in NVP plugin"
Jenkins [Thu, 5 Sep 2013 15:31:20 +0000 (15:31 +0000)]
Merge "Use admin context to retrieve metadata ports in NVP plugin"

11 years agoAdd sub-type field to VXLAN network profiles for Cisco N1KV plugin
Abhishek Raut [Tue, 20 Aug 2013 04:20:11 +0000 (21:20 -0700)]
Add sub-type field to VXLAN network profiles for Cisco N1KV plugin

Rename VXLAN type of network profiles to Overlay network profiles.
Add a new sub type column to Overlay network profiles. Support
enhanced VXLAN and native VXLAN as Overlay sub types. Allow plugin to
be flexible to support newer sub types.

Change-Id: I3899b01f316902d1139e47b153a9db7ecb3ff982
Implements: blueprint cisco-plugin-n1k-enh-vxlan-support

11 years agoMove declaration of int_br_device_count earlier
Derek Higgins [Wed, 4 Sep 2013 22:05:08 +0000 (23:05 +0100)]
Move declaration of int_br_device_count earlier

_report_state is being called by setup_rpc so int_br_device_count needs
to be initialized earlier. To avoid
AttributeError: object has no attribute 'int_br_device_count'

This wasn't caught by unit tests for 3 separate reason
o The reference to self.int_br_device_count is wrapped in
  except Exception: log / pass
- This reference has been moved outside of the try/except

o Unit tests set report_interval to 0 so the heartbeat wasn't called
  during unit tests.
- now removed

o The function passed into FixedIntervalLoopingCall isn't started
  anyways so wasn't calling self._report_state
- replaced FixedIntervalLoopingCall with a mock that calls the
  function once.

Fixes bug #1221054

Change-Id: I572af4ee017c1f7f016c8f9981ca54d1301442d1

11 years agoMerge "Implement MidoNet Neutron plugin for Havana"
Jenkins [Thu, 5 Sep 2013 12:45:57 +0000 (12:45 +0000)]
Merge "Implement MidoNet Neutron plugin for Havana"

11 years agoMerge "Iptables metering driver"
Jenkins [Thu, 5 Sep 2013 12:07:09 +0000 (12:07 +0000)]
Merge "Iptables metering driver"

11 years agoMerge "Add method to get iptables traffic counters"
Jenkins [Thu, 5 Sep 2013 12:07:01 +0000 (12:07 +0000)]
Merge "Add method to get iptables traffic counters"

11 years agoMerge "Allow None for binding:profile attribute"
Jenkins [Thu, 5 Sep 2013 12:06:32 +0000 (12:06 +0000)]
Merge "Allow None for binding:profile attribute"

11 years agoMerge "Ensure unit tests do not let looping calls roam freely"
Jenkins [Thu, 5 Sep 2013 10:59:40 +0000 (10:59 +0000)]
Merge "Ensure unit tests do not let looping calls roam freely"

11 years agoImplement Allowed Address Pairs
Aaron Rosen [Fri, 16 Aug 2013 17:56:21 +0000 (10:56 -0700)]
Implement Allowed Address Pairs

The following patch adds the concept of allowed address pairs.
This allows one to add additional ip/mac address pairs on a port to
allow traffic that matches those specified values. This is useful in order
to leverage dataplane failover mechanisms like vrrp. This patch adds support
for the NVP plugin, the OVS plugin, and Ml2.

DocImpact

implements blueprint: allowed-address-pairs

Change-Id: Ie73b3886c5be8e1fc4ade86a0cfb854267f345ac

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 5 Sep 2013 10:13:04 +0000 (10:13 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "VCNS driver implementation"
Jenkins [Thu, 5 Sep 2013 09:58:01 +0000 (09:58 +0000)]
Merge "VCNS driver implementation"

11 years agoMerge "ML2 Mechanism Driver for Cisco Nexus"
Jenkins [Thu, 5 Sep 2013 07:47:06 +0000 (07:47 +0000)]
Merge "ML2 Mechanism Driver for Cisco Nexus"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 5 Sep 2013 06:14:24 +0000 (06:14 +0000)]
Imported Translations from Transifex

Change-Id: I6d5621e3af8df67133ab4689bd6df52c1a82cb75

11 years agoMerge "Add support for the multiprovider API to ML2"
Jenkins [Thu, 5 Sep 2013 06:01:30 +0000 (06:01 +0000)]
Merge "Add support for the multiprovider API to ML2"

11 years agovArmour gateway agent and FWaaS driver
garyduan [Sun, 25 Aug 2013 00:34:00 +0000 (17:34 -0700)]
vArmour gateway agent and FWaaS driver

This patch enables vArmour's routing and firewall services to be deployed in
openstack environment.
- as gateway for internal networks
- support SNAT and DNAT (floating IP)
- FWaaS services

Implements: blueprint varmour-fwaas-driver
Change-Id: I6ddfa3137ed7e2a3fcf16a764d1340a8eae9359a

11 years agoUse admin context to retrieve metadata ports in NVP plugin
armando-migliaccio [Thu, 5 Sep 2013 01:04:55 +0000 (18:04 -0700)]
Use admin context to retrieve metadata ports in NVP plugin

The port that connects the router and the metadata
network is created with admin context, so use the
elevated one.

Change-Id: Idd416fe0841f6aea80da3a3b66a80a451e0360fd
Closes-Bug: 1220877

11 years agoFix NVP plugin to send notifications for gateway-less subnets
armando-migliaccio [Wed, 4 Sep 2013 20:11:43 +0000 (13:11 -0700)]
Fix NVP plugin to send notifications for gateway-less subnets

It was noted that an update notification should be sent
regardless; this patch addresses that. Since there is
no longer the need to distinguish on whether to send
the RPC message or not, the operation has been factored
out to avoid code duplication.

Closes-Bug: 1220881

Change-Id: If553a84b7221f8c98d758654d317217a909c43dc

11 years agoEnsure unit tests do not let looping calls roam freely
Salvatore Orlando [Wed, 4 Sep 2013 19:22:23 +0000 (12:22 -0700)]
Ensure unit tests do not let looping calls roam freely

Bug 1220871

This patch does minimal changes in neutron.plugins.nicira.common.sync
providing unit tests with a reference to the looping call object, so
that they can control its lifecycle.
Also, it perform a bit of refactoring in test_l3_agent.py in the way
mocks are created and started.

Change-Id: I73a1eb8ecdb7c6d46ff12afba549dd27095b7202

11 years agoVCNS driver implementation
Kaiwei Fan [Tue, 20 Aug 2013 21:28:58 +0000 (14:28 -0700)]
VCNS driver implementation

Implement API/driver interface for configuring vShield Edge Appliance.

Currently implemented functions:
    - Deploy an Edge
    - Destroy an Edge
    - Configuring interfaces
    - Configuring SNAT/DNAT rules
    - Configuring default gateway and static routes
    - Query Edge status
    - Task-based asynchronous model
    - Allow old routes/nat config to be skipped if new updates are coming

Implements: blueprint vcns-driver
Change-Id: I881bde907f4c90de4c919d008b76b8c2a2d0e1fd

11 years agoEnclose command args in with_venv.sh
ZhiQiang Fan [Wed, 4 Sep 2013 22:14:18 +0000 (06:14 +0800)]
Enclose command args in with_venv.sh

Change-Id: I6d2ca2f8fca951fe2d90265da8728438dd7d7567
Closes-Bug: #1220937

11 years agoensure that Arista test destroys the database
Mark McClain [Wed, 4 Sep 2013 18:36:11 +0000 (14:36 -0400)]
ensure that Arista test destroys the database

Out of order test execution has revealed that the database was not
properly cleaned up after each test run.  This patch adds a call to
clear the database after each test.

Fixes bug: 1220784

Change-Id: I8a706887f89f21ede88177e441a3b562fd8f74dc

11 years agoML2 Mechanism Driver for Cisco Nexus
Rich Curran [Wed, 21 Aug 2013 21:43:12 +0000 (17:43 -0400)]
ML2 Mechanism Driver for Cisco Nexus

Port of the quantum/plugin/cisco/nexus plugin to run under the Modular
Layer 2 (ML2) infrastructure as defined in
https://blueprints.launchpad.net/quantum/+spec/ml2-mechanism-drivers

Implements blueprint ml2-md-cisco-nexus

Change-Id: Ifdd03bec554a08266de859387f1901858a3be4a1

11 years agoMerge "Add jump to float-snat chain after clearing snat chain"
Jenkins [Wed, 4 Sep 2013 17:34:12 +0000 (17:34 +0000)]
Merge "Add jump to float-snat chain after clearing snat chain"

11 years agoMerge "Reference driver implementation (IPsec) for VPNaaS"
Jenkins [Wed, 4 Sep 2013 17:33:31 +0000 (17:33 +0000)]
Merge "Reference driver implementation (IPsec) for VPNaaS"

11 years agoMerge "Embrane Neutron Plugin"
Jenkins [Wed, 4 Sep 2013 17:33:22 +0000 (17:33 +0000)]
Merge "Embrane Neutron Plugin"

11 years agoMerge "OpenFlow distributed router support in NEC plugin"
Jenkins [Wed, 4 Sep 2013 17:33:11 +0000 (17:33 +0000)]
Merge "OpenFlow distributed router support in NEC plugin"

11 years agoMerge "Fixes formatting exception from logging in BigSwitch plugin"
Jenkins [Wed, 4 Sep 2013 16:54:35 +0000 (16:54 +0000)]
Merge "Fixes formatting exception from logging in BigSwitch plugin"

11 years agoMerge "LBaaS: add status of pool-monitor association to the pool return dict"
Jenkins [Wed, 4 Sep 2013 16:52:03 +0000 (16:52 +0000)]
Merge "LBaaS: add status of pool-monitor association to the pool return dict"

11 years agoAllow None for binding:profile attribute
Akihiro MOTOKI [Tue, 3 Sep 2013 12:57:53 +0000 (21:57 +0900)]
Allow None for binding:profile attribute

We need to pass None in binding:profile to allow an administrator
to clear binding:profile attribute.

Closes-Bug: #1220011

Adds dedicated unit tests to the plugins which uses binding:profile
attribute (Mellanox and NEC plugins at now).

This commit also adds common unit tests for binding:profile to
the common PortBindingTestCase class.
- create_port with binding:profile whose value is None or {}
- update_port with binding:profile whose value is None or {}
- Reject binding:profile from non-admin user

Note that _make_port() in BigSwitch plugin test is updated
to allow passing arg_list() from the base test class.

Fix a bug in NEC plugin that 500 is returned when putting
binding:profile None to a port whose binding:profile is
already None (Closes-Bug: #1220720)

Change-Id: I146afe961cd445a023adc7233588d8034fdb8437

11 years agoMerge "Add Neutron l3 metering agent"
Jenkins [Wed, 4 Sep 2013 15:47:55 +0000 (15:47 +0000)]
Merge "Add Neutron l3 metering agent"

11 years agoAdd support for the multiprovider API to ML2
Kyle Mestery [Fri, 23 Aug 2013 09:03:49 +0000 (09:03 +0000)]
Add support for the multiprovider API to ML2

This implements support for creating provider networks with
multiple different segments with the ML2 plugin.

Implements: blueprint ml2-multi-segment-api

Change-Id: Id6fc22841fddabfbe685de9605d4a4682ee1102d

11 years agoMerge "Introduce periodic state synchronization with backend"
Jenkins [Wed, 4 Sep 2013 14:41:16 +0000 (14:41 +0000)]
Merge "Introduce periodic state synchronization with backend"

11 years agoMerge "Adding more unit tests for the FWaaS agent"
Jenkins [Wed, 4 Sep 2013 14:35:02 +0000 (14:35 +0000)]
Merge "Adding more unit tests for the FWaaS agent"

11 years agoLBaaS: make haproxy stats parsing more safe
Oleg Bondarev [Wed, 4 Sep 2013 13:48:50 +0000 (17:48 +0400)]
LBaaS: make haproxy stats parsing more safe

Change-Id: Ic21b310608bb98be29ea50ab7c56ca859a9ed5c0
Closes-Bug: #1220692

11 years agoLBaaS: add status of pool-monitor association to the pool return dict
Oleg Bondarev [Mon, 2 Sep 2013 09:44:51 +0000 (13:44 +0400)]
LBaaS: add status of pool-monitor association to the pool return dict

Closes-Bug: #1219692
Change-Id: Icc7ca4a48c43a8462860cdbc42626079bffadc26

11 years agoOpenFlow distributed router support in NEC plugin
Akihiro MOTOKI [Fri, 23 Aug 2013 06:22:04 +0000 (15:22 +0900)]
OpenFlow distributed router support in NEC plugin

Implements blueprint nec-distribute-router

Two types of neutron router will be supported: l3-agent and distributed.
A type can be specified through "provider" attribute of a router.
The naming of the attribute "provider" is intentional since I plan to
support the service provider framework for router in the future and
would like to make it easy to migrate.

distributed router in NEC OpenFLow controller now does not support NAT,
so l3-agent and distributed router coexists. To achieve it, l3-agent
scheudler logic is modified in NEC plugin to exclude distributed routers
from candidates of floating IP hosting routers.

To support the above feature, the following related changes are done:
- Adds a new driver to PFC driver which supports OpenFlow based router
  support in NEC OpenFlow products in PFlow v5.
- Update ofc_client to extract detail error message
  from OpenFlow controller

This commit also changes the following outside of NEC plugin:
- Makes L3 agent notifiers configurable.
  l3-agent router and OpenFlow distributed router can coexist.
  Notication to l3-agent should be done only when routers are
  hosted by l3-agent, so we need custom L3 agent notifiers
  to filter non l3-agent routers.
- Split test_agent_scheduler base class (in OVS plugin) into
  the base setup and testcases. By doing so we can implement
  custom testcases related to agent scheduler.

Change-Id: I538201742950a61b92fb05c49a9256bc96ae9014

11 years agoReference driver implementation (IPsec) for VPNaaS
Nachi Ueno [Wed, 5 Jun 2013 23:24:38 +0000 (16:24 -0700)]
Reference driver implementation (IPsec) for VPNaaS

Implements blueprint ipsec-vpn-reference

This patch implements reference driver implementation for VPNaaS.
The driver uses openswan to manage vpn connections.

Future work: Support ikepolicy and ipsec update
Support service type framework
Intelligent updating of resources

This commit adds jinja2 for requirements.txt for
generating cofig file.

Change-Id: I8c5ed800a71ca014dc7bdbb6a57c4f8d18fa82e0

11 years agoMerge "Verify MTU is valid for ipsec_site_connection"
Jenkins [Wed, 4 Sep 2013 05:18:39 +0000 (05:18 +0000)]
Merge "Verify MTU is valid for ipsec_site_connection"

11 years agoMerge "Implement ML2 port binding"
Jenkins [Wed, 4 Sep 2013 04:47:04 +0000 (04:47 +0000)]
Merge "Implement ML2 port binding"

11 years agoIntroduce periodic state synchronization with backend
Salvatore Orlando [Thu, 20 Jun 2013 22:20:45 +0000 (00:20 +0200)]
Introduce periodic state synchronization with backend

Blueprint nicira-plugin-get-improvements

With this patch GET operations on the Nicira plugin will not
be forwarded anymore to the NVP backend.
Resource operational status will be periodically retrieved from
the NVP backend using a DynamicLoopingCall.
The process has been designed with the aim of avoiding:
1) frequent queries to NVP for retrieving resource status
2) execution of large queries to NVP for retrieving the status
   of a consistent number of resources.
The process can be tuned using a set of configuration variables.
GET operations will now return a status which might differ
from the actual status of the resource. For retrieving status
in a punctual way, the field 'status' should be explicitly
specified in the GET request (only 'show' support has been
implemented in this patch)

This patchs also makes some changes to the fake nvp api client in
order to ensure each instance has a private set of dictionaries for
fake nvp entities.

Change-Id: Ia745b80d2826de32ba8d6883c0d6e0893047e123

11 years agoVerify MTU is valid for ipsec_site_connection
Paul Michali [Mon, 2 Sep 2013 11:02:12 +0000 (07:02 -0400)]
Verify MTU is valid for ipsec_site_connection

Since the check relies on the vpnservice subnet to determine whether
this is IPv4 ro IPv6, we must check in the plugin. Test is done at
create/update time and ensures that the MTU is equal to or greater
than the minimum allowed values, which are set to 68 for IPv4
minimum and 1280 for IPv6, respectively.

Refactored code to allow reuse of create and update test functions,
by allowing tests to override some settings, and to provide a dict
of changed items (for update).

bug 1219489

Change-Id: I3e62ef786d3a02c761903a15d546ee8758c0bf7f

11 years agoMerge "Refactoring for nicira plugin to support NVP DHCP/Metadata services"
Jenkins [Wed, 4 Sep 2013 01:43:24 +0000 (01:43 +0000)]
Merge "Refactoring for nicira plugin to support NVP DHCP/Metadata services"

11 years agoMerge "Default to not capturing log output in tests"
Jenkins [Wed, 4 Sep 2013 01:42:12 +0000 (01:42 +0000)]
Merge "Default to not capturing log output in tests"

11 years agoMerge "LBaaS integration with service type framework"
Jenkins [Wed, 4 Sep 2013 01:35:51 +0000 (01:35 +0000)]
Merge "LBaaS integration with service type framework"

11 years agoImplement ML2 port binding
Bob Kukura [Tue, 13 Aug 2013 01:58:36 +0000 (21:58 -0400)]
Implement ML2 port binding

The ml2 plugin uses mechanism drivers to determine which network
segment and what VIF driver to use for a port. Mechanism drivers
supporting the openvswitch, linuxbridge, and hyperv agents are
added. The binding:host attribute is set on ports belonging to the
dhcp and l3 agents so that they can be bound.

To use with devstack until it is updated, set
"Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge" in localrc.

The hyperv L2 agent does not currently implement the agents_db RPC,
and will therefore not work with its ml2 mechanism driver. This issue
will be tracked as a bug to be fixed in a separate merge.

implements blueprint: ml2-portbinding

Change-Id: Icb9c70d8b0d7fcb34b57adc760bb713b740e5dad

11 years agoRefactoring for nicira plugin to support NVP DHCP/Metadata services
armando-migliaccio [Wed, 14 Aug 2013 23:23:31 +0000 (16:23 -0700)]
Refactoring for nicira plugin to support NVP DHCP/Metadata services

This initial patch is aimed at decoupling core plugin services from
DHCP and metadata services. The abstraction being introduced is
needed so that the code can support both models where dhcp and
metadata services are provided by external RPC agents or solely by
the server-side plugin.

Supports blueprint nvp-dhcp-metadata-services

Change-Id: I396ee7bbcbd866e4e9d4a79887e844b4f5ec3c9e

11 years agoMerge "ML2 type and mech managers should use instance vars for drivers lists"
Jenkins [Tue, 3 Sep 2013 21:49:40 +0000 (21:49 +0000)]
Merge "ML2 type and mech managers should use instance vars for drivers lists"

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 ago Arista ML2 Mechanism driver
sukhdev [Mon, 15 Jul 2013 23:26:58 +0000 (16:26 -0700)]
 Arista ML2 Mechanism driver

This patch implements Arista's modular L2 mechanism driver to
automate the management of virtual networks along with physical networks
using Arista hardware devices (Spine and Leaf switches)

This driver uses ML2 Mechanism Driver-API to interface with Neutron ML2 Plugin.

implements: blueprint arista-ml2-mechanism-driver

Change-Id: I1c4ca36cf3d7af013b7b3353e7b7d89fe39f91bf

11 years agoMerge "ML2 Mechanism Driver for Tail-f Network Control System (NCS)"
Jenkins [Tue, 3 Sep 2013 20:34:03 +0000 (20:34 +0000)]
Merge "ML2 Mechanism Driver for Tail-f Network Control System (NCS)"

11 years agoML2 type and mech managers should use instance vars for drivers lists
Dane LeBlanc [Tue, 3 Sep 2013 17:34:42 +0000 (13:34 -0400)]
ML2 type and mech managers should use instance vars for drivers lists

Fixes bug 1220296

The ML2 plugin's type and mechanism managers currently maintain
dictionaries/lists of type drivers, mechanism drivers, and ordered mechanism
drivers in (static) class variables. Once a type/mechanism/ordered-mechanism
driver of any given type is added to this list, then no new drivers of that
type are allowed to be registered, and therefore no new configuration for
that driver type is accepted.

This static nature of the driver dictionaries/lists is causing ML2 mechanism
driver unit test cases to fail. For example, if a non-vendor-specific ML2
plugin test case configures a VLAN type driver with no VLAN range, and then
a vendor specific test case attempts to configure a VLAN type driver with
some test VLAN range, then the new VLAN configuration is ignored because of
the previously (staticly) registered VLAN driver.

The proposed fix is to convert these driver dictionaries/lists to instance
variables, and clear them upon each instantiation of an ML2 type manager
or ML2 mechanism manager.

Change-Id: I3b5209640de229899561e2a3ec7c6dafe9a05e64