]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoMerge "Fix typo in lbaas agent exception message"
Jenkins [Sat, 22 Mar 2014 03:50:26 +0000 (03:50 +0000)]
Merge "Fix typo in lbaas agent exception message"

10 years agoMerge "Added config value help text in ns metadata proxy"
Jenkins [Sat, 22 Mar 2014 02:30:02 +0000 (02:30 +0000)]
Merge "Added config value help text in ns metadata proxy"

10 years agoMerge "Fix duplicate name of NVP LBaaS objs not allowed on vShield Edge"
Jenkins [Sat, 22 Mar 2014 02:24:20 +0000 (02:24 +0000)]
Merge "Fix duplicate name of NVP LBaaS objs not allowed on vShield Edge"

10 years agoMerge "Add enable_security_group option"
Jenkins [Sat, 22 Mar 2014 02:15:52 +0000 (02:15 +0000)]
Merge "Add enable_security_group option"

10 years agoMerge "Avoid creating FixedIntervalLoopingCall in agent UT"
Jenkins [Sat, 22 Mar 2014 02:15:42 +0000 (02:15 +0000)]
Merge "Avoid creating FixedIntervalLoopingCall in agent UT"

10 years agoMerge "NSX: lower the severity of messages about VIF's on external networks"
Jenkins [Sat, 22 Mar 2014 02:15:31 +0000 (02:15 +0000)]
Merge "NSX: lower the severity of messages about VIF's on external networks"

10 years agoMerge "NEC plugin: Allow to add prefix to OFC REST URL"
Jenkins [Sat, 22 Mar 2014 02:09:12 +0000 (02:09 +0000)]
Merge "NEC plugin: Allow to add prefix to OFC REST URL"

10 years agoMerge "NEC plugin: Remove a colon from binding:profile key due to XML problem"
Jenkins [Sat, 22 Mar 2014 02:04:21 +0000 (02:04 +0000)]
Merge "NEC plugin: Remove a colon from binding:profile key due to XML problem"

10 years agoMerge "Log received pool.status"
Jenkins [Sat, 22 Mar 2014 02:04:00 +0000 (02:04 +0000)]
Merge "Log received pool.status"

10 years agoMerge "Use save_and_reraise_exception when reraise exception"
Jenkins [Sat, 22 Mar 2014 02:03:49 +0000 (02:03 +0000)]
Merge "Use save_and_reraise_exception when reraise exception"

10 years agoLog received pool.status
Aaron Rosen [Fri, 21 Mar 2014 04:13:48 +0000 (21:13 -0700)]
Log received pool.status

This patch adds a log statement so we can figure out what status the
lbaas-agent is passing in. This way we can figure out what to prevent.

Change-Id: I1a0f809140127ccb9596d83c97add03a853991a3
Closes-bug: #1295491

10 years agoNEC plugin: Allow to add prefix to OFC REST URL
Akihiro Motoki [Wed, 19 Mar 2014 16:36:13 +0000 (01:36 +0900)]
NEC plugin: Allow to add prefix to OFC REST URL

Closes-Bug: #1295802
Change-Id: Ieaa3bb7c601fad98506168de1f8ac191849c6569

10 years agoNEC plugin: Remove a colon from binding:profile key due to XML problem
Akihiro Motoki [Fri, 21 Mar 2014 19:17:14 +0000 (04:17 +0900)]
NEC plugin: Remove a colon from binding:profile key due to XML problem

In XML specification, if a tag name contains a colon, a part before
a colon is interpreted as namespace. If key names in binding:profile
dict contains a colon, Neutron XML serializer sends them as-is.
A colon in key names should be used only if XML namespace are used.
NEC plugin uses a colon in key names and it leads to failures to XML
deserialization. To avoid this problem, this commit removes a colon
and prefix n key names in port binding:profile so that client XML
deserializer decodes XML response successfully.

Change-Id: Ie32a2417bbce03bfc6e8f7907c0b4090fbc9e7b6
Closes-Bug: #1294166

10 years agoMerge "Don't set priority when calling mod_flow"
Jenkins [Fri, 21 Mar 2014 19:33:52 +0000 (19:33 +0000)]
Merge "Don't set priority when calling mod_flow"

10 years agoMerge "Add missing ondelete option to Cisco N1kv tables"
Jenkins [Fri, 21 Mar 2014 19:27:07 +0000 (19:27 +0000)]
Merge "Add missing ondelete option to Cisco N1kv tables"

10 years agoMerge "NSX: Make replication mode configurable"
Jenkins [Fri, 21 Mar 2014 18:52:20 +0000 (18:52 +0000)]
Merge "NSX: Make replication mode configurable"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 21 Mar 2014 16:34:50 +0000 (16:34 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Fixes Hyper-V agent security groups enable issue"
Jenkins [Fri, 21 Mar 2014 13:01:33 +0000 (13:01 +0000)]
Merge "Fixes Hyper-V agent security groups enable issue"

10 years agoMerge "cisco: Do not change supported_extension_aliases directly"
Jenkins [Fri, 21 Mar 2014 12:35:00 +0000 (12:35 +0000)]
Merge "cisco: Do not change supported_extension_aliases directly"

10 years agoUse save_and_reraise_exception when reraise exception
Akihiro Motoki [Wed, 12 Feb 2014 14:25:14 +0000 (23:25 +0900)]
Use save_and_reraise_exception when reraise exception

This fixes reraise in pluign codes.

Closes-Bug: #1279813
Change-Id: Iee174d94c0ce69eb01eb86eea1a903eceb7569d5

10 years agoDon't set priority when calling mod_flow
Kyle Mestery [Fri, 21 Mar 2014 09:41:31 +0000 (09:41 +0000)]
Don't set priority when calling mod_flow

This commit [1] changed the behavior of modifying flows to not allow priority
to be set on flow modification. The agent code which was calling mod_flow was
not updated to respect this behavior. The unit tests were also not updated in
this regard. I've corrected this behavior now, and added a negative UT case to
catch this in the future.

[1] https://review.openstack.org/#/c/58533/

Closes-Bug: #1295703

Change-Id: I20737637cc84567a5ec19efaad18e7f334007f18

10 years agoMerge "Get rid of additional db contention on fetching VIP"
Jenkins [Fri, 21 Mar 2014 09:29:15 +0000 (09:29 +0000)]
Merge "Get rid of additional db contention on fetching VIP"

10 years agoMerge "Delete duplicate internal devices in router namespace"
Jenkins [Fri, 21 Mar 2014 08:21:23 +0000 (08:21 +0000)]
Merge "Delete duplicate internal devices in router namespace"

10 years agoMerge "Fix usage of save_and_reraise_exception"
Jenkins [Fri, 21 Mar 2014 08:21:14 +0000 (08:21 +0000)]
Merge "Fix usage of save_and_reraise_exception"

10 years agoMerge "Sync excutils from oslo"
Jenkins [Fri, 21 Mar 2014 08:19:14 +0000 (08:19 +0000)]
Merge "Sync excutils from oslo"

10 years agoMerge "Cisco VPN device driver post-merge cleanup"
Jenkins [Fri, 21 Mar 2014 08:16:16 +0000 (08:16 +0000)]
Merge "Cisco VPN device driver post-merge cleanup"

10 years agoAvoid creating FixedIntervalLoopingCall in agent UT
Eugene Nikanorov [Tue, 11 Mar 2014 12:04:49 +0000 (16:04 +0400)]
Avoid creating FixedIntervalLoopingCall in agent UT

Set polling_interval to 0 to avoid creating LoopingCall
in loadbalancer agent tests, dhcp agent tests, linuxbridge agent tests

Change-Id: Ib6edbc11feba402a4c2f19b7d6833b49879ee626
Closes-Bug: #1288079

10 years agoMerge "Fixes the Hyper-V agent individual ports metrics"
Jenkins [Fri, 21 Mar 2014 07:03:31 +0000 (07:03 +0000)]
Merge "Fixes the Hyper-V agent individual ports metrics"

10 years agoMerge "Ignore PortNotFound exceptions on lockless delete"
Jenkins [Fri, 21 Mar 2014 06:30:29 +0000 (06:30 +0000)]
Merge "Ignore PortNotFound exceptions on lockless delete"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 21 Mar 2014 06:29:55 +0000 (06:29 +0000)]
Imported Translations from Transifex

Change-Id: I4d6e714cdb477d6965ae03d9d4ab19ba526086c5

10 years agoMerge "BigSwitch ML2: Include bound_segment in port"
Jenkins [Fri, 21 Mar 2014 05:54:39 +0000 (05:54 +0000)]
Merge "BigSwitch ML2: Include bound_segment in port"

10 years agoMerge "add HEAD sentinel file that contains migration revision"
Jenkins [Fri, 21 Mar 2014 05:54:29 +0000 (05:54 +0000)]
Merge "add HEAD sentinel file that contains migration revision"

10 years agoMerge "Bugfix and refactoring for ovs_lib flow methods"
Jenkins [Fri, 21 Mar 2014 05:53:41 +0000 (05:53 +0000)]
Merge "Bugfix and refactoring for ovs_lib flow methods"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 21 Mar 2014 05:48:44 +0000 (05:48 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "LBaaS: small cleanup in agent device driver interface"
Jenkins [Fri, 21 Mar 2014 05:10:52 +0000 (05:10 +0000)]
Merge "LBaaS: small cleanup in agent device driver interface"

10 years agoMerge "Fix misleading error message about failed dhcp notifications"
Jenkins [Fri, 21 Mar 2014 05:10:41 +0000 (05:10 +0000)]
Merge "Fix misleading error message about failed dhcp notifications"

10 years agoMerge "ML2: Remove validate_port_binding() and unbind_port()"
Jenkins [Fri, 21 Mar 2014 05:02:48 +0000 (05:02 +0000)]
Merge "ML2: Remove validate_port_binding() and unbind_port()"

10 years agoMerge "Enable to select an RPC handling plugin under Metaplugin"
Jenkins [Fri, 21 Mar 2014 01:21:46 +0000 (01:21 +0000)]
Merge "Enable to select an RPC handling plugin under Metaplugin"

10 years agoMerge "Add update binding:profile with physical_network"
Jenkins [Fri, 21 Mar 2014 00:53:07 +0000 (00:53 +0000)]
Merge "Add update binding:profile with physical_network"

10 years agoMerge "tests/unit: clean up notification driver"
Jenkins [Fri, 21 Mar 2014 00:53:01 +0000 (00:53 +0000)]
Merge "tests/unit: clean up notification driver"

10 years agoAdd enable_security_group option
Nachi Ueno [Thu, 16 Jan 2014 18:54:26 +0000 (10:54 -0800)]
Add enable_security_group option

Using noop driver to disable security group is confusing.
In this commit, we introduce enable_security_group in server side.

DocImpact
UpgradeImpact

Implements bp: security-group-config-cleanup
Related-Bug: 1112912
Change-Id: Ice44a4e2a519c64e613eeb24372de46726473339

10 years agoMerge "BigSwitch: Sync workaround for port del deadlock"
Jenkins [Thu, 20 Mar 2014 21:52:10 +0000 (21:52 +0000)]
Merge "BigSwitch: Sync workaround for port del deadlock"

10 years agoMerge "NSX: Sync do not pass around model object"
Jenkins [Thu, 20 Mar 2014 20:11:15 +0000 (20:11 +0000)]
Merge "NSX: Sync do not pass around model object"

10 years agoGet rid of additional db contention on fetching VIP
Kevin Benton [Thu, 20 Mar 2014 07:24:50 +0000 (00:24 -0700)]
Get rid of additional db contention on fetching VIP

This fix gets rid of fetching related record from ports table
that could potentially be blocked by concurrent operation
This is to prevent it from updating the
vip table while a port SQL lock is in place, which
vip entries have a reference to.

Partial-Bug: 1283522
Change-Id: Ic64cc268ff4817a31971734a44671c744047231b

10 years agoMerge "BigSwitch: Use eventlet.sleep in watchdog"
Jenkins [Thu, 20 Mar 2014 15:47:37 +0000 (15:47 +0000)]
Merge "BigSwitch: Use eventlet.sleep in watchdog"

10 years agoMerge "Process ICMP type for iptables firewall"
Jenkins [Thu, 20 Mar 2014 15:46:17 +0000 (15:46 +0000)]
Merge "Process ICMP type for iptables firewall"

10 years agoMerge "Allow CIDRs with non-zero masked portions"
Jenkins [Thu, 20 Mar 2014 15:46:07 +0000 (15:46 +0000)]
Merge "Allow CIDRs with non-zero masked portions"

10 years agoMerge "ML2 BigSwitch: Don't modify parent context"
Jenkins [Thu, 20 Mar 2014 15:44:57 +0000 (15:44 +0000)]
Merge "ML2 BigSwitch: Don't modify parent context"

10 years agoMerge "BigSwitch: Widen range of HTTPExceptions caught"
Jenkins [Thu, 20 Mar 2014 15:30:24 +0000 (15:30 +0000)]
Merge "BigSwitch: Widen range of HTTPExceptions caught"

10 years agoFix typo in lbaas agent exception message
Eugene Nikanorov [Thu, 20 Mar 2014 14:43:18 +0000 (18:43 +0400)]
Fix typo in lbaas agent exception message

Change-Id: Iec2a5e02d40f73e4576ed853577a6a9f85e49e67
Closes-Bug: #1295187

10 years agoML2: Remove validate_port_binding() and unbind_port()
Robert Kukura [Mon, 10 Mar 2014 19:06:09 +0000 (15:06 -0400)]
ML2: Remove validate_port_binding() and unbind_port()

The API implemented by ML2 mechanism drivers included three methods
related to port binding that were called within DB transactions, but
that could potentially involve communication with controllers or
devices that should not be done within transactions. A subsequent
patch will move the calls to bind_port() outside of tranactions. This
patch eliminates the other two methods from the MechanismDriver API.

The validate_port_binding() method was previously called on the bound
mechanism driver to check whether an existing binding was still valid,
so that the port could be rebound if something changed. But since nova
has no way to handle changes to binding:vif_type or
binding:vif_details after a port is initially plugged, this turned out
not to be useful, so the method has been removed from the
MechanismDriver API. Now, once a port is successfully bound, the
binding remains until the port is deleted or any of it's
binding:host_id, binding:vnic_type, or binding:profile attribute
values are changed.

The unbind_port() method was previously called on the bound mechanism
driver as an existing binding was removed. This method was not used by
any existing mechanism drivers, and was redundant with the
update_port_precommit() and update_port_postcommit() methods that are
called on all mechanism drivers when an existing binding is removed,
so this method has also been removed from the driver API.

Eliminating the unbind_port() call allows the binding details to be
made available via the PortContext in delete_port_postcommit() calls,
completing the resolution of bug 1276395.

Closes-bug: 1276395
Partial-bug: 1276391
Change-Id: I70fb65b478373c4f07f5273baa097fc50e5ba2ef

10 years agoMerge "NEC plugin: Honor Retry-After response from OFC"
Jenkins [Thu, 20 Mar 2014 13:33:05 +0000 (13:33 +0000)]
Merge "NEC plugin: Honor Retry-After response from OFC"

10 years agoMerge "Add a semaphore to some ML2 operations"
Jenkins [Thu, 20 Mar 2014 13:25:38 +0000 (13:25 +0000)]
Merge "Add a semaphore to some ML2 operations"

10 years agoMerge "NSX: Fix router-interface-delete returns 404 when router not in nsx"
Jenkins [Thu, 20 Mar 2014 10:22:43 +0000 (10:22 +0000)]
Merge "NSX: Fix router-interface-delete returns 404 when router not in nsx"

10 years agoMerge "return false or true according to binding result"
Jenkins [Thu, 20 Mar 2014 09:42:01 +0000 (09:42 +0000)]
Merge "return false or true according to binding result"

10 years agoMerge "Cisco plugin fails with ParseError no elem found"
Jenkins [Thu, 20 Mar 2014 09:41:48 +0000 (09:41 +0000)]
Merge "Cisco plugin fails with ParseError no elem found"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 20 Mar 2014 06:28:06 +0000 (06:28 +0000)]
Imported Translations from Transifex

Change-Id: I402019fd2f41d73427f2aeb50872b1448e62f31f

10 years agoFix duplicate name of NVP LBaaS objs not allowed on vShield Edge
berlin [Mon, 17 Feb 2014 03:04:08 +0000 (11:04 +0800)]
Fix duplicate name of NVP LBaaS objs not allowed on vShield Edge

Duplicate name of LBaaS objs such as pool/vip/app_profile is not
allowed on vShield Edge, so here a name convention is needed to ensure
name uniqueness on the edge side.
Closes-Bug: #1257225

Change-Id: I953610d0389a78aa01f378c2ff4931d8c74413ea

10 years agoMerge "Don't use root to list namespaces"
Jenkins [Thu, 20 Mar 2014 05:20:19 +0000 (05:20 +0000)]
Merge "Don't use root to list namespaces"

10 years agoMerge "Change report_interval from 4 to 30, agent_down_time from 9 to 75"
Jenkins [Thu, 20 Mar 2014 04:39:12 +0000 (04:39 +0000)]
Merge "Change report_interval from 4 to 30, agent_down_time from 9 to 75"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 20 Mar 2014 04:38:03 +0000 (04:38 +0000)]
Merge "Imported Translations from Transifex"

10 years agotests/unit: clean up notification driver
Isaku Yamahata [Tue, 25 Feb 2014 06:34:53 +0000 (15:34 +0900)]
tests/unit: clean up notification driver

Some tests doesn't cleanup notification driver. So some tests can
run against unintended notification driver depending on execution order

Change-Id: I7dbed47153be66684827b2693bbc995dddfb4c1b
Related-Bug: #1281481
Partial-Bug: #1284549

10 years agoMerge "Show neutron API request body with debug enabled"
Jenkins [Thu, 20 Mar 2014 02:34:39 +0000 (02:34 +0000)]
Merge "Show neutron API request body with debug enabled"

10 years agoAdd a semaphore to some ML2 operations
Salvatore Orlando [Thu, 13 Mar 2014 22:06:12 +0000 (15:06 -0700)]
Add a semaphore to some ML2 operations

This patch adds a semaphore for serializing the delete port API
calls and update_port_status calls to avoid simultaneous
attempts to acquire SQL update locks on the port table from
the same thread pool.

This semaphore has been introduced to avoid undesired eventlet
yields which trigger 'lock wait timeout' errors in the DB backend;
it should have a negligible impact on the overall performance.

Change-Id: I0ec947086e533945942ae93402943dec69b218ef
Partial-Bug: 1283522

10 years agoMerge "API layer documentation"
Jenkins [Wed, 19 Mar 2014 23:20:28 +0000 (23:20 +0000)]
Merge "API layer documentation"

10 years agoMerge "Add session persistence support for NVP advanced LBaaS"
Jenkins [Wed, 19 Mar 2014 22:29:42 +0000 (22:29 +0000)]
Merge "Add session persistence support for NVP advanced LBaaS"

10 years agoMerge "BigSwitch: Watchdog thread start after servers"
Jenkins [Wed, 19 Mar 2014 22:29:33 +0000 (22:29 +0000)]
Merge "BigSwitch: Watchdog thread start after servers"

10 years agoMerge "Ensure to count firewalls in target tenant"
Jenkins [Wed, 19 Mar 2014 17:53:54 +0000 (17:53 +0000)]
Merge "Ensure to count firewalls in target tenant"

10 years agoMerge "Mock agent RPC for FWaaS tests to delete DB objs"
Jenkins [Wed, 19 Mar 2014 17:53:44 +0000 (17:53 +0000)]
Merge "Mock agent RPC for FWaaS tests to delete DB objs"

10 years agoMerge "Remove individual cfg.CONF.resets from tests"
Jenkins [Wed, 19 Mar 2014 17:37:37 +0000 (17:37 +0000)]
Merge "Remove individual cfg.CONF.resets from tests"

10 years agoadd HEAD sentinel file that contains migration revision
Mark McClain [Fri, 7 Mar 2014 20:07:43 +0000 (15:07 -0500)]
add HEAD sentinel file that contains migration revision

This change wraps the command to generate a migration with code to
update a file called HEAD. The HEAD file will contain the revision ID
of the head of the migraton timeline. Additionally, check migrations has
been altered to verify the contents of this file against the timeline
head.

This file helps the OpenStack gate detect potential migration branches
without running alembic via git merge conflicts.

Closes-Bug:1288427
Change-Id: If382c57baea061753d3f4fcd6faec1a31fbfb7ed

10 years agoAdded config value help text in ns metadata proxy
Brandon Logan [Sun, 16 Mar 2014 03:32:13 +0000 (22:32 -0500)]
Added config value help text in ns metadata proxy

Change-Id: I9d59e902cf9ed89e29d93b29912c87f2bad73c7c
Closes-Bug: #1215270

10 years agoFix usage of save_and_reraise_exception
Oleg Bondarev [Wed, 19 Mar 2014 14:38:49 +0000 (18:38 +0400)]
Fix usage of save_and_reraise_exception

Set reraise=False for the cases where the purpose of exception
handler is to reraise proper type of exception

Change-Id: Id6595ba1e160b9033d519ded16e0fbd2f91ccb5d
Closes-Bug: #1288188

10 years agoCisco VPN device driver post-merge cleanup
Paul Michali [Wed, 12 Mar 2014 14:04:30 +0000 (14:04 +0000)]
Cisco VPN device driver post-merge cleanup

During review for I-3 there were some minor comments regarding log
level on message and asserts for mock calls.

In addition, some debug logging enhancements were made between the
service and device driver to better indicate the source of the
shared "vpnservice_updated" RPC.

Lastly, unit tests were updated, based on a newer Cisco CSR image,
which had REST API fixes and behavior changes.

Change-Id: I22277462270df0b2cd642ec576e8652c9df146b5
Closes-bug: 1288387

10 years agoFixes the Hyper-V agent individual ports metrics
Claudiu Belu [Thu, 6 Mar 2014 22:29:14 +0000 (14:29 -0800)]
Fixes the Hyper-V agent individual ports metrics

Replaces aggregated metric values with separated values for each port.

Co-Authored-By: Adrian Vladu <avladu@cloudbasesolutions.com>
Change-Id: Ie946dff984ef53f014c6c57f8d1d5bb9c6e7596d
Closes-Bug: #1289007

10 years agoMerge "Stop removing ip allocations on port delete"
Jenkins [Wed, 19 Mar 2014 09:52:56 +0000 (09:52 +0000)]
Merge "Stop removing ip allocations on port delete"

10 years agoSync excutils from oslo
Oleg Bondarev [Wed, 19 Mar 2014 08:32:47 +0000 (12:32 +0400)]
Sync excutils from oslo

In order to fix undesired error logs in Neutron (bug 1288188)
fixed save_and_reraise_exception() should be synced from oslo.
Oslo commit: 33a2cee6a690ecfdb2cecfe8f01b0b1dacb5bd17

Also sync gettextutils module as excutils depends on it
Latest commit in oslo: fd33d1eaa039913d8c82b94c511a3eab0c3d5789

Closes-Bug: #1294537
Related-Bug: #1288188
Change-Id: I62ab3e4e22aa000f3a8d1be26ef9e1cfb1714959

10 years agoBigSwitch ML2: Include bound_segment in port
Kevin Benton [Tue, 18 Mar 2014 20:11:27 +0000 (13:11 -0700)]
BigSwitch ML2: Include bound_segment in port

Includes bound segment in port create/update
requests to disambiguate when the parent network
has multiple segments.

Closes-Bug: #1294355
Change-Id: I59ef38aa5de46c1229384e0c4a9f0ee01c1bc678

10 years agoNEC plugin: Honor Retry-After response from OFC
Akihiro Motoki [Wed, 19 Mar 2014 08:08:37 +0000 (17:08 +0900)]
NEC plugin: Honor Retry-After response from OFC

A backend OpenFlow controller nec plugin talks to can return
503 response with retry-after header when it is busy.
It is better to honor retry-after header to avoid unnecessary
user-visible errors due to temporary busy condition.

Change-Id: I2ff1c3ac8402a2207bd955e9a9bb61e147950c5c
Closes-Bug: #1294527

10 years agoAdd update binding:profile with physical_network
Irena Berezovsky [Tue, 18 Mar 2014 14:35:35 +0000 (16:35 +0200)]
Add update binding:profile with physical_network

Add temporary solution in order to support multiple physical networks
by mlnx ML2 MechanismDriver.
Due to non merged patches in nova that should support propagating
physical_network retrieved from port binding:profile attribute
to VIF/Network object.
The code will be removed once relevant nova patches are merged.
The code is disabled by default and should be enabled via
ml2_conf_mlnx.ini config file.

Change-Id: I815f9e28774efd47bccd1c57481e6ba89075792b
Closes-bug: #1291209

10 years agoreturn false or true according to binding result
Yong Sheng Gong [Wed, 19 Mar 2014 06:38:35 +0000 (14:38 +0800)]
return false or true according to binding result

Change-Id: I23a47c6c7c9be989e65c144b2277c42eeaaade3f
Closes-Bug: 1294500

10 years agoMerge "Kill 'Skipping unknown group key: firewall_driver' log trace"
Jenkins [Wed, 19 Mar 2014 05:04:18 +0000 (05:04 +0000)]
Merge "Kill 'Skipping unknown group key: firewall_driver' log trace"

10 years agoEnable to select an RPC handling plugin under Metaplugin
Itsuro Oda [Tue, 17 Dec 2013 01:16:51 +0000 (10:16 +0900)]
Enable to select an RPC handling plugin under Metaplugin

Multiple plugins under metaplugin become 'q-plugin' topic
consumers and a request from an agent is handled by one of
them randomly. Fortunatly most of RPC callbacks are common
for plugins but a problem occurs if an RPC is not supported
by the received plugin.

This is one of risks when using metaplugin. Fundamental fix
of this problem (such as RPC delegation handling of metaplugin)
is difficult since each plugin needs to modify.
But when only one plugin has plugin specific RPCs and other
RPCs are independet of plugins, if the plugin can be selected
for RPC handling, the problem does not happen. Typical use
case of metaplugin such as combination of an agent-based
plugin and a controller-based plugin often applies to this
condition.

This patch adds 'rpc_flavor' configuration parameter to
select an RPC handling plugin. If 'rpc_flavor' is specified,
only the specified plugin becomes 'q-plugin' topic consumer.
If 'rpc_flavor' is not specified, the behavior is same as
previous one.

Change-Id: If133b054bba53829cebe63c1e0ebe6099eb1fd95
Closes-bug: #1267330
DocImpact

10 years agoEnsure to count firewalls in target tenant
Akihiro Motoki [Fri, 14 Mar 2014 22:57:34 +0000 (07:57 +0900)]
Ensure to count firewalls in target tenant

Previously admin tenant cannot create a firewall if other tenant
already created a firewall. We need to count firewalls only in
a target tenant.

Change-Id: I3e6d151d00d4a487bdd858e94929fab8960511a2
Closes-Bug: #1258438

10 years agoMock agent RPC for FWaaS tests to delete DB objs
Kevin Benton [Tue, 4 Mar 2014 11:27:11 +0000 (03:27 -0800)]
Mock agent RPC for FWaaS tests to delete DB objs

This changes the firewall service unit tests to
mock the RPC calls from the firewall service to
the agent. This allows the tests to fake the
agent response RPC that removes the firewall
from the DB so the all of the other objects that
the firewall depends on can be deleted.

Closes-Bug: #1288441
Change-Id: I32462ab5557b9c52328bf6a23a12efc2d799644c

10 years agoAllow CIDRs with non-zero masked portions
Kevin Benton [Tue, 18 Mar 2014 00:06:46 +0000 (17:06 -0700)]
Allow CIDRs with non-zero masked portions

Allow users to specify CIDRs with bits other
than zeros in the masked portion of the subnet.
e.g. 192.168.1.5/24 is accepted and converted
to 192.168.1.0/24.

Closes-Bug: #1204173
Change-Id: I7ddff41e6988feb6e2a87e40a4d99db7174415b1

10 years agoCisco plugin fails with ParseError no elem found
Dane LeBlanc [Tue, 18 Mar 2014 16:37:33 +0000 (12:37 -0400)]
Cisco plugin fails with ParseError no elem found

When the Cisco nexus plugin is configured on DevStack, the tempest
Neutron API test test_port_list_filter_by_router_id fails with the
following error:
     ParseError: no element found: line 1, column 0

The root cause is that the Cisco Nexus plugin model layer
is encapsulating each dictionary response from the OVS subplugin
into a list, whereas the WSGI layer is expecting a dictionary
response. The fix is not to encapsulate these responses into a list.

Change-Id: I4b589e8e5696c0eae43cafc46912b3d7f29bbdb6
Closes-Bug: #1284162

10 years agoDon't use root to list namespaces
Carl Baldwin [Mon, 17 Mar 2014 22:19:04 +0000 (22:19 +0000)]
Don't use root to list namespaces

A bit of low hanging fruit.  I just noticed that this hadn't been
fixed yet.

Change-Id: Iea9210098b6acf4ab24a89287529ff82986faaad
Closes-Bug: #1293818

10 years agoFixes Hyper-V agent security groups enable issue
Claudiu Belu [Mon, 17 Mar 2014 20:53:55 +0000 (13:53 -0700)]
Fixes Hyper-V agent security groups enable issue

Fixes the weight of the applied allow rules by ignoring
the weight of the reject rules.
Fixes the override allow rules issue by fixing the
ACL filtering condition.

Change-Id: I38ddd7142d0fa45f308460153d29580f276ce07e
Closes-Bug: #1294368

10 years agoML2 BigSwitch: Don't modify parent context
Kevin Benton [Tue, 18 Mar 2014 19:11:53 +0000 (12:11 -0700)]
ML2 BigSwitch: Don't modify parent context

Makes a copy of the port context before changing
it in preparation for the backend controller so
other drivers are not affected. Also removes a
UT that was exercising direct modification of VIF
details in the port context, which is not allowed
by the ML2 plugin.

Closes-Bug: #1294308
Change-Id: I47281dcd23c022813b8b6eda0a3d39c4482277b9

10 years agoMerge "NSX: Ensure gateway devices are usable after upgrade"
Jenkins [Tue, 18 Mar 2014 18:06:59 +0000 (18:06 +0000)]
Merge "NSX: Ensure gateway devices are usable after upgrade"

10 years agoLBaaS: small cleanup in agent device driver interface
Oleg Bondarev [Tue, 18 Mar 2014 12:31:55 +0000 (16:31 +0400)]
LBaaS: small cleanup in agent device driver interface

remove unnecessary 'context' parameter

Change-Id: Iaa3896f89760817af9d72e653252830f8a33e390
Closes-Bug: #1294096

10 years agoChange report_interval from 4 to 30, agent_down_time from 9 to 75
Assaf Muller [Sun, 16 Mar 2014 11:01:18 +0000 (13:01 +0200)]
Change report_interval from 4 to 30, agent_down_time from 9 to 75

report_interval is how often an agent sends out a heartbeat to the
service. The Neutron service responds to these 'report_state' RPC
messages by updating the agent's heartbeat DB record.
The last heartbeat is then compared to the configured
agent_down_time to determine if the agent is up or down.
The agent's status is used when scheduling networks on DHCP
and L3 agents.

In the spirit of sane defaults suited for production, these values
should be bumped to reduce the load on the Neutron service
dramatically, freeing up CPU time to perform intensive operations.

DocImpact
Closes-Bug: #1293083
Change-Id: I77bcf8f66f74ba55513c989caead1f96c92b9832

10 years agoStop removing ip allocations on port delete
Maru Newby [Fri, 14 Mar 2014 22:14:09 +0000 (22:14 +0000)]
Stop removing ip allocations on port delete

The _delete_port() method was manually removing related
IPAllocation instances despite the existence of a perfectly
good cascade deletion relationship in the model.  This patch
puts an end to that nonsense and the potential for deadlock that
it represented.

Closes-bug: #1288379
Related-Bug: #1283522

Change-Id: Ib31550fa9000fc75768a327cb6cc1c419e06568f

10 years agoMerge "Validate multicast ip range in Cisco N1kv Plugin"
Jenkins [Tue, 18 Mar 2014 06:40:31 +0000 (06:40 +0000)]
Merge "Validate multicast ip range in Cisco N1kv Plugin"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 18 Mar 2014 06:37:34 +0000 (06:37 +0000)]
Imported Translations from Transifex

Change-Id: I2e20faef71a104c1a58f20b9c0d8a14ed388a330

10 years agoIgnore PortNotFound exceptions on lockless delete
Kevin Benton [Mon, 17 Mar 2014 15:46:39 +0000 (08:46 -0700)]
Ignore PortNotFound exceptions on lockless delete

Modifies the delete_ports_by_device_id method to
ignore PortNotFound exceptions because it has no
protection against concurrent operations deleting
the same ports that it's trying to delete.

Closes-Bug: #1293657
Change-Id: Icbcded149364a0e231ae811a440a691518bf20ad

10 years agoMerge "Added missing l3_update call in update_network"
Jenkins [Tue, 18 Mar 2014 04:37:38 +0000 (04:37 +0000)]
Merge "Added missing l3_update call in update_network"

10 years agoMerge "Calculate stateless IPv6 address"
Jenkins [Tue, 18 Mar 2014 02:32:36 +0000 (02:32 +0000)]
Merge "Calculate stateless IPv6 address"

10 years agoMerge "Create new IPv6 attributes for Subnets"
Jenkins [Tue, 18 Mar 2014 02:26:34 +0000 (02:26 +0000)]
Merge "Create new IPv6 attributes for Subnets"