]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoDrop RpcProxy usage from mlnx plugin
Russell Bryant [Fri, 21 Nov 2014 20:56:04 +0000 (20:56 +0000)]
Drop RpcProxy usage from mlnx plugin

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

Note that one test case was dropped, but only because it did not
provide any actual additional test coverage.

Also note that the base rpc version is set to '1.0' instead of '1.1'
as it was in the original code.  Setting the base to X.0 is the right
pattern.  Methods that require a newer version should specify it in
their implementation.  According to the API history comment here, the
methods in this class were not the ones changed in '1.1', so they
don't specify '1.1' as a requirement.

Part of blueprint drop-rpc-compat.

Change-Id: Ia8174b3e3415aa1e8588d908117e79a604e63881

9 years agoDrop RpcProxy usage from ibm plugin
Russell Bryant [Fri, 21 Nov 2014 20:00:06 +0000 (20:00 +0000)]
Drop RpcProxy usage from ibm plugin

Drop usage of the RpcProxy compatibility class from the ibm plugin.
Direct usage of oslo.messaging APIs is now done instead.

Part of blueprint drop-rpc-compat.

Change-Id: I3163d0a5e5f042c02e83995e84eb962e002f27cb

9 years agoDrop RpcProxy usage from hyperv plugin
Russell Bryant [Fri, 21 Nov 2014 19:27:59 +0000 (19:27 +0000)]
Drop RpcProxy usage from hyperv plugin

Drop the usage of the RpcProxy compatibility class from the hyperv
plugin.  The equivalent oslo.messaging APIs are now used instead.

Part of blueprint drop-rpc-compat.

Change-Id: Ic0ec43d2fe1929b7225d8e797495f7949f98184a

9 years agoDrop RpcProxy usage from cisco.l3
Russell Bryant [Fri, 21 Nov 2014 18:50:30 +0000 (18:50 +0000)]
Drop RpcProxy usage from cisco.l3

Drop usage of the RpcProxy compatibility class from cisco.l3.  This
was the last of RpcProxy usage in the cisco plugin.  The equivalent
APIs from oslo.messaging are now used instead.

Part of blueprint drop-rpc-compat.

Change-Id: I340b6969e32ec20cb4864021ec332eb9c5bdf19c

9 years agoDrop RpcProxy usage from cisco.cfg_agent
Russell Bryant [Fri, 21 Nov 2014 14:51:55 +0000 (14:51 +0000)]
Drop RpcProxy usage from cisco.cfg_agent

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

Part of blueprint drop-rpc-compat.

Change-Id: I3ec71b3689adf7e96cdc2fdbf501c5cc37a9e0e4

9 years agoDrop RpcProxy usage from brocade plugin
Russell Bryant [Fri, 21 Nov 2014 14:43:26 +0000 (14:43 +0000)]
Drop RpcProxy usage from brocade plugin

This patch drops the usage of the RpcProxy compatibility class from
the brocade 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.

Part of blueprint drop-rpc-compat.

Change-Id: I6cc343c1e88d666dd90842e5da36787b6693fc98

9 years agoMerge "Drop RpcProxy usage from bigswitch plugin"
Jenkins [Mon, 24 Nov 2014 20:56:39 +0000 (20:56 +0000)]
Merge "Drop RpcProxy usage from bigswitch plugin"

9 years agoUpdate i18n translation for openvswitch log msg's
Romil Gupta [Thu, 13 Nov 2014 13:42:55 +0000 (05:42 -0800)]
Update i18n translation for openvswitch log msg's

This patch set covers the openvswitch directory under neutron/plugins.

Partial-Bug: #1320867
Change-Id: I8a80ca6e45a32bd2945ddf4401f6820d99c93c28

9 years agoUpdate i18n translation for ML2 plugin log msg's
Romil Gupta [Sun, 26 Oct 2014 13:18:53 +0000 (06:18 -0700)]
Update i18n translation for ML2 plugin log msg's

All the existing LOG.info, LOG.warning, LOG.error and LOG.critical
messages should have _LI, _LW, _LE and _LC respectively.
 Also, debug level log shouldn't be translated.

This patch set will cover the ml2 directory under neutron/plugins.

Partial-Bug: #1320867
Change-Id: I9d78d23bbc14e7c536c6ddf2dc4f52c67faeb667

9 years agoMerge "Implement migration of legacy routers to distributed"
Jenkins [Sun, 23 Nov 2014 21:12:31 +0000 (21:12 +0000)]
Merge "Implement migration of legacy routers to distributed"

9 years agoMerge "Validate loadbalancing method when updating a pool"
Jenkins [Sun, 23 Nov 2014 21:07:11 +0000 (21:07 +0000)]
Merge "Validate loadbalancing method when updating a pool"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Sun, 23 Nov 2014 21:04:47 +0000 (21:04 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Enforce log hints in neutron.services"
Jenkins [Sun, 23 Nov 2014 20:01:38 +0000 (20:01 +0000)]
Merge "Enforce log hints in neutron.services"

9 years agoMerge "Enforce log hints in neutron.services.metering"
Jenkins [Sun, 23 Nov 2014 20:01:03 +0000 (20:01 +0000)]
Merge "Enforce log hints in neutron.services.metering"

9 years agoMerge "Drop RpcProxy usage from VPNaaS code"
Jenkins [Sun, 23 Nov 2014 20:00:42 +0000 (20:00 +0000)]
Merge "Drop RpcProxy usage from VPNaaS code"

9 years agoMerge "Drop RpcProxy usage from metering_agent"
Jenkins [Sun, 23 Nov 2014 19:53:37 +0000 (19:53 +0000)]
Merge "Drop RpcProxy usage from metering_agent"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Sun, 23 Nov 2014 09:36:11 +0000 (09:36 +0000)]
Updated from global requirements

Change-Id: I74345f78a169282b99ed3575f19afa3ca0548839

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

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

Change-Id: I5c09254010381a649e732982a8a2462802c379ee

9 years agoMerge "Fix AttributeError in RPC code for DVR"
Jenkins [Sat, 22 Nov 2014 19:27:52 +0000 (19:27 +0000)]
Merge "Fix AttributeError in RPC code for DVR"

9 years agoEnforce log hints in neutron.services
Cedric Brandily [Tue, 11 Nov 2014 16:18:19 +0000 (17:18 +0100)]
Enforce log hints in neutron.services

This change enforces log hints use and removes debug level log
translation, modifications are validated through a hacking rule.

Validate that hacking rules apply to directories:
    - neutron/services

Change-Id: Ib744b7a94705afbefeb50b5dce933d226831f580
Partial-bug: #1320867

9 years agoEnforce log hints in neutron.services.metering
Cedric Brandily [Tue, 11 Nov 2014 16:11:28 +0000 (17:11 +0100)]
Enforce log hints in neutron.services.metering

This change enforces log hints use and removes debug level log
translation, modifications are validated through a hacking rule.

Validate that hacking rules apply to directories:
    - neutron/services/metering

Change-Id: Ic763e81e8b06973013115af45c7c09a3e69c673b
Partial-bug: #1320867

9 years agoMerge "BSN: include missing data in floating IP call"
Jenkins [Fri, 21 Nov 2014 20:31:22 +0000 (20:31 +0000)]
Merge "BSN: include missing data in floating IP call"

9 years agoMerge "Drop RpcProxy usage from LBaaS code"
Jenkins [Fri, 21 Nov 2014 16:08:16 +0000 (16:08 +0000)]
Merge "Drop RpcProxy usage from LBaaS code"

9 years agoFix AttributeError in RPC code for DVR
armando-migliaccio [Fri, 21 Nov 2014 06:15:34 +0000 (22:15 -0800)]
Fix AttributeError in RPC code for DVR

Fix the usage of call methods as per recent changes according to
drop-rpc-compat. These changes went overlooked and it broke DVR.

Tests will be done as follow-up.

Partial-bug: #1394848

Change-Id: I6e0584f8e54e606a76b87853b2371cc8e24eba69

9 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

9 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

9 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

9 years agoMerge "Enforce log hints in neutron.services.loadbalancer"
Jenkins [Fri, 21 Nov 2014 13:31:51 +0000 (13:31 +0000)]
Merge "Enforce log hints in neutron.services.loadbalancer"

9 years agoMerge "Enforce log hints in neutron.services.firewall"
Jenkins [Fri, 21 Nov 2014 13:16:40 +0000 (13:16 +0000)]
Merge "Enforce log hints in neutron.services.firewall"

9 years agoMerge "Enforce log hints in neutron.services.l3_router"
Jenkins [Fri, 21 Nov 2014 13:13:16 +0000 (13:13 +0000)]
Merge "Enforce log hints in neutron.services.l3_router"

9 years agoMerge "Show progress output while running unit tests"
Jenkins [Fri, 21 Nov 2014 10:25:31 +0000 (10:25 +0000)]
Merge "Show progress output while running unit tests"

9 years agoMerge "Prevent an iteration through ports on IPv6 slaac"
Jenkins [Fri, 21 Nov 2014 09:32:25 +0000 (09:32 +0000)]
Merge "Prevent an iteration through ports on IPv6 slaac"

9 years agoMerge "Refactor l2_pop code to pass mac/ip info more readably"
Jenkins [Fri, 21 Nov 2014 09:32:08 +0000 (09:32 +0000)]
Merge "Refactor l2_pop code to pass mac/ip info more readably"

9 years agoMerge "Enable default SNAT from networks connected to a router indirectly"
Jenkins [Fri, 21 Nov 2014 09:25:39 +0000 (09:25 +0000)]
Merge "Enable default SNAT from networks connected to a router indirectly"

9 years agoImplement migration of legacy routers to distributed
Swaminathan Vasudevan [Tue, 5 Aug 2014 23:16:23 +0000 (16:16 -0700)]
Implement migration of legacy routers to distributed

This patch addresses the necessary changes required
for the router migration or conversion from legacy
to distributed.

The _update_router_db() method was modified to add
logic to support the SNAT functionality of DVR by
calling create_snat_intf_ports_if_not_exists().  A
call to _unbind_router() was also called to force
the scheduling of the router with 'distributed'
enabled.

Right now we will be supporting migration from legacy
to distributed only.

Closes-bug: #1348309
Partially-implements: blueprint neutron-ovs-dvr
Co-Authored-By: Michael Smith <michael.smith6@hp.com>
Change-Id: I6f252271bb5b52ce57184ad7b0bf1ce280b965fb

9 years agoMerge "Validate local_ip for OVS agent is actual ip address"
Jenkins [Fri, 21 Nov 2014 02:26:51 +0000 (02:26 +0000)]
Merge "Validate local_ip for OVS agent is actual ip address"

9 years agoMerge "Drop and recreate FK if adding new PK to routerl3bindings"
Jenkins [Fri, 21 Nov 2014 02:25:50 +0000 (02:25 +0000)]
Merge "Drop and recreate FK if adding new PK to routerl3bindings"

9 years agoMerge "enable H237 check"
Jenkins [Fri, 21 Nov 2014 02:03:42 +0000 (02:03 +0000)]
Merge "enable H237 check"

9 years agoMerge "Remove default dictionary from function def"
Jenkins [Fri, 21 Nov 2014 00:42:05 +0000 (00:42 +0000)]
Merge "Remove default dictionary from function def"

9 years agoMerge "Remove useless return"
Jenkins [Fri, 21 Nov 2014 00:13:58 +0000 (00:13 +0000)]
Merge "Remove useless return"

9 years agoMerge "Add rootwrap filters for ofagent"
Jenkins [Fri, 21 Nov 2014 00:13:44 +0000 (00:13 +0000)]
Merge "Add rootwrap filters for ofagent"

9 years agoMerge "BSN: Optimistic locking strategy for consistency"
Jenkins [Fri, 21 Nov 2014 00:13:29 +0000 (00:13 +0000)]
Merge "BSN: Optimistic locking strategy for consistency"

9 years agoMerge "NSX: Validate gateway device list against DB"
Jenkins [Fri, 21 Nov 2014 00:12:33 +0000 (00:12 +0000)]
Merge "NSX: Validate gateway device list against DB"

9 years agoMerge "Update i18n translation for neutron.server/scheduler log msg's"
Jenkins [Thu, 20 Nov 2014 21:36:02 +0000 (21:36 +0000)]
Merge "Update i18n translation for neutron.server/scheduler log msg's"

9 years agoMerge "Updated from global requirements"
Jenkins [Thu, 20 Nov 2014 21:24:20 +0000 (21:24 +0000)]
Merge "Updated from global requirements"

9 years agoShow progress output while running unit tests
Russell Bryant [Thu, 20 Nov 2014 21:01:14 +0000 (21:01 +0000)]
Show progress output while running unit tests

This patch imports some magic to enable showing test output as the
tests run.  Seeing output showing tests as they execute is reassuring
that the test run is continuing to make progress.  This originated in
tempest and was then brought over to Nova in this commit:

  https://review.openstack.org/#/c/121914/

Note the justification in that commit to just copy it instead of move
it to a shared repo.

To get the old behavior where you only get output when something
fails, you can set the TRACE_FAILONLY env var.  That originated in
this commit in Nova:

  https://review.openstack.org/#/c/123801/

Change-Id: I6a079ad5f630383650c0f9dee09e04250d0e2c5a

9 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

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

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

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

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

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

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

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

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

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

9 years agoEnforce log hints in neutron.services.loadbalancer
Cedric Brandily [Tue, 11 Nov 2014 16:01:54 +0000 (17:01 +0100)]
Enforce log hints in neutron.services.loadbalancer

This change enforces log hints use and removes debug level log
translation, modifications are validated through a hacking rule and
the change respects loggging guidelines.

Validate that hacking rules apply to directories:
    - neutron/services/loadbalancer

Change-Id: I5f2a1a8861728399f3852fc9704eb160c35f7f8d
Partial-bug: #1320867

9 years agoEnforce log hints in neutron.services.firewall
Cedric Brandily [Tue, 11 Nov 2014 15:00:57 +0000 (16:00 +0100)]
Enforce log hints in neutron.services.firewall

This change enforces log hints use and removes debug level log
translation, modifications are validated through a hacking rule.

Validate that hacking rules apply to directories:
    - neutron/services/firewall

Change-Id: Ie3f75fe207652cbd800cef067a89a819696d1f3a
Partial-bug: #1320867

9 years agoEnforce log hints in neutron.services.l3_router
Cedric Brandily [Tue, 11 Nov 2014 14:26:14 +0000 (15:26 +0100)]
Enforce log hints in neutron.services.l3_router

This change enforces log hints use and removes debug level log
translation, modifications are validated through a hacking rule.

Validate that hacking rules apply to directories:
    - neutron/services/l3_router

Change-Id: I2a832c5e0c4ed2a944d199d6a2d6233b8cf838dd
Partial-bug: #1320867

9 years agoenable H237 check
Mark McClain [Thu, 12 Jun 2014 06:10:48 +0000 (02:10 -0400)]
enable H237 check

Remove the remove use of 'new' module by properly patching the instance
object.  Additionally, enable the H237 (module is removed in Python 3) check

Change-Id: I7407600478de218a4294c4bfd774cd4cf7e1741e
Partial-Bug: 1329017

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 20 Nov 2014 14:06:53 +0000 (14:06 +0000)]
Updated from global requirements

Change-Id: I40640d56c48b376d876908d7e004971f80228095

9 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

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

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

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

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

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

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

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

9 years agoUpdate i18n translation for neutron.server/scheduler log msg's
Gary Kotton [Tue, 11 Nov 2014 13:43:55 +0000 (05:43 -0800)]
Update i18n translation for neutron.server/scheduler log msg's

Validate that hacking rules apply to directories:
- neutron/scheduler
- neutron/server

Change-Id: I1353f5c8b01f85e4995ee1fb23a066506ed98e3f
Partial-bug: #1320867

9 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

9 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

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

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

9 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

9 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

9 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

9 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

9 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

9 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

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 agoValidate loadbalancing method when updating a pool
Eugene Nikanorov [Wed, 19 Nov 2014 10:05:05 +0000 (14:05 +0400)]
Validate loadbalancing method when updating a pool

Validate the input for the lb_method and avoid DBIntegrityError.

Change-Id: Iea3d464abdeb1ed377db2453581124742f9fb0ac
Closes-Bug: #1390078

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 agoEnable default SNAT from networks connected to a router indirectly
Itsuro Oda [Wed, 29 Oct 2014 23:00:07 +0000 (08:00 +0900)]
Enable default SNAT from networks connected to a router indirectly

Make outgoing packets to an external interface SNATed regardless
of source address of the packets. As a result of deep review,
any problem was not found with this change.

Change-Id: I71a1288633bb6af2951d571540bbb9ec5e1270e2
Closes-bug: #1386041