]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Thu, 20 Nov 2014 06:08:36 +0000 (06:08 +0000)]
Imported Translations from Transifex

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

Change-Id: I23309c925c4be60fffc5919c2c9c6cf096022001

9 years agoMerge "Fix hostname regex pattern"
Jenkins [Thu, 20 Nov 2014 01:41:30 +0000 (01:41 +0000)]
Merge "Fix hostname regex pattern"

9 years agoMerge "Drop RpcProxy usage from PluginReportStateAPI"
Jenkins [Wed, 19 Nov 2014 23:31:52 +0000 (23:31 +0000)]
Merge "Drop RpcProxy usage from PluginReportStateAPI"

9 years agoMerge "Correct raw table regex in test_security_groups_rpc"
Jenkins [Wed, 19 Nov 2014 22:31:20 +0000 (22:31 +0000)]
Merge "Correct raw table regex in test_security_groups_rpc"

9 years agoMerge "Update i18n translation for neutron.api log msg's"
Jenkins [Wed, 19 Nov 2014 22:20:05 +0000 (22:20 +0000)]
Merge "Update i18n translation for neutron.api log msg's"

9 years agoMerge "Subnet delete for IPv6 SLAAC should not require prior port disassoc"
Jenkins [Wed, 19 Nov 2014 19:20:37 +0000 (19:20 +0000)]
Merge "Subnet delete for IPv6 SLAAC should not require prior port disassoc"

9 years agoMerge "ofagent: Remove obsolete bridge_mappings (agent side)"
Jenkins [Wed, 19 Nov 2014 19:20:23 +0000 (19:20 +0000)]
Merge "ofagent: Remove obsolete bridge_mappings (agent side)"

9 years agoMerge "Moved out common testcases from test_type_vxlan.py"
Jenkins [Wed, 19 Nov 2014 19:20:08 +0000 (19:20 +0000)]
Merge "Moved out common testcases from test_type_vxlan.py"

9 years agoDrop RpcProxy usage from PluginReportStateAPI
Russell Bryant [Tue, 11 Nov 2014 19:23:15 +0000 (14:23 -0500)]
Drop RpcProxy usage from PluginReportStateAPI

Drop the usage of the RpcProxy compatibility class from the
PluginReportStateAPI rpc client class.  It now uses the appropriate
oslo.messaging APIs directly, instead.

Part of blueprint drop-rpc-compat.

Change-Id: I7101331a556bd0a5c8f782ae6cb4103151e6c45c

9 years agoMerge "Convert all incoming protocol numbers to string"
Jenkins [Wed, 19 Nov 2014 16:40:03 +0000 (16:40 +0000)]
Merge "Convert all incoming protocol numbers to string"

9 years agoMerge "Use correct base class for unit tests for ML2 drivers"
Jenkins [Wed, 19 Nov 2014 15:24:37 +0000 (15:24 +0000)]
Merge "Use correct base class for unit tests for ML2 drivers"

9 years agoFix hostname regex pattern
John Perkins [Mon, 6 Oct 2014 21:24:57 +0000 (16:24 -0500)]
Fix hostname regex pattern

Current hostname_pattern regex complexity grows exponentially
when given a string of just digits, which can be exploited to
cause neutron-server to freeze.

Change-Id: I886c6d883a9cb0acd9908495eec50bf0411d8ba8
Closes-bug: #1378450

9 years agoMerge "Switch run-time import to using importutils.import_module"
Jenkins [Wed, 19 Nov 2014 11:49:20 +0000 (11:49 +0000)]
Merge "Switch run-time import to using importutils.import_module"

9 years agoMerge "Catch DBReferenceError exception during binding a router"
Jenkins [Wed, 19 Nov 2014 10:59:13 +0000 (10:59 +0000)]
Merge "Catch DBReferenceError exception during binding a router"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 19 Nov 2014 10:11:48 +0000 (10:11 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Updated from global requirements"
Jenkins [Wed, 19 Nov 2014 09:16:10 +0000 (09:16 +0000)]
Merge "Updated from global requirements"

9 years agoUpdate i18n translation for neutron.api log msg's
Gary Kotton [Mon, 10 Nov 2014 16:19:06 +0000 (08:19 -0800)]
Update i18n translation for neutron.api log msg's

Validate that hacking rules apply to directory neutron/api

Change-Id: Idd54964dbb3a48505c20117c79ce57913a7f1c12
Partial-bug: #1320867

9 years agoCatch DBReferenceError exception during binding a router
Eugene Nikanorov [Mon, 17 Nov 2014 16:49:09 +0000 (20:49 +0400)]
Catch DBReferenceError exception during binding a router

In some cases (Concurrent API tests) router can be deleted
before it is bound to an agent by scheduler.
That may lead to traces on L3 agent side returned via RPC.
Need to handle this case in more graceful way.

Change-Id: Ic52c26ace7f32a615150bd6098b244ae0b98250c
Closes-Bug: #1385257

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 19 Nov 2014 06:08:17 +0000 (06:08 +0000)]
Imported Translations from Transifex

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

Change-Id: Ia8c01192a4c572a18bdcf987c188febb0c0a42f7

9 years agoMerge "BSN: Set inconsistency record on delete failure"
Jenkins [Wed, 19 Nov 2014 04:41:11 +0000 (04:41 +0000)]
Merge "BSN: Set inconsistency record on delete failure"

9 years agoMerge "Drop RpcProxy usage from MetadataPluginApi"
Jenkins [Wed, 19 Nov 2014 03:04:17 +0000 (03:04 +0000)]
Merge "Drop RpcProxy usage from MetadataPluginApi"

9 years agoMerge "Drop usage of RpcProxy from L3PluginApi"
Jenkins [Wed, 19 Nov 2014 03:01:39 +0000 (03:01 +0000)]
Merge "Drop usage of RpcProxy from L3PluginApi"

9 years agoofagent: Remove obsolete bridge_mappings (agent side)
YAMAMOTO Takashi [Mon, 20 Oct 2014 05:44:13 +0000 (14:44 +0900)]
ofagent: Remove obsolete bridge_mappings (agent side)

For ofagent, it has been superseded by physical_interface_mappings
and was planned to be removed in Kilo.

Related: blueprint ofagent-physical-interface-mappings
Change-Id: I68c7e9991a3dc14ccad709ed1a438c7c45420dd6

9 years agoMerge "Execute udevadm on other linux installs"
Jenkins [Tue, 18 Nov 2014 21:37:13 +0000 (21:37 +0000)]
Merge "Execute udevadm on other linux installs"

9 years agoMerge "Cleanup and refactor methods in unit/test_security_groups_rpc"
Jenkins [Tue, 18 Nov 2014 20:30:30 +0000 (20:30 +0000)]
Merge "Cleanup and refactor methods in unit/test_security_groups_rpc"

9 years agoMerge "Update i18n translation for neutron.extension log msg's"
Jenkins [Tue, 18 Nov 2014 20:30:14 +0000 (20:30 +0000)]
Merge "Update i18n translation for neutron.extension log msg's"

9 years agoMerge "Update i18n translation for neutron.db log msg's"
Jenkins [Tue, 18 Nov 2014 20:29:57 +0000 (20:29 +0000)]
Merge "Update i18n translation for neutron.db log msg's"

9 years agoMerge "Include call to delete_subnet from delete_network at DB level"
Jenkins [Tue, 18 Nov 2014 20:27:04 +0000 (20:27 +0000)]
Merge "Include call to delete_subnet from delete_network at DB level"

9 years agoDrop RpcProxy usage from MetadataPluginApi
Russell Bryant [Fri, 7 Nov 2014 21:10:09 +0000 (22:10 +0100)]
Drop RpcProxy usage from MetadataPluginApi

Drop the usage of the RpcProxy compatibility class from
MetadataPluginApi.  The equivalent direct usage of oslo.messaging APIs
are used instead.

Part of blueprint drop-rpc-compat.

Change-Id: I1764dd715237bc76dae2789121850f69b8f82888

9 years agoDrop usage of RpcProxy from L3PluginApi
Russell Bryant [Fri, 7 Nov 2014 15:30:15 +0000 (16:30 +0100)]
Drop usage of RpcProxy from L3PluginApi

Drop the usage of the RpcProxy compatibility class from the
L3PluginApi.  The equivalent direct usage of the oslo.messaging APIs
are now being used instead.

Part of blueprint drop-rpc-compat.

Change-Id: I6639d1aa8acca8c0544020e28489e71f3d5d2955

9 years agoConvert all incoming protocol numbers to string
Ann Kamyshnikova [Mon, 10 Nov 2014 14:05:54 +0000 (17:05 +0300)]
Convert all incoming protocol numbers to string

PostgreSQL is more sensitive for types than MySQL when it selects
something from columns in database. So it fails when it tries to
select from string field comparing with integer value.

Added unit test to verify conversion of protocol numbers to
strings.

Closes-bug:#1381379

Change-Id: I0a29595403a07c66888871088d5549705a097f68

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 18 Nov 2014 11:32:10 +0000 (11:32 +0000)]
Updated from global requirements

Change-Id: Ie86ce0bd15761b237385007a7905ac1317f0bfff

9 years agoMerge "Update i18n translation for neutron.cmd log msg's"
Jenkins [Tue, 18 Nov 2014 11:14:27 +0000 (11:14 +0000)]
Merge "Update i18n translation for neutron.cmd log msg's"

9 years agoMerge "Update i18n translation for neutron.agents log msg's"
Jenkins [Tue, 18 Nov 2014 11:12:55 +0000 (11:12 +0000)]
Merge "Update i18n translation for neutron.agents log msg's"

9 years agoCorrect raw table regex in test_security_groups_rpc
Cedric Brandily [Tue, 18 Nov 2014 09:59:31 +0000 (10:59 +0100)]
Correct raw table regex in test_security_groups_rpc

Currently in test_security_groups_rpc, raw table regex uses nat table
chains regex but raw table chains[1] is a strict subset of nat table
chains[2] so a more strict regex should be used as raw table chains
regex.

[1] OUTPUT, PREROUTING
[2] OUTPUT, POSTROUTING, PREROUTING, float-snat, snat

Change-Id: I6f32cda917c2f882f5fd17b6fa105def5572cdef

9 years agoMerge "enable F812 check for flake8"
Jenkins [Tue, 18 Nov 2014 00:56:20 +0000 (00:56 +0000)]
Merge "enable F812 check for flake8"

9 years agoMerge "Fix L2 agent does not remove unused ipset set"
Jenkins [Tue, 18 Nov 2014 00:35:35 +0000 (00:35 +0000)]
Merge "Fix L2 agent does not remove unused ipset set"

9 years agoBSN: Set inconsistency record on delete failure
Kevin Benton [Thu, 2 Oct 2014 18:26:50 +0000 (11:26 -0700)]
BSN: Set inconsistency record on delete failure

Set a bad value in the consistency DB on a delete
failure so a sync is triggered the next time the backend
servers become available.

This fixes the issue where the backend servers are unavailable
when an object is deleted from ML2 but not deleted from the
backend.

Closes-Bug: #1377350
Change-Id: I24713a03af4d3499645241f900de1f572689c235

9 years agoSubnet delete for IPv6 SLAAC should not require prior port disassoc
Dane LeBlanc [Mon, 17 Nov 2014 15:40:04 +0000 (10:40 -0500)]
Subnet delete for IPv6 SLAAC should not require prior port disassoc

With the current Neutron implementation, a subnet cannot be deleted
until all associated IP addresses have been remove from ports (via
port update) or the associated ports/VMs have been deleted.

In the case of SLAAC-enabled subnets, however, it's not feasible to
require removal of SLAAC-generated addresses individually from each
associated port before deleting a subnet because of the multicast
nature of RA messages. For SLAAC-enabled subnets, the processing of
subnet delete requests needs to be changed so that these subnets will
be allowed to be deleted, and all ports get disassociated from their
corresponding SLAAC IP address, when there are ports existing on
the SLAAC subnet.

Change-Id: I281f5a1553248e09174dc49d0a42aef4b5c44bee
Closes-Bug: 1393435

9 years agoFix client side versions in dhcp rpc API
Russell Bryant [Fri, 7 Nov 2014 14:31:15 +0000 (15:31 +0100)]
Fix client side versions in dhcp rpc API

The dhcp rpc API has two version (1.0 and 1.1).  The proper way to use
versioning for this is to only specify '1.1' from the client side when
you require that the remote side implements at least version '1.1' for
the method to work.  Otherwise, '1.0' should still be specified.  The
previous code specified '1.1' always.

Related to blueprint drop-rpc-compat.

Change-Id: I9468f8f67d80c5d064137f917fc04f9335a3ed55

9 years agoDrop usage of RpcProxy from DhcpPluginApi
Russell Bryant [Fri, 7 Nov 2014 14:11:42 +0000 (15:11 +0100)]
Drop usage of RpcProxy from DhcpPluginApi

Drop the usage of the RpcProxy compatibility class from the
DhcpPluginApi RPC client class.  The implementation has been updated
to use the appropariate APIs from oslo.messaging directly.

Part of blueprint drop-rpc-compat.

Change-Id: I81bfd761707c4c587b12877668c4399efe3d652e

9 years agoMerge "Decrease policy logging verbosity"
Jenkins [Mon, 17 Nov 2014 09:28:55 +0000 (09:28 +0000)]
Merge "Decrease policy logging verbosity"

9 years agoMoved out common testcases from test_type_vxlan.py
Romil Gupta [Sun, 16 Nov 2014 17:35:35 +0000 (09:35 -0800)]
Moved out common testcases from test_type_vxlan.py

This patch-set will refactor the test_type_vxlan.py and test_type_gre.py.

We need to add testcases for TunnelRpcCallbackMixin() so better we
should move common test cases from test_type_vxlan.py to test_type_tunnel.py and
add testcases for TunnelRpcCallbackMixin() into it.

Partial-Bug: #1381071
Change-Id: I81f8930cf665ccd89c03f0bd2199ce5d1d9dff65

9 years agoUpdate i18n translation for neutron.extension log msg's
Gary Kotton [Mon, 10 Nov 2014 15:39:40 +0000 (07:39 -0800)]
Update i18n translation for neutron.extension log msg's

Validate that hacking rules apply to directory neutron/extensions

Change-Id: Ifbc97ae2b5670fbdf22c7d0ae48f91a7776daf01
Partial-bug: #1320867

9 years agoUpdate i18n translation for neutron.db log msg's
Gary Kotton [Mon, 10 Nov 2014 15:29:58 +0000 (07:29 -0800)]
Update i18n translation for neutron.db log msg's

Validate that hacking rules apply to directory neutron/db
Partial-bug: #1320867

Change-Id: Iffdaa28bf5d5d503623f1f6dec4a8003f48974d8

9 years agoUpdate i18n translation for neutron.cmd log msg's
Gary Kotton [Mon, 10 Nov 2014 15:07:34 +0000 (07:07 -0800)]
Update i18n translation for neutron.cmd log msg's

Validate that hacking rules apply to directory neutron/cmd

Change-Id: I7fbeba035e8a7f7602fef96a0e10cec5298b08f3
Partial-bug: #1320867

9 years agoUpdate i18n translation for neutron.agents log msg's
Gary Kotton [Sat, 17 May 2014 06:48:21 +0000 (23:48 -0700)]
Update i18n translation for neutron.agents log msg's

Don't translate debug level logs and enforce log hints
Our translation policy
(https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation) calls
for not translating debug level logs. This is to help prioritize log
translation. Furthermore translation has a performance overhead, even if
the log isn't used (since neutron doesn't support lazy translation yet).

NOTE: this is done on a directory by directory basis to ensure that we
do not have too many conflicts and rebases.

Add a local hacking rule to enforce this.

This patch set enforces the directory neutron/agents

Partial-bug: #1320867

Change-Id: I4bd562e5138c2d2850072440aa121f27e902463a

9 years agoMerge "switch to oslo.serialization"
Jenkins [Sat, 15 Nov 2014 00:41:56 +0000 (00:41 +0000)]
Merge "switch to oslo.serialization"

9 years agoenable F812 check for flake8
Mark McClain [Thu, 12 Jun 2014 01:23:53 +0000 (21:23 -0400)]
enable F812 check for flake8

The change removes the shadowed variable in list comprehensions and
enables the F812 check

Change-Id: If7b4d6f198795565fe0d8e7524b73555e310cd14
Partial-Bug: 1329017

9 years agoMerge "Drop neutron.common.rpc.MessagingTimeout"
Jenkins [Fri, 14 Nov 2014 22:03:44 +0000 (22:03 +0000)]
Merge "Drop neutron.common.rpc.MessagingTimeout"

9 years agoenable F811 check for flake8
Mark McClain [Thu, 12 Jun 2014 01:23:53 +0000 (21:23 -0400)]
enable F811 check for flake8

This change incorporates two cleanups that do not change logic:
- Removes the shadowed unused imports by using the proper oslo.config import
mechanism
- duplicate unit tests have been removed
- duplicate unit test names have been corrected to reflect true test
  nature

Change-Id: Iad7a3373c1f787a2078b932c5f40bb718ad76767
Partial-Bug: 1329017

9 years agoDecrease policy logging verbosity
Eugene Nikanorov [Fri, 24 Oct 2014 14:40:15 +0000 (18:40 +0400)]
Decrease policy logging verbosity

Log enforced rules only in case policy check has failed.

Change-Id: I1fe8cbc1c9b5084b9cef6aa8329780512d8c7ec2
Closes-Bug: #1385266

9 years agoMerge "Remove neutron.common.rpc.RemoteError"
Jenkins [Fri, 14 Nov 2014 15:07:14 +0000 (15:07 +0000)]
Merge "Remove neutron.common.rpc.RemoteError"

9 years agoCleanup and refactor methods in unit/test_security_groups_rpc
Miguel Angel Ajo [Fri, 5 Sep 2014 14:58:34 +0000 (16:58 +0200)]
Cleanup and refactor methods in unit/test_security_groups_rpc

We had strings repeating all along the code which already were
in constant form, those have been refactored. Also global configuration
changes are now handled by functions to enhance code readability.

Change-Id: I0d4e508cda2537abe431f04a278ba2e1d2f5d97d

9 years agoswitch to oslo.serialization
gordon chung [Thu, 9 Oct 2014 18:17:43 +0000 (14:17 -0400)]
switch to oslo.serialization

jsonutils has been moved to the oslo.serialization library. in this
patch we bring in oslo.serialization and switch all references to
the new library.

Closes-Bug: #1385353
Change-Id: I2898c4040abb2f208959049708e7bc093cfbaba7

9 years agoMerge "Resolving some spelling mistakes"
Jenkins [Thu, 13 Nov 2014 23:58:03 +0000 (23:58 +0000)]
Merge "Resolving some spelling mistakes"

9 years agoMerge "Cisco VPNaaS and L3 router plugin integration"
Jenkins [Thu, 13 Nov 2014 23:50:48 +0000 (23:50 +0000)]
Merge "Cisco VPNaaS and L3 router plugin integration"

9 years agoMerge "Remove neutron.common.rpc.RPCException"
Jenkins [Thu, 13 Nov 2014 23:39:03 +0000 (23:39 +0000)]
Merge "Remove neutron.common.rpc.RPCException"

9 years agoMerge "Updated policy module from oslo-incubator"
Jenkins [Thu, 13 Nov 2014 18:56:48 +0000 (18:56 +0000)]
Merge "Updated policy module from oslo-incubator"

9 years agoMerge "Fix missing allowed command in openvswitch xenapi agent"
Jenkins [Thu, 13 Nov 2014 16:05:16 +0000 (16:05 +0000)]
Merge "Fix missing allowed command in openvswitch xenapi agent"

9 years agoMerge "Update default value for agent_required attribute"
Jenkins [Thu, 13 Nov 2014 16:02:06 +0000 (16:02 +0000)]
Merge "Update default value for agent_required attribute"

9 years agoUpdated policy module from oslo-incubator
Elena Ezhova [Thu, 18 Sep 2014 07:53:24 +0000 (11:53 +0400)]
Updated policy module from oslo-incubator

Common policy has not been synced with oslo-incubator for a
long time and is seriously outdated.

This change pulls in fresh code from oslo-incubator which
introduces the Enforcer class to replace the old check function.

Rewrite neutron.policy using naming conventions and approach
that was set in Nova and amend related unit tests.
Remove neutron.common.exceptions.PolicyNotAuthorized and switch
to neutron.openstack.common.policy.PolicyNotAuthorized.
Drop Neutron specific policy_file option since now it is defined
in oslo-incubator policy module.

Change log:
4ca5091 Fixes nits in module policy
262fc82 Correct default rule name for policy.Enforcer
9e8b9f6 Minor fixes in policy module
6c706c5 Delete graduated serialization files
5d40e14 Remove code that moved to oslo.i18n
aebb58f Fix typo to show correct log message
bb410d9 Use MultiStrOpt for policy_dirs
33f44bf Add support for policy configration directories
2b966f9 Fix deletion of cached file for policy enforcer
238e601 Make policy debug logging less verbose
fe3389e Improve help strings
15722f1 Adds a flag to determine whether to reload the rules in policy
5d1f15a Documenting policy.json syntax
fcf517d Update oslo log messages with translation domains
e038d89 Fix policy tests for parallel testing
0da5de6 Allow policy.json resource vs constant check
e4b2334 Replaces use of urlutils with six in policy module
8b2b0b7 Use hacking import_exceptions for gettextutils._
0d8f18b Use urlutils functions instead of urllib/urllib2
12bcdb7 Remove vim header
9ef9fec Use six.string_type instead of basestring
4bfb7a2 Apply six for metaclass
1538c80 ConfigFileNotFoundError with proper argument
33533b0 Keystone user can't perform revoke_token
64bb5e2 Fix wrong argument in openstack common policy
b7edc99 Fix missing argument bug in oslo common policy
3626b6d Fix policy default_rule issue
7bf8ee9 Allow use of hacking 0.6.0 and enable new checks
e4ac367 Fix missing argument bug in oslo common policy
1a2df89 Enable H302 hacking check
7119e29 Enable hacking H404 test.
6d27681 Enable H306 hacking check.
1091b4f Reduce duplicated code related to policies

Closes-Bug: #1288178
Change-Id: I87ee30e2b64ec6b07faa84a231fd5f7eb925d501

9 years agoMerge "fix event_send for re-assign floating ip"
Jenkins [Thu, 13 Nov 2014 05:34:46 +0000 (05:34 +0000)]
Merge "fix event_send for re-assign floating ip"

9 years agoMerge "Fix for FIPs duplicated across hosts for DVR"
Jenkins [Thu, 13 Nov 2014 03:12:01 +0000 (03:12 +0000)]
Merge "Fix for FIPs duplicated across hosts for DVR"

9 years agoResolving some spelling mistakes
Raildo Mascena [Mon, 3 Nov 2014 14:04:23 +0000 (11:04 -0300)]
Resolving some spelling mistakes

Just resolve some spelling mistakes in the comments

Change-Id: I6eed9fbe73d6618b474395c8ca41460cdfbe08d4
Closes-Bug: #1365088

9 years agoFix for FIPs duplicated across hosts for DVR
Michael Smith [Mon, 10 Nov 2014 23:49:14 +0000 (15:49 -0800)]
Fix for FIPs duplicated across hosts for DVR

For DVR, FIPs should be hosted on the single node
which hosts the VM assigned with the fixed_ip of the FIP.
The l3_agent should only take action on the correct FIP per
host by filtering the FIPs based on the 'host' value
of the FIP.

A recent refactor on the l3_agent moved the host filtering logic
from process_router_floating_ip_addresses() to
_get_external_device_interface_name(). The local floating_ips var
was not altered as it was before the refactor.

This resulted in network disruption across multiple hosts
since more than one namespace contained the FIP.  This problem
would only be seen in a mutli-host environment where the same
router hosting FIPs was present on more than one node.

The fix is to return the host filtering logic by adding a
call to get_floating_ips().  In addition, the unit test
test_process_router_dist_floating_ip_add() was modified to
pass two FIPs instead of one.  One FIP matches the host
of the agent, one does not.  Only one should be processed,
not two.

Change-Id: I67b19f6228af392519fff89b13283b43921552bf
Closes-bug: #1389880

9 years agoMerge "Purge use of "PRED and A or B" poor-mans-ternary"
Jenkins [Wed, 12 Nov 2014 16:55:01 +0000 (16:55 +0000)]
Merge "Purge use of "PRED and A or B" poor-mans-ternary"

9 years agoDrop neutron.common.rpc.MessagingTimeout
Russell Bryant [Thu, 6 Nov 2014 23:30:25 +0000 (00:30 +0100)]
Drop neutron.common.rpc.MessagingTimeout

Drop the last neutron.common.rpc exception mapping, MessagingHelper,
which wasn't actually used anywhere anyway.

Part of blueprint drop-rpc-compat.

Change-Id: I43b9b97accff9cc7684146076ba0b5d62302f06e

9 years agoRemove neutron.common.rpc.RemoteError
Russell Bryant [Thu, 6 Nov 2014 23:28:10 +0000 (00:28 +0100)]
Remove neutron.common.rpc.RemoteError

Remove RemoteError from neutron.common.rpc, which was just mapped
directly to oslo.messaging.RemoteError.

Part of blueprint drop-rpc-compat.

Change-Id: Ic4d7ea0adfd68eb56100e32ce0d8e59aa2aae5b1

9 years agoRemove neutron.common.rpc.RPCException
Russell Bryant [Thu, 6 Nov 2014 23:21:10 +0000 (00:21 +0100)]
Remove neutron.common.rpc.RPCException

Remove RPCException, which was just mapped directly to
oslo.messaging.MessagingException for the purposes of minimizing the
impact to the code base when moving from openstack.common.rpc to
oslo.messaging.

Part of blueprint drop-rpc-compat.

Change-Id: Idc5af503f24217fbd2d982c338434c200d025521

9 years agoCisco VPNaaS and L3 router plugin integration
Paul Michali [Wed, 24 Sep 2014 22:22:04 +0000 (18:22 -0400)]
Cisco VPNaaS and L3 router plugin integration

This completes the blueprint effort to integrate the Cisco VPNaaS
drivers with the Cisco L3 router plugin for a VPN solution that
uses an in-band Cisco CSR (versus out-of-band, as is currently).

The VPNaaS service driver is modified to no longer read router
configuration from an INI file, but instead, will query the L3
router plugin for this information. The config loading logic is
removed. The router information is transformed and passed to the
device driver for use by the REST client.

The L3 router plugin now provides two methods to provide the needed
router and hosting device info. In addition, the template and
snippets used to provision the Cisco CSR are modified to have the
needed VPN settings and to change the VRF configuration to the new
style to support VPN REST API calls with VRF info.

The VPNaaS device driver was modified to provide the VRF name as
part of the URI for several VPN REST API calls, as needed for this
solution. The device driver uses the additional VRF and interface
information that is provided by the service driver.

The unit tests were updated to reflect the usage of VRF names, and
the new logic for checking router information.

Change-Id: I6ee17f91a25db7bff3ebbeb8d482de1c31a77035
Implements: blueprint cisco-vpnaas-and-router-integration

9 years agoMerge "Remove openvswitch core plugin entry point"
Jenkins [Tue, 11 Nov 2014 12:03:34 +0000 (12:03 +0000)]
Merge "Remove openvswitch core plugin entry point"

9 years agoMerge "rootwrap config files reference deleted quantum binaries"
Jenkins [Tue, 11 Nov 2014 08:19:01 +0000 (08:19 +0000)]
Merge "rootwrap config files reference deleted quantum binaries"

9 years agoFix missing allowed command in openvswitch xenapi agent
Martins Jakubovics [Wed, 23 Jul 2014 05:24:24 +0000 (08:24 +0300)]
Fix missing allowed command in openvswitch xenapi agent

Add allowed command "ovsdb-client" to ALLOWED_CMDS list.

Change-Id: I274604229f90ba00722b1001cbc7404cd3e8070d
Closes-Bug: #1338447

9 years agoMerge "Enable assignment-from-no-return pylint check"
Jenkins [Tue, 11 Nov 2014 03:31:19 +0000 (03:31 +0000)]
Merge "Enable assignment-from-no-return pylint check"

9 years agofix event_send for re-assign floating ip
lzklibj [Tue, 21 Oct 2014 06:55:53 +0000 (23:55 -0700)]
fix event_send for re-assign floating ip

Neutron can associate a floating ip to a new port
without disassociate from original instance port.
This situation will send network changed event only
for new instance port, and that event object contains
the new instance's id.

In this case nova will update new instance's info
but not original one's in nova's database table
instance_info_caches. For nova can get new instance's
id from the above event. So in table instance_info_caches,
both original instance and new instance will have the
same floating ip in their records. And this make it
possible that, in most situation, after your re-assign
floating ip, run "nova list" will return incorrect info,
multiple instances have a same floating ip, and this may
confuse users.

Nova will sync data in table instance_info_caches, but it
may take dozens of seconds.
The new added code will send network changed event for the
original instance, and this will make nova update instance_
_info_caches table in a few seconds.

Change-Id: If3ee11535f649fc51bf1a52806008c1c5c0e73b6
Closes-Bug: 1381886

9 years agoMerge "NEC plugin: Allow to apply Packet filter on OFC router interface"
Jenkins [Tue, 11 Nov 2014 00:42:40 +0000 (00:42 +0000)]
Merge "NEC plugin: Allow to apply Packet filter on OFC router interface"

9 years agoMerge "Add assertion to test_page_reverse method"
Jenkins [Tue, 11 Nov 2014 00:40:01 +0000 (00:40 +0000)]
Merge "Add assertion to test_page_reverse method"

9 years agoMerge "Remove duplicate ensure_remove_chain method in iptables_manager"
Jenkins [Tue, 11 Nov 2014 00:34:09 +0000 (00:34 +0000)]
Merge "Remove duplicate ensure_remove_chain method in iptables_manager"

9 years agoMerge "SRIOV: Fix Wrong Product ID for Intel NIC example"
Jenkins [Tue, 11 Nov 2014 00:33:55 +0000 (00:33 +0000)]
Merge "SRIOV: Fix Wrong Product ID for Intel NIC example"

9 years agoMerge "Fix L3 HA network creation to allow user to create router"
Jenkins [Tue, 11 Nov 2014 00:25:45 +0000 (00:25 +0000)]
Merge "Fix L3 HA network creation to allow user to create router"

9 years agoMerge "Merge tag '2014.2'"
Jenkins [Mon, 10 Nov 2014 22:25:20 +0000 (22:25 +0000)]
Merge "Merge tag '2014.2'"

9 years agoRemove openvswitch core plugin entry point
Cedric Brandily [Mon, 10 Nov 2014 10:43:09 +0000 (11:43 +0100)]
Remove openvswitch core plugin entry point

The openvswitch core plugin has been removed but not its associated
"neutron.core_plugins" entry point. This change removes it from
setup.cfg.

Change-Id: I79f7c334cdeb0f4d0d68743734f69c0ec8523467
Related-Bug: #1323729
Closes-Bug: #1391326

9 years agorootwrap config files reference deleted quantum binaries
Cedric Brandily [Mon, 10 Nov 2014 17:50:38 +0000 (18:50 +0100)]
rootwrap config files reference deleted quantum binaries

dhcp and l3 rootwrap filter files contain reference to the deleted
binary quantum-ns-metadata-proxy. This change removes these obsolete
filters.

Change-Id: Iad4772752d74a1c0535144b5faf9a1f8ae89f6a3
Closes-Bug: #1391256

9 years agoMerge "Replace "nova" entries in iptables_manager with "neutron""
Jenkins [Mon, 10 Nov 2014 06:12:33 +0000 (06:12 +0000)]
Merge "Replace "nova" entries in iptables_manager with "neutron""

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 10 Nov 2014 06:12:19 +0000 (06:12 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Updated from global requirements"
Jenkins [Mon, 10 Nov 2014 06:12:04 +0000 (06:12 +0000)]
Merge "Updated from global requirements"

9 years agoFix L3 HA network creation to allow user to create router
Sachi King [Sun, 2 Nov 2014 13:35:51 +0000 (00:35 +1100)]
Fix L3 HA network creation to allow user to create router

Update HA Network creation to use an admin context to allow Neutron
to create the tenant-less network required for the HA router when
it does not yet exist and is being created by a non-admin user.

Neutron creates these resources without a tenant so users cannot see
or modify the HA network, ports, etc.  Port creation and association
already use elivated admin contexts to allow their function when
an user attempts to create a HA L3 router.

Change-Id: I36166158a0970b8d08d6702054b11a43fb684281
Closes-Bug: #1388716

9 years agoUpdate default value for agent_required attribute
Irena Berezovsky [Sun, 2 Nov 2014 08:28:00 +0000 (10:28 +0200)]
Update default value for agent_required attribute

Update default value for agent_required under the
section [ml2_sriov] to be aligned with default config value.

Change-Id: I5903dedb2b8dc6bbda7c921ef747ffae358b3c05
Closes-Bug: 1386660

9 years agoMerge "Fix sneaky copypaste typo in ovs agent scheduler test"
Jenkins [Sun, 9 Nov 2014 08:29:42 +0000 (08:29 +0000)]
Merge "Fix sneaky copypaste typo in ovs agent scheduler test"

9 years agoSRIOV: Fix Wrong Product ID for Intel NIC example
Samer Deeb [Tue, 4 Nov 2014 11:58:19 +0000 (13:58 +0200)]
SRIOV: Fix Wrong Product ID for Intel NIC example

Some Examples and default Values of the Product ID for Intel NIC contains
Wrong Product ID that belongs to the PF product,
it should be replaced with the product ID of the VF.

Change-Id: I87291ea0458fa1ef7df1c06e17b7f9071ffb39e0
Closes-Bug: 1387152

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 9 Nov 2014 06:08:09 +0000 (06:08 +0000)]
Imported Translations from Transifex

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

Change-Id: I78ef4cad31e24dd42e1bf64cad4084887044c533

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Sun, 9 Nov 2014 00:39:32 +0000 (00:39 +0000)]
Updated from global requirements

Change-Id: I0e0f708a755dcf45e3ce51141d264d8624ec87ba

9 years agoMerge "Guard against concurrent port removal in DVR"
Jenkins [Sat, 8 Nov 2014 23:35:59 +0000 (23:35 +0000)]
Merge "Guard against concurrent port removal in DVR"

9 years agoMerge "Remove single occurrence of lost-exception warning"
Jenkins [Sat, 8 Nov 2014 23:35:44 +0000 (23:35 +0000)]
Merge "Remove single occurrence of lost-exception warning"

9 years agoMerge "neutron-db-manage finds automatically config file"
Jenkins [Fri, 7 Nov 2014 22:26:29 +0000 (22:26 +0000)]
Merge "neutron-db-manage finds automatically config file"

9 years agoPurge use of "PRED and A or B" poor-mans-ternary
Angus Lees [Thu, 31 Jul 2014 03:30:52 +0000 (13:30 +1000)]
Purge use of "PRED and A or B" poor-mans-ternary

Since python2.6, python has a proper ternary construct "A if PRED else
B".  The older idiom "PRED and A or B" has a hidden trap - when A is
itself false, the result is (unexpectedly) B.

This change removes all cases of the older construct found using a
trivial git grep " and .* or " - except one case in oslo common
code (fixed in oslo upstream).

Change-Id: I24461f4328e188c8983ad574495e11e033ec5ba4

9 years agoMerge "Validate network config (vlan)"
Jenkins [Fri, 7 Nov 2014 13:10:32 +0000 (13:10 +0000)]
Merge "Validate network config (vlan)"

9 years agoMerge "Make L2 DVR Agent start successfully without an active neutron server"
Jenkins [Fri, 7 Nov 2014 13:02:32 +0000 (13:02 +0000)]
Merge "Make L2 DVR Agent start successfully without an active neutron server"

9 years agoInclude call to delete_subnet from delete_network at DB level
Edgar Magana [Thu, 29 Aug 2013 23:28:26 +0000 (16:28 -0700)]
Include call to delete_subnet from delete_network at DB level

Removes an extra lock in bsn plugin that causes a deadlock
when delete_subnet is invoked form delete_network, agreed
with kevinbenton to remove it
Modifies a unit test to cover this change per reviewer request
Co-author amirosh

Closes-bug: #1197176

Change-Id: Ie3414848a91cc737b16b79399ae19800545e533f