]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoDrop RpcProxy usage from bigswitch plugin
Russell Bryant [Thu, 20 Nov 2014 22:22:41 +0000 (22:22 +0000)]
Drop RpcProxy usage from bigswitch plugin

This patch drops the usage of the RpcProxy compatibility class from
the bigswitch plugin.  The equivalent usage of oslo.messaging APIs is
now used instead.

Note that there is one very minor functional change included.  The
previous code set the base version to '1.1'.  It should be '1.0'.  The
proper pattern to use is to set the base version on the client side to
be the initial version of the API (X.0).  Then, any methods that
require a newer version need to specify it.  In this case, verison
'1.1' was the security group methods, and those specify '1.1' as you
would expect.

Part of blueprint drop-rpc-compat.

Change-Id: I695d2a26db9c01b0be65b11cd4e4063567b5f20d

10 years agoDrop RpcProxy usage from VPNaaS code
Russell Bryant [Wed, 19 Nov 2014 17:32:38 +0000 (17:32 +0000)]
Drop RpcProxy usage from VPNaaS code

Drop the usage of the RpcProxy compatibility class from the VPNaaS
code.  The equivalent direct usage of oslo.messaging APIs is now used
instead.

Part of blueprint drop-rpc-compat.

Change-Id: I4ff0bfe0b5e909bfe088f4059d85aa6366526dad

10 years agoDrop RpcProxy usage from metering_agent
Russell Bryant [Tue, 18 Nov 2014 20:25:12 +0000 (20:25 +0000)]
Drop RpcProxy usage from metering_agent

Drop one more use of the RpcProxy compatibility class in favor of
direct use of oslo.messaging APIs.

Part of blueprint drop-rpc-compat.

Change-Id: I3c68aa246d88447f793aa9890f10f5043a41338d

10 years agoDrop RpcProxy usage from LBaaS code
Russell Bryant [Tue, 18 Nov 2014 16:50:31 +0000 (16:50 +0000)]
Drop RpcProxy usage from LBaaS code

Update the LBaaS code to stop using the RpcProxy compatibility class.
The equivalent direct usage of oslo.messaging APIs are now used
instead.

Part of blueprint drop-rpc-compat.

Change-Id: I381394507e4f2daf6d774f70087fef8833c9bab5

10 years agoMerge "Drop RpcProxy usage from FWaaS code"
Jenkins [Thu, 20 Nov 2014 20:10:25 +0000 (20:10 +0000)]
Merge "Drop RpcProxy usage from FWaaS code"

10 years agoMerge "Drop RpcProxy usage from neutron.agent.rpc.PluginApi"
Jenkins [Thu, 20 Nov 2014 20:10:10 +0000 (20:10 +0000)]
Merge "Drop RpcProxy usage from neutron.agent.rpc.PluginApi"

10 years agoMerge "linuxbridge-agent: make vxlan unicast check more efficent"
Jenkins [Thu, 20 Nov 2014 20:09:28 +0000 (20:09 +0000)]
Merge "linuxbridge-agent: make vxlan unicast check more efficent"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Thu, 20 Nov 2014 20:09:03 +0000 (20:09 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Ignore top-level hidden dirs/files by default"
Jenkins [Thu, 20 Nov 2014 20:08:46 +0000 (20:08 +0000)]
Merge "Ignore top-level hidden dirs/files by default"

10 years agoMerge "Check for default sec-group made case insensitive"
Jenkins [Thu, 20 Nov 2014 19:45:51 +0000 (19:45 +0000)]
Merge "Check for default sec-group made case insensitive"

10 years agoMerge "Update i18n translation for neutron.notifiers log msg's"
Jenkins [Thu, 20 Nov 2014 19:35:30 +0000 (19:35 +0000)]
Merge "Update i18n translation for neutron.notifiers log msg's"

10 years agoMerge "Update i18n translation for neutron.common/debug log msg's"
Jenkins [Thu, 20 Nov 2014 19:24:33 +0000 (19:24 +0000)]
Merge "Update i18n translation for neutron.common/debug log msg's"

10 years agoMerge "Big Switch: Send notification after port update"
Jenkins [Thu, 20 Nov 2014 18:06:51 +0000 (18:06 +0000)]
Merge "Big Switch: Send notification after port update"

10 years agoCheck for default sec-group made case insensitive
abhishek.talwar [Tue, 18 Nov 2014 09:50:51 +0000 (15:20 +0530)]
Check for default sec-group made case insensitive

Currently creating another security group with name
"default" is not allowed, however we can create
another security group with name "DEFAULT"
(or any other CASE pattern).

When trying to boot a VM without specifying
a security group it should always pick the
"default" security group. However, if another
security group of the name DEFAULT is present,
the VM gets associated with the wrong
security group (i.e DEFAULT and not default).

So, updated the code so that a security group
with name DEFAULT (or any other case pattern)
is not allowed.
Closes-Bug: #1384505

Change-Id: I3bc4e48cf723bcf74e098d7ef66df0333f6a8686

10 years agoMerge "Use a string multiplier instead of 59 repetitions"
Jenkins [Thu, 20 Nov 2014 09:23:16 +0000 (09:23 +0000)]
Merge "Use a string multiplier instead of 59 repetitions"

10 years agoMerge "Fix a copy/pasted test mistake"
Jenkins [Thu, 20 Nov 2014 08:53:53 +0000 (08:53 +0000)]
Merge "Fix a copy/pasted test mistake"

10 years agoMerge "Drop test code copied from nova"
Jenkins [Thu, 20 Nov 2014 08:53:40 +0000 (08:53 +0000)]
Merge "Drop test code copied from nova"

10 years agoMerge "Drop several uses of RpcCallback"
Jenkins [Thu, 20 Nov 2014 08:53:25 +0000 (08:53 +0000)]
Merge "Drop several uses of RpcCallback"

10 years agoMerge "Add some basic rpc api docs"
Jenkins [Thu, 20 Nov 2014 08:45:13 +0000 (08:45 +0000)]
Merge "Add some basic rpc api docs"

10 years agoMerge "Drop RpcCallback usage from DhcpRpcCallback"
Jenkins [Thu, 20 Nov 2014 08:44:59 +0000 (08:44 +0000)]
Merge "Drop RpcCallback usage from DhcpRpcCallback"

10 years agoMerge "Fix a race condition adding a security group rule"
Jenkins [Thu, 20 Nov 2014 07:55:39 +0000 (07:55 +0000)]
Merge "Fix a race condition adding a security group rule"

10 years agoUpdate i18n translation for neutron.notifiers log msg's
Gary Kotton [Tue, 11 Nov 2014 13:28:21 +0000 (05:28 -0800)]
Update i18n translation for neutron.notifiers log msg's

Validate that hacking rules apply to directories:
 - neutron/notifiers
 - neutron/openstack (this is already 'clean')

Change-Id: I37b8c45e20d2f59e4e9f5d80d5dc87f19a7a8b3a
Partial-bug: #1320867

10 years agoUpdate i18n translation for neutron.common/debug log msg's
Gary Kotton [Tue, 11 Nov 2014 13:19:19 +0000 (05:19 -0800)]
Update i18n translation for neutron.common/debug log msg's

Validate that hacking rules apply to directories:
    - neutron/common
    - neutron/hacking
    - neutron/debug
    - neutron/locale

Change-Id: I177f5fa5fb7cfdcf332949933aa4bd755a90bb94
Partial-bug: #1320867

10 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

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

10 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"

10 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"

10 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"

10 years agoFix a race condition adding a security group rule
Brian Haley [Wed, 19 Nov 2014 17:10:57 +0000 (12:10 -0500)]
Fix a race condition adding a security group rule

setup_port_filters() needs to grab self.devices_to_refilter
before it calls prepare_devices_filter(), else it could skip
processing a device if an RPC arrives while it's processing
new devices.  That device will now be handled the next time
it's called.

Bug introduced in commit 3046c4ae22b1

Change-Id: Ib2f460cc095bbea8f9c767dcb9b4d4b66f1a7811
Closes-Bug: 1393925

10 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"

10 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)"

10 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"

10 years agoDrop RpcProxy usage from FWaaS code
Russell Bryant [Tue, 18 Nov 2014 14:46:06 +0000 (14:46 +0000)]
Drop RpcProxy usage from FWaaS code

This patch removes the usage of the RpcProxy compatibility class from
the FWaaS code.  The equivalent direct usage of oslo.messaging APIs
are now used instead.

Part of blueprint drop-rpc-compat.

Change-Id: I1bab4dcd376d4e9684fee1edc97fd29a61ba38de

10 years agoDrop RpcProxy usage from neutron.agent.rpc.PluginApi
Russell Bryant [Fri, 14 Nov 2014 14:21:05 +0000 (14:21 +0000)]
Drop RpcProxy usage from neutron.agent.rpc.PluginApi

This patch removes the usage of the RpcProxy compatibility class from
the neutron.agent.rpc.PluginApi class.  The equivalent use of
oslo.messaging APIs have been put in place instead.  This simple
conversion had a pretty wide impact on unit tests, as well.

The security groups API was converted in this patch as well.  It was
necessary because the security group class is used as a mixin, so it
must be implemented the same way.  Unfortunately, the way this is used
as a mix-in is not consistent, so for now it's only conditionally
converted.

Finally, some other miscellaneous plugin specific interfaces were
converted as well.  Again, these were methods mixed-in for certain
plugins.

Note that there's one very minor functional difference in this patch.
The previous code set the base version to be '1.1'.  The right pattern
is for this to be set to '1.0'.  This version is the default version
specified by the client, telling the server that it must implement at
least this version to satisfy the request.  The default should be
'1.0' and methods that require higher than that should specify it.
From looking at other parts of the code, '1.0' vs '1.1' is not
actually important, as '1.1' was actually the addition of some
security group methods defined elsewhere.  The correction is more
about establishing the right pattern to follow.

Change-Id: I391c01e79943ef179d815ea602253720925ccce1

10 years agoFix a copy/pasted test mistake
Russell Bryant [Mon, 17 Nov 2014 21:33:06 +0000 (21:33 +0000)]
Fix a copy/pasted test mistake

Fix a minor test mistake that was copied around a few times.  In mock
setup, the intention was to only return a value of the rpc method used
was a 'call', not 'cast'.  Unfortunately, the variable checked was
method instead of rpc_method, so this expected return was always set
to None.

This also points out that what's being tested here isn't what *really*
was intended.  It ends up testing that the code returns what we mocked
it to return, which isn't all that useful.  However, at least with
this fix it's a bit more clear what it's trying to do.

Change-Id: I18e85aa66f83331318177d70cbae2468ff8bb57d

10 years agoDrop test code copied from nova
Russell Bryant [Mon, 17 Nov 2014 20:14:04 +0000 (20:14 +0000)]
Drop test code copied from nova

Drop a couple of lines of test code that originated in nova and got
copied into Neutron.  These lines are meaningless in Neutron and can
be removed.

Change-Id: Ic7c174ba0671ddd4a9403b74fa42e7944fe74145

10 years agoDrop several uses of RpcCallback
Russell Bryant [Thu, 13 Nov 2014 21:31:10 +0000 (21:31 +0000)]
Drop several uses of RpcCallback

This patch drops several uses of the RpcCallback compatibility class.
All of these were trivial and straight forward conversions so I
batched them up.

There are still several other uses of RpcCallback, but the conversions
are were not necessarily trivial, and may be broken in one way or
another, so I wanted to address them separately.  In particular, the
use of mixin classes means that there could be cases where the version
declaration is being stepped on, so they need to be investigated more
closely.

Part of blueprint drop-rpc-compat.

Change-Id: I0977aee863d4fcc6a14a025215c6e41fe38a87f0

10 years agoAdd some basic rpc api docs
Russell Bryant [Wed, 12 Nov 2014 21:37:24 +0000 (21:37 +0000)]
Add some basic rpc api docs

The devref docs had a placeholder file for rpc API docs.  Now that
both a client side and server side interface have been converted from
the rpc compat layer to oslo.messaging APIs, add some docs that give
an overview of what the client and server sides look like.

Also include a section that describes the code layout of where you can
find client and server api implementations in the neutron code base.
It starts by discussing the DHCP agent related APIs.

Part of blueprint drop-rpc-compat.

Change-Id: Ib391958252077365a81bcb881ab27a078f71fdec

10 years agoDrop RpcCallback usage from DhcpRpcCallback
Russell Bryant [Wed, 12 Nov 2014 18:33:45 +0000 (18:33 +0000)]
Drop RpcCallback usage from DhcpRpcCallback

Drop the usage of the RpcCallback compatibility class from
DhcpRpcCallback.

Part of blueprint drop-rpc-compat.

Change-Id: I7c4654455c15c4a545c8b19bfcbf617e6d6593d6

10 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

10 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"

10 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"

10 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

10 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"

10 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"

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

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

10 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

10 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

10 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

10 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"

10 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"

10 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"

10 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

10 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"

10 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"

10 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"

10 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"

10 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"

10 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

10 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

10 years agoUse a string multiplier instead of 59 repetitions
Kevin Benton [Tue, 18 Nov 2014 15:51:08 +0000 (07:51 -0800)]
Use a string multiplier instead of 59 repetitions

A recently added test case added a long string of repeated 1's
which required a #noqa flag. A string multiplier represents the
same thing in a much shorter fashion.

Change-Id: I2f4d5568b3e132781fc51bd2e9b3efd44c549689

10 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

10 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

10 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"

10 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"

10 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

10 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"

10 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"

10 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

10 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

10 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

10 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

10 years agolinuxbridge-agent: make vxlan unicast check more efficent
Darragh O'Reilly [Mon, 17 Nov 2014 10:20:58 +0000 (10:20 +0000)]
linuxbridge-agent: make vxlan unicast check more efficent

A list with the full range of vxlan VNIs (1 to 2**24) was using
over 300MB of memory. This patch uses xrange instead of range.

Closes-Bug: #1393362
Change-Id: I21ccab758e7911712690fd5e732f64361e809264

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

10 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

10 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

10 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

10 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

10 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

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

10 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

10 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"

10 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

10 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

10 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"

10 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

10 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

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

10 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"

10 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"

10 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"

10 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"

10 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"

10 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

10 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"

10 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"

10 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

10 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

10 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"