]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 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 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 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 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 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 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 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 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"

10 years agoShow neutron API request body with debug enabled
Kevin Benton [Mon, 17 Mar 2014 22:21:08 +0000 (15:21 -0700)]
Show neutron API request body with debug enabled

Shows the contents of update and create requests
to the neutron API when debugging is enabled.

Closes-Bug: #982504
Change-Id: I90680721aee9efbcb01779cdfacc86b90b37bf8f

10 years agoAdd session persistence support for NVP advanced LBaaS
berlin [Fri, 29 Nov 2013 09:45:33 +0000 (17:45 +0800)]
Add session persistence support for NVP advanced LBaaS

Change-Id: I2042894755cdaf54b2bc39e58028746aa7c1e8ea
Closes-Bug: #1256243

10 years agoFix misleading error message about failed dhcp notifications
armando-migliaccio [Mon, 10 Mar 2014 21:29:29 +0000 (14:29 -0700)]
Fix misleading error message about failed dhcp notifications

This is achieved by adjusting the log traces and ensuring
that the right log errors are emitted based on the status
of the network.

Also, the patch drastically simplifies the structure of the
notification method and unit tests to increase coverage.

Closes-bug: #1289130

Change-Id: I7cc78bba81c516380fc93a68aa7b295312a88e29

10 years agoMerge "Check vxlan enablement via modinfo"
Jenkins [Mon, 17 Mar 2014 22:52:36 +0000 (22:52 +0000)]
Merge "Check vxlan enablement via modinfo"

10 years agoNSX: Fix router-interface-delete returns 404 when router not in nsx
Aaron Rosen [Thu, 13 Mar 2014 05:22:53 +0000 (22:22 -0700)]
NSX: Fix router-interface-delete returns 404 when router not in nsx

Previously, if one would run router-interface-delete and the router
was not found in NSX. Neutron would raise a 404 error and remove the interface
from the database. In this case it would be better if we did not raise
a 404 error as the caller shouldn't be aware that the backend is out of sync.

Closes-bug: #1291690

Change-Id: I2400f8b31817e6dd4bc8aa08f07e1613fc2deeae

10 years agoBigSwitch: Watchdog thread start after servers
Kevin Benton [Mon, 17 Mar 2014 20:39:50 +0000 (13:39 -0700)]
BigSwitch: Watchdog thread start after servers

Start the watchdog thread after the servers have
been initialized.

Closes-Bug: #1293799
Change-Id: Ic7ae1f55bd7faed6edde84d9d0b52fc8fe7a1fc1

10 years agoMerge "NVP LBaaS: check for association before deleting health monitor"
Jenkins [Mon, 17 Mar 2014 20:27:46 +0000 (20:27 +0000)]
Merge "NVP LBaaS: check for association before deleting health monitor"

10 years agoCalculate stateless IPv6 address
Dazhao [Wed, 13 Nov 2013 10:24:32 +0000 (18:24 +0800)]
Calculate stateless IPv6 address

In order to support stateless IPv6, neutron should calculate IPv6 address base
on IPv6 prefix and MAC address via EUI-64 specification.  This change adds
common library to calculate IPv6 address.

Partially-implements bp ipv6-two-attributes
Co-Authored-By: Xu Han Peng <xuhanp@cn.ibm.com>
Change-Id: I68ccbc42388ec760d6fead242e080822ca753913

10 years agoCreate new IPv6 attributes for Subnets
Sean M. Collins [Thu, 30 Jan 2014 19:12:17 +0000 (14:12 -0500)]
Create new IPv6 attributes for Subnets

* Introduces two new optional attributes for Subnets:
  * ipv6_ra_mode
  * ipv6_address_mode

Both attributes accept the following values:

* dhcpv6-stateful
* dhcpv6-stateless
* slaac

In addition to these values, additional behaviors are specified for
when only one of the attributes is set. For example, a Neutron network
that uses a physical router as a gateway, that transmits ICMPv6 Router
Advertisement packets to configure hosts on the network will create
Neutron Subnets that have ipv6_ra_mode *not* set, and ipv6_address_mode
set to 'slaac' so that Neutron will calculate EUI64 addresses for
each port assigned to the subnet, and not spawn a Dnsmasq process.

These attributes maintain backwards compatability with the enable_dhcp
Subnet attribute, by requiring a subnet with these attributes to also
have enable_dhcp set to True.

DocImpact

Implements bp ipv6-two-attributes
Change-Id: I5b2313fff5dca1c16ff939fdc4397d7f95ba3ba5

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 17 Mar 2014 18:08:16 +0000 (18:08 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "ML2 plugin involves in agent_scheduler migration"
Jenkins [Mon, 17 Mar 2014 18:07:57 +0000 (18:07 +0000)]
Merge "ML2 plugin involves in agent_scheduler migration"

10 years agoRemove individual cfg.CONF.resets from tests
Henry Gessau [Wed, 12 Mar 2014 05:36:13 +0000 (01:36 -0400)]
Remove individual cfg.CONF.resets from tests

oslo.config.CONF.reset is added to cleanup in BaseTestCase, so it does
not need to be done by individual test cases.

Change-Id: I5fced5c2d480e78e5bb7cc150f0b653313884456
Closes-Bug: #1291144

10 years agoBigSwitch: Sync workaround for port del deadlock
Kevin Benton [Fri, 14 Mar 2014 19:15:18 +0000 (12:15 -0700)]
BigSwitch: Sync workaround for port del deadlock

Adds a synchronization barrier to the methods
that lock the port table to avoid the mysql
update-lock/eventlet-yield deadlock that occurs
with simultaneous port deletions.

Closes-Bug: #1292232
Change-Id: I8975a14a937a5843a0395ad7b599ebdc827565ed

10 years agoNSX: Ensure gateway devices are usable after upgrade
Salvatore Orlando [Mon, 17 Mar 2014 14:43:53 +0000 (15:43 +0100)]
NSX: Ensure gateway devices are usable after upgrade

The gateway device database migration upon an upgrade creates
gateway devices objects from references in network gateway
objects.
While these gateway devices are perfectly usable
in network gateways, they are not directly visible to tenants
and also cannot be updated to change details such as name,
connector type or ip as well as the client certificate.

This patch fixes the DB migration in order to ensure tenant
have access to gateway devices created after an upgrade.
This patch also modifies the l2 gateway nsxlib module to
ensure request bodies are correctly created even when not all
the attributes of a gateway device are specified.

Change-Id: I7077e9884adc739fb75e64a6e9a17a124d79fb6b
Closes-Bug: 1293617

10 years agoProcess ICMP type for iptables firewall
Xuhan Peng [Fri, 7 Mar 2014 01:55:28 +0000 (20:55 -0500)]
Process ICMP type for iptables firewall

In current security group code, source_port_range_min
and source_port_range_max are used to specify icmp type
and code when security group rule protocol is icmp.
However, the code _port_arg in iptables_firewall called
by _convert_sgr_to_iptables_rules skips protocol icmp
when processing the arg. This happens to both ipv4 and
ipv6 icmp firewall rules.

This fix adds --icmp-type to iptables firewall rule when
icmp type is specified.

Closes-Bug: 1289088

Change-Id: Iebf109f246d47cffc26ab3c2cf113234a4b2cffe

10 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 17 Mar 2014 06:21:11 +0000 (06:21 +0000)]
Imported Translations from Transifex

Change-Id: I78925e933b51f5cc7a5b3d71e35eb4819af869ba

10 years agoAdded missing l3_update call in update_network
Fawad Khaliq [Mon, 17 Mar 2014 03:51:16 +0000 (20:51 -0700)]
Added missing l3_update call in update_network

Change-Id: Id907ae692140fd52762ef6ac4fc1613897eb5065
Closes-Bug: #1259125

10 years agoMerge "Avoid long transaction in plugin.delete_ports()"
Jenkins [Sun, 16 Mar 2014 22:23:54 +0000 (22:23 +0000)]
Merge "Avoid long transaction in plugin.delete_ports()"

10 years agoML2 plugin involves in agent_scheduler migration
Li Ma [Sun, 16 Mar 2014 11:32:22 +0000 (04:32 -0700)]
ML2 plugin involves in agent_scheduler migration

In agent_scheduler migration script which creates
network-dhcp-binding table and router-l3-binding table,
ML2 plugin should be included in the plugin list.

Change-Id: If39ef2a488513a58d608c70e26a2b9f960dbe904
Closes-Bug: #1293089

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

Change-Id: I6fd6f5592874892988a670dae7f7209f2b1e9eab

10 years agoAvoid long transaction in plugin.delete_ports()
Akihiro Motoki [Fri, 7 Mar 2014 06:58:46 +0000 (15:58 +0900)]
Avoid long transaction in plugin.delete_ports()

db_plugin.delete_ports() called plugin.delete_port() under
a transaction. It leads to long transaction if plugin.delete_port
talks with external systems. This commit changes each delete_port
outside of a transaction to avoid longer transaction.

plugin.delete_ports is now called by release_dhcp_ports and
dhcp-agent ports can be deleted separately, so this changes
does not break the existing behavior.

delete_ports is renamed to delete_ports_by_device_id
to clarify the usage of this method.

NEC plugin already has this change and it is no longer needed.

_do_side_effect helper method in test_db_plugin is renamed
to more self-descriptive name.

Change-Id: Ied5883a57c7774c3b0778453d84c717b337f88c0
Closes-Bug: #1282925
Related-Bug: #1283522

10 years agoMerge "Fix KeyError except on router_info in FW Agent"
Jenkins [Sat, 15 Mar 2014 13:05:36 +0000 (13:05 +0000)]
Merge "Fix KeyError except on router_info in FW Agent"

10 years agoMerge "NSX: fix intermetting UT failure on vshield test_router_create"
Jenkins [Sat, 15 Mar 2014 07:30:01 +0000 (07:30 +0000)]
Merge "NSX: fix intermetting UT failure on vshield test_router_create"

10 years agoMerge "NSX: Propagate name updates for security profiles"
Jenkins [Sat, 15 Mar 2014 06:15:36 +0000 (06:15 +0000)]
Merge "NSX: Propagate name updates for security profiles"

10 years agoMerge "Remove legacy quantum config path"
Jenkins [Sat, 15 Mar 2014 01:24:01 +0000 (01:24 +0000)]
Merge "Remove legacy quantum config path"

10 years agoMerge "Add extraroute_db support for Cisco N1kv Plugin"
Jenkins [Sat, 15 Mar 2014 01:22:57 +0000 (01:22 +0000)]
Merge "Add extraroute_db support for Cisco N1kv Plugin"

10 years agoMerge "Fix ml2 & nec plugins for allowedaddresspairs tests"
Jenkins [Sat, 15 Mar 2014 00:47:15 +0000 (00:47 +0000)]
Merge "Fix ml2 & nec plugins for allowedaddresspairs tests"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 14 Mar 2014 22:03:35 +0000 (22:03 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Send fdb remove message when a port is migrated"
Jenkins [Fri, 14 Mar 2014 21:42:58 +0000 (21:42 +0000)]
Merge "Send fdb remove message when a port is migrated"

10 years agoFix KeyError except on router_info in FW Agent
Sridar Kandaswamy [Mon, 10 Mar 2014 06:31:28 +0000 (23:31 -0700)]
Fix KeyError except on router_info in FW Agent

The workflow of creating a firewall when a router without any i/f is present in that tenant
causes a KeyError on the FWAgent. The issue occurs as such routers are present in the list of
routers returned by get_routers() but are not populated in the router_info dict. Adding a check
before accessing the dict to prevent the exception. When an i/f is added to such routers -
_router_added processing in the l3agent will populate the router_info dict and the FWAgent
also picks this up in that context.

Change-Id: I5ea22e88a46e62372a0462e9cb958a08dd9f4c7d
Closes-Bug: #1289643

10 years agoMerge "NSX: remove last of unneed quantum references"
Jenkins [Fri, 14 Mar 2014 20:21:54 +0000 (20:21 +0000)]
Merge "NSX: remove last of unneed quantum references"

10 years agoMerge "Fix in admin_state_up check function"
Jenkins [Fri, 14 Mar 2014 18:28:37 +0000 (18:28 +0000)]
Merge "Fix in admin_state_up check function"

10 years agoMerge "Adds state reporting to SDN-VE agent"
Jenkins [Fri, 14 Mar 2014 16:50:56 +0000 (16:50 +0000)]
Merge "Adds state reporting to SDN-VE agent"

10 years agoNSX: remove last of unneed quantum references
Aaron Rosen [Thu, 13 Mar 2014 20:18:42 +0000 (13:18 -0700)]
NSX: remove last of unneed quantum references

Bye bye quantum!

Change-Id: Idabb3c28abfafedb1740d55aead1745725f6ca63

10 years agoNSX: fix intermetting UT failure on vshield test_router_create
armando-migliaccio [Fri, 14 Mar 2014 15:07:23 +0000 (08:07 -0700)]
NSX: fix intermetting UT failure on vshield test_router_create

Logstash shows this happened twice during the past 24 hours.
Let's be proactive and see if we can mitigate the random failure
by raising the poll time.

Change-Id: Icef7de4d9fbb3da037337c607fd7642cc15e0257
Closes-bug: 1292506

10 years agoBugfix and refactoring for ovs_lib flow methods
Aleks Chirko [Tue, 26 Nov 2013 14:22:57 +0000 (16:22 +0200)]
Bugfix and refactoring for ovs_lib flow methods

Remove hardcoded flow parameters from
'_build_flow_expr_str' method, so we can
define any flows we want and can rely on 'ovs-ofctl'
command to verify flow arguments correctness.
When building flow string inside _build_flow_expr_str
use the following approach:
1. Build prefix and remove prefix params from flow_dict.
2. Build postfix (actions) and remove 'actions' from
flow dict.
3. Inside the loop build flow array from everything
what's left in flow_dict.
4. Append postfix (actions) to the flow array.
5. 'Join' flow array into flow string.

Change _build_flow_expr_str() to be a function
instead of an object method because 'self'
parameter  wasn't used.

Remove 'add_or_mod_flow_str' method because
we have to use separate logic when bulding flow
strings for 'add_flow' and 'mod_flow' methods.

Add more unit tests for OVSBridge class.

Closes-Bug: #1255058
Closes-Bug: #1240572

Change-Id: Ic89221d006a626aa2fc40314a9acffc0ea6fd61c

10 years agoMerge "Fixing lost vlan ids on interfaces"
Jenkins [Fri, 14 Mar 2014 11:12:08 +0000 (11:12 +0000)]
Merge "Fixing lost vlan ids on interfaces"

10 years agoMerge "NSX: nicira_models should import model_base directly"
Jenkins [Fri, 14 Mar 2014 11:10:40 +0000 (11:10 +0000)]
Merge "NSX: nicira_models should import model_base directly"

10 years agoSend fdb remove message when a port is migrated
mathieu-rohon [Fri, 14 Mar 2014 09:17:55 +0000 (10:17 +0100)]
Send fdb remove message when a port is migrated

the fdb_remove rpc message is sent when the status
of the port goes to BUILD, that is when the new host
send a get_device_details which means that it owns
the migrated port. The fdb_add message will be sent
as soon as the new host send update_device_up

Closes bug: #1237841

Change-Id: Ibdc7768d8db922b7e6eb9dc505382168cbb8e55d

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

Change-Id: I5666887bf63545e4c32617eebb215b7de339efd1

10 years agoSend network-changed notifications to nova
Aaron Rosen [Tue, 4 Mar 2014 18:47:07 +0000 (10:47 -0800)]
Send network-changed notifications to nova

This patch notifies nova whenever a floatingip or fixed_ip is updated.

Implements blueprint: nova-event-callback

DocImpact - This notifications are off by default.

Change-Id: Ifbe9d856e80e512d5595fd72ea2d7c047ce0de9d