]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "Remove use_namespaces from RouterInfo Property"
Jenkins [Mon, 27 Oct 2014 09:49:00 +0000 (09:49 +0000)]
Merge "Remove use_namespaces from RouterInfo Property"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Mon, 27 Oct 2014 06:05:51 +0000 (06:05 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I1e8aad9a1eb480438c4221b51b46e93485ee2d13

9 years agoMerge "enable E713 in pep8 tests"
Jenkins [Sun, 26 Oct 2014 08:35:41 +0000 (08:35 +0000)]
Merge "enable E713 in pep8 tests"

9 years agoMerge "Updated from global requirements"
Jenkins [Sun, 26 Oct 2014 08:35:26 +0000 (08:35 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "NSX: Make conn_idle_timeout configurable"
Jenkins [Sun, 26 Oct 2014 08:02:53 +0000 (08:02 +0000)]
Merge "NSX: Make conn_idle_timeout configurable"

9 years agoMerge "Set vif_details to reflect enable_security_group"
Jenkins [Sat, 25 Oct 2014 02:10:40 +0000 (02:10 +0000)]
Merge "Set vif_details to reflect enable_security_group"

9 years agoRemove use_namespaces from RouterInfo Property
Carl Baldwin [Fri, 17 Oct 2014 04:13:49 +0000 (04:13 +0000)]
Remove use_namespaces from RouterInfo Property

The use_namespaces property is a property of the agent, not the
router.  The router doesn't need to know if namespaces are in use by
the agent.

Change-Id: I50a1069fc654eeaafaa4098d926ae9e96e5d400f

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 24 Oct 2014 16:15:05 +0000 (16:15 +0000)]
Updated from global requirements

Change-Id: Ia4292097571c0cb3d291071c90b229650e5e4c70

9 years agoMerge "Big Switch: Switch to TLSv1 in server manager"
Jenkins [Thu, 23 Oct 2014 21:20:45 +0000 (21:20 +0000)]
Merge "Big Switch: Switch to TLSv1 in server manager"

9 years agoenable E713 in pep8 tests
Mark McClain [Thu, 12 Jun 2014 00:53:18 +0000 (20:53 -0400)]
enable E713 in pep8 tests

This change update the code style to enable the E713 check (test for membership
should be ‘not in’)

Partial-Bug: 1329017

Change-Id: I96f8b734db5964ef46d0911cb5f6e0b8c33c3119

9 years agoMerge "Remove duplicate import of constants module"
Jenkins [Thu, 23 Oct 2014 20:19:28 +0000 (20:19 +0000)]
Merge "Remove duplicate import of constants module"

9 years agoMerge "Ensure ofagent unit tests handles random hashseeds"
Jenkins [Thu, 23 Oct 2014 20:16:40 +0000 (20:16 +0000)]
Merge "Ensure ofagent unit tests handles random hashseeds"

9 years agoMerge "Move disabling of metadata and ipv6_ra to _destroy_router_namespace"
Jenkins [Thu, 23 Oct 2014 11:55:44 +0000 (11:55 +0000)]
Merge "Move disabling of metadata and ipv6_ra to _destroy_router_namespace"

9 years agoBig Switch: Switch to TLSv1 in server manager
Kevin Benton [Wed, 22 Oct 2014 20:04:03 +0000 (13:04 -0700)]
Big Switch: Switch to TLSv1 in server manager

Switch to TLSv1 for the connections to the backend
controllers. The default SSLv3 is no longer considered
secure.

TLSv1 was chosen over .1 or .2 because the .1 and .2 weren't
added until python 2.7.9 so TLSv1 is the only compatible option
for py26.

Closes-Bug: #1384487
Change-Id: I68bd72fc4d90a102003d9ce48c47a4a6a3dd6e03

9 years agoMerge "Work toward Python 3.4 support and testing"
Jenkins [Wed, 22 Oct 2014 19:52:57 +0000 (19:52 +0000)]
Merge "Work toward Python 3.4 support and testing"

9 years agoMerge "Remove superfluous except/re-raise"
Jenkins [Wed, 22 Oct 2014 16:35:14 +0000 (16:35 +0000)]
Merge "Remove superfluous except/re-raise"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 22 Oct 2014 06:20:15 +0000 (06:20 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I58db0476c810aa901463b07c42182eef0adb5114

9 years agoMerge "Fix race condition on processing DVR floating IPs"
Jenkins [Wed, 22 Oct 2014 05:55:29 +0000 (05:55 +0000)]
Merge "Fix race condition on processing DVR floating IPs"

9 years agoMerge "Remove redundant initialization and check from DVR RPC mixin"
Jenkins [Wed, 22 Oct 2014 02:49:03 +0000 (02:49 +0000)]
Merge "Remove redundant initialization and check from DVR RPC mixin"

9 years agoMerge "Improve performance of security group DB query"
Jenkins [Wed, 22 Oct 2014 01:50:00 +0000 (01:50 +0000)]
Merge "Improve performance of security group DB query"

9 years agoMerge "Cisco N1kv: Fix update network profile for add tenants"
Jenkins [Wed, 22 Oct 2014 00:29:30 +0000 (00:29 +0000)]
Merge "Cisco N1kv: Fix update network profile for add tenants"

9 years agoMerge "Moves the HA resource creations outside of transaction"
Jenkins [Wed, 22 Oct 2014 00:29:13 +0000 (00:29 +0000)]
Merge "Moves the HA resource creations outside of transaction"

9 years agoMerge "Updated from global requirements"
Jenkins [Wed, 22 Oct 2014 00:25:07 +0000 (00:25 +0000)]
Merge "Updated from global requirements"

9 years agoMove disabling of metadata and ipv6_ra to _destroy_router_namespace
Carl Baldwin [Mon, 20 Oct 2014 21:48:42 +0000 (21:48 +0000)]
Move disabling of metadata and ipv6_ra to _destroy_router_namespace

I noticed that disable_ipv6_ra is called from the wrong place and that
in some cases it was called with a bogus router_id because the code
made an incorrect assumption about the context.  In other case, it was
never called because _destroy_router_namespace was being called
directly.  This patch moves the disabling of metadata and ipv6_ra in
to _destroy_router_namespace to ensure they get called correctly and
avoid duplication.

Change-Id: Ia76a5ff4200df072b60481f2ee49286b78ece6c4
Closes-Bug: #1383495

9 years agoMerge "Check for VPN Objects when deleting interfaces"
Jenkins [Tue, 21 Oct 2014 17:37:57 +0000 (17:37 +0000)]
Merge "Check for VPN Objects when deleting interfaces"

9 years agoMerge "Modify docstring on send_delete_port_request in N1kv plugin"
Jenkins [Tue, 21 Oct 2014 17:37:37 +0000 (17:37 +0000)]
Merge "Modify docstring on send_delete_port_request in N1kv plugin"

9 years agoMerge "mock.assert_called_once() is not a valid method"
Jenkins [Tue, 21 Oct 2014 17:33:19 +0000 (17:33 +0000)]
Merge "mock.assert_called_once() is not a valid method"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 21 Oct 2014 12:11:19 +0000 (12:11 +0000)]
Updated from global requirements

Change-Id: Idcbd730f5c781d21ea75e7bfb15959c8f517980f

9 years agoMerge "Updated cache module and its dependencies"
Jenkins [Tue, 21 Oct 2014 10:22:56 +0000 (10:22 +0000)]
Merge "Updated cache module and its dependencies"

9 years agoRemove duplicate import of constants module
Angus Lees [Mon, 25 Aug 2014 02:14:29 +0000 (12:14 +1000)]
Remove duplicate import of constants module

.. and enable corresponding pylint check now the only offending instance
is fixed.

Change-Id: I35a12ace46c872446b8c87d0aacce45e94d71bae

9 years agoMerge "Updated service.py and its dependencies"
Jenkins [Tue, 21 Oct 2014 00:32:42 +0000 (00:32 +0000)]
Merge "Updated service.py and its dependencies"

9 years agoMerge "Empty files should not contain copyright or license"
Jenkins [Mon, 20 Oct 2014 23:13:52 +0000 (23:13 +0000)]
Merge "Empty files should not contain copyright or license"

9 years agoFix race condition on processing DVR floating IPs
rajeev [Mon, 13 Oct 2014 20:25:36 +0000 (16:25 -0400)]
Fix race condition on processing DVR floating IPs

Fip namespace and agent gateway port can be shared by multiple dvr routers.
This change uses a set as the control variable for these shared resources
and ensures that Test and Set operation on the control variable are
performed atomically so that race conditions do not occur among
multiple threads processing floating IPs.
Limitation: The scope of this change is limited to addressing the race
condition described in the bug report. It may not address other issues
such as pre-existing issue with handling of DVR floatingips on agent
restart.

closes-bug: #1381238

Change-Id: I6dc2b7bad6e8ddbaa86c1f7a1e2028aeacc3afef

9 years agoMerge "ofagent: Ignore unknown l2pop entry removals"
Jenkins [Mon, 20 Oct 2014 17:17:37 +0000 (17:17 +0000)]
Merge "ofagent: Ignore unknown l2pop entry removals"

9 years agoMerge "Compare subnet length as well when deleting DHCP entry"
Jenkins [Mon, 20 Oct 2014 17:13:06 +0000 (17:13 +0000)]
Merge "Compare subnet length as well when deleting DHCP entry"

9 years agoMerge "Drop sslutils and versionutils modules"
Jenkins [Mon, 20 Oct 2014 17:09:16 +0000 (17:09 +0000)]
Merge "Drop sslutils and versionutils modules"

9 years agoMerge "ofagent: Drop log level of tenant-triggerable events"
Jenkins [Mon, 20 Oct 2014 17:04:45 +0000 (17:04 +0000)]
Merge "ofagent: Drop log level of tenant-triggerable events"

9 years agoMerge "Updated fileutils and its dependencies"
Jenkins [Mon, 20 Oct 2014 15:54:12 +0000 (15:54 +0000)]
Merge "Updated fileutils and its dependencies"

9 years agoMerge "Reduce security group db calls to neutron server"
Jenkins [Mon, 20 Oct 2014 15:49:58 +0000 (15:49 +0000)]
Merge "Reduce security group db calls to neutron server"

9 years agoMerge "VPNaaS Cisco unit test clean-up"
Jenkins [Mon, 20 Oct 2014 15:45:38 +0000 (15:45 +0000)]
Merge "VPNaaS Cisco unit test clean-up"

9 years agoMerge "l3_agent: avoid name conflict with context"
Jenkins [Mon, 20 Oct 2014 15:43:37 +0000 (15:43 +0000)]
Merge "l3_agent: avoid name conflict with context"

9 years agoMerge "Schema enhancement to support MultiSegment Network"
Jenkins [Mon, 20 Oct 2014 15:30:54 +0000 (15:30 +0000)]
Merge "Schema enhancement to support MultiSegment Network"

9 years agoMerge "Refactor _make_subnet_dict to avoid issuing unnecessary queries"
Jenkins [Mon, 20 Oct 2014 14:25:43 +0000 (14:25 +0000)]
Merge "Refactor _make_subnet_dict to avoid issuing unnecessary queries"

9 years agoEnsure ofagent unit tests handles random hashseeds
Bradley Jones [Mon, 20 Oct 2014 11:34:55 +0000 (12:34 +0100)]
Ensure ofagent unit tests handles random hashseeds

Several tests in test_ofa_neutron_agent.py and test_ofa_flows.py fail when
running the unit tests with hashseed 2701526934.

This patch fixes the failing unit tests by specifying that assert_has_calls does
not need to assert any order.

Change-Id: I48d6601130f7de1f6eeb7333a17eddd82e7acbdf
Partial-Bug: 1348818

9 years agoMerge "Optimize query in _select_dhcp_ips_for_network_ids"
Jenkins [Mon, 20 Oct 2014 10:27:29 +0000 (10:27 +0000)]
Merge "Optimize query in _select_dhcp_ips_for_network_ids"

9 years agoMerge "Only fetch port_id from SG binding table"
Jenkins [Mon, 20 Oct 2014 08:48:57 +0000 (08:48 +0000)]
Merge "Only fetch port_id from SG binding table"

9 years agoMoves the HA resource creations outside of transaction
Sylvain Afchain [Fri, 26 Sep 2014 13:49:43 +0000 (13:49 +0000)]
Moves the HA resource creations outside of transaction

Currently the HA resources are created in the
_create_router_db which includes calls to
the plugin and generates RPC calls. Even if the
resource creations are outside of any transaction
from the _create_router_db point of view, this
method is  called in a transaction from the
create_router method.
This patch moves the resource creations to the
create_router method outside the transaction.
The failures are handled as previously with
a try/expect.

Change-Id: If8fcfd012f8e992175e49bbefb2ae667881a620a
Closes-bug: #1374461

9 years agoModify docstring on send_delete_port_request in N1kv plugin
Peng Xiao [Mon, 20 Oct 2014 06:16:36 +0000 (14:16 +0800)]
Modify docstring on send_delete_port_request in N1kv plugin

N1kv plugin: Modify docstring on _send_delete_port_request method

Change-Id: I64d34878ffd8f6db703e4c1d9849032fef9bae96
Closes-Bug: #1381277

9 years agoEmpty files should not contain copyright or license
Weidong Shao [Thu, 21 Aug 2014 20:10:47 +0000 (20:10 +0000)]
Empty files should not contain copyright or license

Per instruction from
http://docs.openstack.org/developer/hacking/#openstack-licensing

Enable hacking check H104 in this CL.

Change-Id: I435b9d91877499ebe1e33435f06794164a0ecc34
Partial-Bug: #1262424

9 years agoRemove superfluous except/re-raise
Angus Lees [Mon, 20 Oct 2014 00:19:02 +0000 (11:19 +1100)]
Remove superfluous except/re-raise

This exception code catches all exceptions, and then always raises them
again.

More interestingly, it uses excutils.save_and_reraise_exception
incorrectly (outside a `with` statement), which triggers the pylint test
designed to catch exactly this.

Change-Id: Iab9d69944cbae5257682ac65ff2b8fba3ef7017e

9 years agoSchema enhancement to support MultiSegment Network
Romil Gupta [Mon, 30 Jun 2014 12:35:08 +0000 (05:35 -0700)]
Schema enhancement to support MultiSegment Network

Description:
Currently, there is nothing in the schema that ensures segments
for a network are returned in the same order they were specified
when the network was created, or even in a deterministic order.

Solution:
We need to add another field named 'segment_index' in
'ml2_network_segment' table containing a numeric position index.
With segment_index field we can retrieve the segments in the
order in which user created.

This patch set also fixes ML2 invalid unit test case in
test_create_network_multiprovider().

Closes-Bug: #1224978
Closes-Bug: #1377346

Change-Id: I560c34c6fe1c5425469ccdf9b8b4905c123d496d

9 years agoRemove redundant initialization and check from DVR RPC mixin
armando-migliaccio [Wed, 15 Oct 2014 06:25:58 +0000 (23:25 -0700)]
Remove redundant initialization and check from DVR RPC mixin

The initialization, as well as the recurrent checks on whether the agent
is able to handle DVR requests, are not necessary; this is because the
dvr_agent is going to be set at the time the L2 agent starts receiving
RPC messages.

Change-Id: I9caad965d0ff507e2ed93d6432997ad86139ac04

9 years agoMerge "DB: Only ask for MAC instead of entire port"
Jenkins [Sat, 18 Oct 2014 09:35:31 +0000 (09:35 +0000)]
Merge "DB: Only ask for MAC instead of entire port"

9 years agoMerge "openvswitch: Remove no longer used options"
Jenkins [Sat, 18 Oct 2014 09:02:02 +0000 (09:02 +0000)]
Merge "openvswitch: Remove no longer used options"

9 years agoMerge "Add pylint tox environment and disable all existing warnings"
Jenkins [Sat, 18 Oct 2014 08:57:58 +0000 (08:57 +0000)]
Merge "Add pylint tox environment and disable all existing warnings"

9 years agoImprove performance of security group DB query
Kevin Benton [Wed, 24 Sep 2014 12:23:32 +0000 (05:23 -0700)]
Improve performance of security group DB query

The _select_ips_for_remote_group method was joining the
IP allocation, port, allowed address pair, and security group tables
together in a single query. Additionally, it was loading all of
the port columns and using none of them. This resulted in a
very expensive query with no benefit.

This patch eliminates the unnecessary use of the port table by joining
the IP allocation table directly to the security groups and allowed
address pairs tables. In local testing of the method, this sped it up
by an order of magnitude.

Closes-Bug: #1373851
Change-Id: I12899413004838d2d22b691f1e2f3b18f7ec2c27

9 years agoOptimize query in _select_dhcp_ips_for_network_ids
Kevin Benton [Fri, 17 Oct 2014 04:27:47 +0000 (21:27 -0700)]
Optimize query in _select_dhcp_ips_for_network_ids

Only query the DB for relevant columns instead of
all of the port columns.

Partial-Bug: #1373851
Change-Id: I32cd4a0bc6799ce77cea13188676308e3e641d19

9 years agoUpdated cache module and its dependencies
Ihar Hrachyshka [Tue, 14 Oct 2014 13:05:20 +0000 (15:05 +0200)]
Updated cache module and its dependencies

This is to avoid cache module dependency on timeutils that are now moved
to oslo.utils.

The following changes are included:

 * neutron/openstack/common/cache/_backends/memory.py
  6ff6b4b Switch oslo-incubator to use oslo.utils and remove old modules
  2bedce3 Fix MemoryBackend not purging item from _keys_expired on delete

 * neutron/openstack/common/cache/backends.py
  39625e1 Set pbr 'warnerrors' option for doc build

 * neutron/openstack/common/cache/cache.py
  9c683be fix small typo

 * neutron/openstack/common/lockutils.py
  5d40e14 Remove code that moved to oslo.i18n
  7209975 Always log the releasing, even under failure
  bbb266c Clarify logging in lockutils
  942e1aa Use file locks by default again
  ac995be Fix E126 pep8 errors
  15b8352 Remove oslo.log from lockutils

Change-Id: I02cb4b2bc4b7bcba948e67cffdb8bd0219c89a29

9 years agoUpdated service.py and its dependencies
Ihar Hrachyshka [Tue, 14 Oct 2014 12:36:06 +0000 (14:36 +0200)]
Updated service.py and its dependencies

This is to avoid service module dependency on importutils that are now
moved to oslo.utils.

The following changes are included:

 * neutron/openstack/common/eventlet_backdoor.py
  5d40e14 Remove code that moved to oslo.i18n
  90ae24b Remove redundant default=None for config options
  fcf517d Update oslo log messages with translation domains

 * neutron/openstack/common/loopingcall.py
  5d40e14 Remove code that moved to oslo.i18n
  e377393 Changes calcuation of variable delay
  ab5d5f1 Use timestamp in loopingcall
  bc48099 Log the function name of looping call
  fb4e863 Remove deprecated LoopingCall
  fcf517d Update oslo log messages with translation domains

 * neutron/openstack/common/service.py
  5d40e14 Remove code that moved to oslo.i18n
  6ede600 rpc, notifier: remove deprecated modules

 * neutron/openstack/common/systemd.py
  17c4e21 Fix docstring indentation in systemd

 * neutron/openstack/common/threadgroup.py
  5a1a016 Make stop_timers() method public
  fdc8883 Add graceful stop function to ThreadGroup.stop
  2d06d6c Simple typo correction
  4d18b57 threadgroup: use threading rather than greenthread

Change-Id: I4887545f861a93223e2c7cbcdd39efe991bff547

9 years agoUpdated fileutils and its dependencies
Ihar Hrachyshka [Tue, 14 Oct 2014 12:22:09 +0000 (14:22 +0200)]
Updated fileutils and its dependencies

This is to avoid fileutils dependency on excutils that are now moved to
oslo.utils.

The following changes are included:

* neutron/openstack/common/__init__.py
  6b048e7 Let oslotest manage the six.move setting for mox

 * neutron/openstack/common/_i18n.py
  9ce1d96 Fix i18n import
  5d40e14 Remove code that moved to oslo.i18n

 * neutron/openstack/common/fileutils.py
  6ff6b4b Switch oslo-incubator to use oslo.utils and remove old modules
  2b966f9 Fix deletion of cached file for policy enforcer
  9c88dc3 file_open: fixed docstring to refer to open() instead of file()
  6c7407b fileutils: port to Python 3
  fcf517d Update oslo log messages with translation domains

 * neutron/openstack/common/log.py
  6c706c5 Delete graduated serialization files
  5d40e14 Remove code that moved to oslo.i18n
  6ff6b4b Switch oslo-incubator to use oslo.utils and remove old modules
  aa74411 log: add missing space in error message
  037dee0 Set stevedore log level to WARN by default
  37c0091 Add unicode coercion of logged messages to ContextFormatter
  6614413 Correct coercion of logged message to unicode
  1188d88 Except socket.error if syslog isn't running
  ac995be Fix E126 pep8 errors
  631f880 Set keystonemiddleware and routes.middleware to log on WARN level
  726d00a Adjust oslo logging to provide adapter is enabled for
  433fa0b Make logging_context_format_string optional in log.set_defaults
  ac92c06 Add default log level for websocket
  5fd77eb Ability to customize default_log_levels for each project
  4d9328c Python 3: enable tests/unit/test_log.py
  cb5a804 Move `mask_password` to strutils

Note: cb5a804 is partially included; that's ok because we don't use the
moved function in Neutron.

Change-Id: I3bfcaff2620b368d807e9468bb7abc01d6471661

9 years agoCisco N1kv: Fix update network profile for add tenants
Abhishek Raut [Wed, 8 Oct 2014 00:06:10 +0000 (17:06 -0700)]
Cisco N1kv: Fix update network profile for add tenants

This patch makes sure that while updating network profile to add new
tenants, it does not delete the older profile bindings and maintains
them, while adds only the new tenant ids to the bindings.

Change-Id: I862eb1c400e022334a2f6a4078425448bb144843
Closes-bug: #1379609

9 years agoDB: Only ask for MAC instead of entire port
Kevin Benton [Fri, 17 Oct 2014 04:24:07 +0000 (21:24 -0700)]
DB: Only ask for MAC instead of entire port

Optimize a query in _get_lla_gateway_ip_for_subnet
to only grab the column used instead of every column
in the port table.

Partial-Bug: #1373851
Change-Id: I5257e1e22645f3df9a77c0967b09a0ad0cf8b251

9 years agoOnly fetch port_id from SG binding table
Kevin Benton [Fri, 17 Oct 2014 04:21:15 +0000 (21:21 -0700)]
Only fetch port_id from SG binding table

Change a query to only retrieve the port_id instead of
every column from the row of security group binding info.

Partial-Bug: #1373851
Change-Id: I0fba9c9623898ee52590207ebbb728503bb59a5b

9 years agoNSX: Make conn_idle_timeout configurable
Aaron Rosen [Thu, 16 Oct 2014 11:11:42 +0000 (04:11 -0700)]
NSX: Make conn_idle_timeout configurable

If there is a loadbalancer that sits between NSX and neutron usually it has
a default http_timeout on long lived http_connections. This can cause
connections that have not been used from neutron to nsx to be reset after
sometime. This patch makes the amount time we wait to reconnect the connection
configurable so one can set it to match the balancer timeout to avoid having
to try the connection if the loadbalaner has already timed it out.

closes-bug #1382000

Change-Id: Ifca76ca6c24a2002b46b1935fbb4fc63f15c5af1

9 years agonsx plugin: keep old priority when reconnecting bad connection
Han Zhou [Thu, 16 Oct 2014 10:43:12 +0000 (10:43 +0000)]
nsx plugin: keep old priority when reconnecting bad connection

Change-Id: Id05012ec04d23a5eec8441fc85f87611e08271fd
Closes-Bug: #1381094

9 years agol3_agent: avoid name conflict with context
Isaku Yamahata [Thu, 16 Oct 2014 06:31:03 +0000 (15:31 +0900)]
l3_agent: avoid name conflict with context

module name, context, conflicts with argument name in many place in
l3_agent. In order to avoid such conflict, import context as n_context
following Neutron practice.

Change-Id: Ic3754818f84064d2c8da04914826fc912437b2f0
Closes-Bug: #1381900

9 years agoMerge "Minor: remove unnecessary intermediate variable"
Jenkins [Thu, 16 Oct 2014 05:56:55 +0000 (05:56 +0000)]
Merge "Minor: remove unnecessary intermediate variable"

9 years agoMerge "Fix KeyError in dhcp_rpc when plugin.port_update raise exception"
Jenkins [Thu, 16 Oct 2014 05:43:38 +0000 (05:43 +0000)]
Merge "Fix KeyError in dhcp_rpc when plugin.port_update raise exception"

9 years agoMerge "Remove sslutils from openstack.common"
Jenkins [Wed, 15 Oct 2014 17:49:41 +0000 (17:49 +0000)]
Merge "Remove sslutils from openstack.common"

9 years agoMerge "Call DVR VMARP notify outside of transaction"
Jenkins [Wed, 15 Oct 2014 17:09:16 +0000 (17:09 +0000)]
Merge "Call DVR VMARP notify outside of transaction"

9 years agoMerge "remove E251 exemption from pep8 check"
Jenkins [Wed, 15 Oct 2014 10:33:22 +0000 (10:33 +0000)]
Merge "remove E251 exemption from pep8 check"

9 years agoFix KeyError in dhcp_rpc when plugin.port_update raise exception
Numan Siddique [Sat, 11 Oct 2014 12:08:05 +0000 (17:38 +0530)]
Fix KeyError in dhcp_rpc when plugin.port_update raise exception

KeyError exception is seen because of following reasons

* DhcpRpcCallback._port_action() is called by two functions
   -  DhcpRpcCallback.create_dchp_port()
   -  DhcpRpcCallback.update_dhcp_port()

* When create_dhcp_port() function calls _port_action(), the
  function argument 'port' will have the body as
  {'port': {'network_id': foo_network_id, 'fixed_ips': [..] ...}

* When update_dhcp_port() function calls _port_action(), the
  function argument 'port' will have the body as
  {'id': port_id, 'port': {{'port': {'network_id': foo_network_id,
            'fixed_ips': [..] ...}}

* If an exception occurs when _port_action() calls plugin.create_port(),
  network id is accessed as
  net_id = port['port']['network_id']

* If an exception occurs when _port_action() calls plugin.update_port(),
  network id is accessed as
  net_id = port['port']['network_id']
  which is causing the KeyError. network_id should have been accessed as
  net_id = port['port']['port']['network_id']

This patch fixes the issue by making the _port_action() take the
same port body. update_dhcp_port() insteading of passing the port_id
and port information in a single argument, it now adds port_id
in the port body itself.

Change-Id: I70b92fa20b421b05ca2053a9a57f62db726f7625
Closes-bug: #1378508

9 years agoRefactor _make_subnet_dict to avoid issuing unnecessary queries
Eugene Nikanorov [Sun, 28 Sep 2014 17:56:00 +0000 (21:56 +0400)]
Refactor _make_subnet_dict to avoid issuing unnecessary queries

Use joined loads for attributes dns_nameservers and host_routes.

As a result, particular scenarios like restarting DHCP agent
could benefit from improved server-side performance.

Change-Id: I6470356b601e2fcf74c7e0a6df438cef7099e9fe
Closes-Bug: #1374044

9 years agoMerge "Use EUI64 for IPv6 SLAAC when subnet is specified"
Jenkins [Wed, 15 Oct 2014 05:24:42 +0000 (05:24 +0000)]
Merge "Use EUI64 for IPv6 SLAAC when subnet is specified"

9 years agoopenvswitch: Remove no longer used options
YAMAMOTO Takashi [Thu, 9 Oct 2014 00:04:34 +0000 (09:04 +0900)]
openvswitch: Remove no longer used options

They are remainders of the recently removed monolithic OVS plugin.
Note: This change does not touch options used by OVS agent.

Partial-Bug: #1323729
Change-Id: I6dd04c5c506ff5f97f10ebab03943cd508fbfe60

9 years agoMerge "Properly handle empty before/after notifications in l2pop code"
Jenkins [Wed, 15 Oct 2014 03:47:21 +0000 (03:47 +0000)]
Merge "Properly handle empty before/after notifications in l2pop code"

9 years agoMerge "Avoid constructing a RouterInfo object to get namespace name"
Jenkins [Wed, 15 Oct 2014 03:47:07 +0000 (03:47 +0000)]
Merge "Avoid constructing a RouterInfo object to get namespace name"

9 years agoMerge "ofagent: Fix a possible crash in arp responder"
Jenkins [Wed, 15 Oct 2014 03:46:39 +0000 (03:46 +0000)]
Merge "ofagent: Fix a possible crash in arp responder"

9 years agoMerge "Race for l2pop when ports go up/down on same host"
Jenkins [Wed, 15 Oct 2014 03:39:59 +0000 (03:39 +0000)]
Merge "Race for l2pop when ports go up/down on same host"

9 years agoVPNaaS Cisco unit test clean-up
Paul Michali [Tue, 14 Oct 2014 22:18:15 +0000 (18:18 -0400)]
VPNaaS Cisco unit test clean-up

Removed unused args to mock side-effect function and duplicate
constant.

Change-Id: I5409ce86ccaab86213d65f757f19c1bdf9a66929
Closes-Bug: #1381221

9 years agoCall DVR VMARP notify outside of transaction
Kevin Benton [Sat, 11 Oct 2014 10:42:47 +0000 (03:42 -0700)]
Call DVR VMARP notify outside of transaction

The dvr vmarp table update notification was being called inside
of the delete_port transaction in ML2, which can cause a yield
and lead to the glorious mysql/eventlet deadlock.

This patch moves it outside the transaction and adjusts it to
use an existing port dictionary rather than re-looking it up since
the port is now gone from the DB by the time it is called.

Closes-Bug: #1377241
Change-Id: I0b4dac61e49b2a926353f8478e421cd1a70be038

9 years agoMerge "Remove an argument that is never used"
Jenkins [Tue, 14 Oct 2014 20:15:18 +0000 (20:15 +0000)]
Merge "Remove an argument that is never used"

9 years agoremove E251 exemption from pep8 check
Mark McClain [Thu, 12 Jun 2014 00:44:43 +0000 (20:44 -0400)]
remove E251 exemption from pep8 check

This change removes the exemption for E251 by addressing unexpected spaces
around keyword/parameter equals

Change-Id: Iff17477e37bef2a97fc58a538d08bcfc35c67751
Partial-Bug: 1329017

9 years agoRace for l2pop when ports go up/down on same host
Vivekanandan Narasimhan [Tue, 23 Sep 2014 09:25:16 +0000 (02:25 -0700)]
Race for l2pop when ports go up/down on same host

With l2pop enabled, race exists in delete_port_postcommit
when both create/update_port and delete_port deal with
different ports on the same host, where such ports are
either the first (or) last on same network for that host.
This race happens outside the DB locking zones in
the respective methods of ML2 plugin.

To fix this, we have moved determination of
fdb_entries back to delete_port_postcommit and removed
delete_port_precommit altogether from l2pop mechanism
driver.  In order to accomodate dvr interfaces, we
are storing and re-using the mechanism-driver context
which hold dvr-port-binding information while
invoking delete_port_postcommit.  We loop through
dvr interface bindings invoking delete_port_postcommit
similar to delete_port_precommit.

Closes-Bug: #1372438
Change-Id: If0502f57382441fdb4510c81a89794f57a38e696

9 years agoMerge "Catch exceptions in router rescheduler"
Jenkins [Tue, 14 Oct 2014 16:11:36 +0000 (16:11 +0000)]
Merge "Catch exceptions in router rescheduler"

9 years agoMerge "Handle unused set_context in L3NatTestCaseMixin.floatingip_with_assoc"
Jenkins [Tue, 14 Oct 2014 14:33:38 +0000 (14:33 +0000)]
Merge "Handle unused set_context in L3NatTestCaseMixin.floatingip_with_assoc"

9 years agoMerge "Big Switch: Don't clear hash before sync"
Jenkins [Tue, 14 Oct 2014 14:04:45 +0000 (14:04 +0000)]
Merge "Big Switch: Don't clear hash before sync"

9 years agoMerge "Update VPN logging to use new i18n functions"
Jenkins [Tue, 14 Oct 2014 13:07:03 +0000 (13:07 +0000)]
Merge "Update VPN logging to use new i18n functions"

9 years agoCatch exceptions in router rescheduler
Kevin Benton [Tue, 30 Sep 2014 02:33:06 +0000 (19:33 -0700)]
Catch exceptions in router rescheduler

Catch and log exceptions in router rescheduling loop
rather than just dying which would stop all future
router rescheduling attempts.

This prevents transient DB connectivity issues from
permanently breaking the rescheduler until the process
restarts.

Closes-Bug: #1375597
Change-Id: I2ab37847074fa6bbdd2b13fd03b8742996dcfc78

9 years agoMinor: remove unnecessary intermediate variable
Kevin Benton [Tue, 14 Oct 2014 06:40:36 +0000 (23:40 -0700)]
Minor: remove unnecessary intermediate variable

Removes an unnecessary intermediary variable and an
unnecessary list extend operation that implied previous
list members where there weren't any. There should be no
functional change. This just improves readability slightly.

Change-Id: Ice412c29be083d82e055cc0bc45ed8b97c7628d0

9 years agoHandle unused set_context in L3NatTestCaseMixin.floatingip_with_assoc
Elena Ezhova [Tue, 14 Oct 2014 06:12:59 +0000 (10:12 +0400)]
Handle unused set_context in L3NatTestCaseMixin.floatingip_with_assoc

set_context which is passed to floatingip_with_assoc method
is not passed further to self._make_floatingip.

Change-Id: Iecf2ad88e4bad5b1f8fd60668401863bdeecce8f
Closes-Bug: #1378756

9 years agoMerge "Arista L3 Ops is success if it is successful on one peer"
Jenkins [Tue, 14 Oct 2014 05:40:19 +0000 (05:40 +0000)]
Merge "Arista L3 Ops is success if it is successful on one peer"

9 years agoMerge "Do not assume order of lvm.tun_ofports set elements"
Jenkins [Tue, 14 Oct 2014 03:17:47 +0000 (03:17 +0000)]
Merge "Do not assume order of lvm.tun_ofports set elements"

9 years agoUse EUI64 for IPv6 SLAAC when subnet is specified
Xu Han Peng [Fri, 20 Jun 2014 06:59:53 +0000 (14:59 +0800)]
Use EUI64 for IPv6 SLAAC when subnet is specified

This commit uses EUI64 for SLAAC and stateless IPv6 address
when subnet id in fixed_ip is specified.

After this patch, all the ports created on a subnet which has
ipv6_address_mod=slaac or ipv6_address_mod=dhcpv6-stateless
will use EUI64 as the address.
This patch also checks if fixed IP address is specified
for a IPv6 subnet with address mode slaac or dhcpv6-stateless
during creating or updating a port. If yes, raise InvalidInput
error to stop the port creation or update.

Remove unit test test_generated_duplicate_ip_ipv6 because
fixed_ip should not be specified for a slaac subnet.

Change-Id: Ie481cfb2f4313baf44bf1a838ebda374a5c74c6a
Closes-Bug: 1330826

9 years agoMerge "Add unique constraints in IPAvailabilityRange"
Jenkins [Mon, 13 Oct 2014 23:45:03 +0000 (23:45 +0000)]
Merge "Add unique constraints in IPAvailabilityRange"

9 years agoArista L3 Ops is success if it is successful on one peer
Sukhdev [Wed, 24 Sep 2014 22:57:15 +0000 (15:57 -0700)]
Arista L3 Ops is success if it is successful on one peer

This fix checks to see if Arista HW is
configured in MLAG (redundant) mode. If yes,
as long as operation is successful on one of the
paired switches, consider it successful.

Closes-bug: 1373652

Change-Id: If929d3fcc109b81f4cf071380a1645d403feb363

9 years agoAdd unique constraints in IPAvailabilityRange
rossella [Tue, 23 Sep 2014 16:09:09 +0000 (16:09 +0000)]
Add unique constraints in IPAvailabilityRange

first_ip, allocation_pool_id and last_ip, allocation_pool_id
should be unique in the table.
These constraints are essential to detect concurrent modifications
of the IpAvailabilityRange table if the SELECT ... FOR UPDATE
lock is removed

Change-Id: Iaf2288c0b6bf27e93c03691073d7f505ef24fdd3
Closes-bug: #1373015

9 years agoMerge "Forbid update of HA property of routers"
Jenkins [Mon, 13 Oct 2014 18:48:48 +0000 (18:48 +0000)]
Merge "Forbid update of HA property of routers"

9 years agoMerge "NSX: drop support to deprecated dist-router extension"
Jenkins [Mon, 13 Oct 2014 18:43:42 +0000 (18:43 +0000)]
Merge "NSX: drop support to deprecated dist-router extension"

9 years agoUpdate VPN logging to use new i18n functions
Andrew Boik [Fri, 10 Oct 2014 17:13:45 +0000 (13:13 -0400)]
Update VPN logging to use new i18n functions

For log messages in neutron/services/vpn and neutron/db/vpn, replace
_() marker functions with log-level-specific marker functions: _LI(),
_LW(), _LE() from oslo.i18n.

Also, remove _() functions for debug log messages as debug level log
messages should not be translated.

Change-Id: I07fcf25bb6344c47e74d6ee23f9bc08e4b560679
Closes-Bug: #1379811