]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agotox.ini: Prevent casual addition of bash dependency
YAMAMOTO Takashi [Wed, 3 Dec 2014 06:29:02 +0000 (15:29 +0900)]
tox.ini: Prevent casual addition of bash dependency

While bash is not available on every environments, there seems to be
a tendency to introduce more bash dependency very casually.  This check
is intended to be a reminder to give people a chance to consider
alternatives.

Related-Bug: #1398266
Change-Id: I5103e0d7c111880d9a02dd93de56c567066ed14c

9 years agoMerge "pretty_tox.sh: Portablity improvement"
Jenkins [Fri, 5 Dec 2014 03:05:05 +0000 (03:05 +0000)]
Merge "pretty_tox.sh: Portablity improvement"

9 years agoMerge "Updated the README.rst"
Jenkins [Fri, 5 Dec 2014 01:18:24 +0000 (01:18 +0000)]
Merge "Updated the README.rst"

9 years agoMerge "Enforce log hints in neutron.plugins.plumgrid"
Jenkins [Fri, 5 Dec 2014 00:11:57 +0000 (00:11 +0000)]
Merge "Enforce log hints in neutron.plugins.plumgrid"

9 years agoMerge "Remove ovs-vsctl call from OVSInterfaceDriver"
Jenkins [Thu, 4 Dec 2014 23:19:44 +0000 (23:19 +0000)]
Merge "Remove ovs-vsctl call from OVSInterfaceDriver"

9 years agoMerge "Update i18n translation for Brocade plugin log msg's"
Jenkins [Thu, 4 Dec 2014 23:01:38 +0000 (23:01 +0000)]
Merge "Update i18n translation for Brocade plugin log msg's"

9 years agoMerge "Fix enable_metadata_network flag"
Jenkins [Thu, 4 Dec 2014 21:47:11 +0000 (21:47 +0000)]
Merge "Fix enable_metadata_network flag"

9 years agoMerge "Update i18n translation for Nuage plugin"
Jenkins [Thu, 4 Dec 2014 21:25:52 +0000 (21:25 +0000)]
Merge "Update i18n translation for Nuage plugin"

9 years agoMerge "Update i18n translation for Metaplugin plugin"
Jenkins [Thu, 4 Dec 2014 21:25:37 +0000 (21:25 +0000)]
Merge "Update i18n translation for Metaplugin plugin"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Thu, 4 Dec 2014 20:58:53 +0000 (20:58 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Remove RpcCallback class"
Jenkins [Thu, 4 Dec 2014 20:58:21 +0000 (20:58 +0000)]
Merge "Remove RpcCallback class"

9 years agoMerge "Convert several uses of RpcCallback"
Jenkins [Thu, 4 Dec 2014 20:58:06 +0000 (20:58 +0000)]
Merge "Convert several uses of RpcCallback"

9 years agoMerge "Fix up an old RpcProxy assumption"
Jenkins [Thu, 4 Dec 2014 20:57:52 +0000 (20:57 +0000)]
Merge "Fix up an old RpcProxy assumption"

9 years agoMerge "Remove RpcProxy class"
Jenkins [Thu, 4 Dec 2014 20:57:38 +0000 (20:57 +0000)]
Merge "Remove RpcProxy class"

9 years agoMerge "Update i18n translation for Embrane plugin"
Jenkins [Thu, 4 Dec 2014 20:57:24 +0000 (20:57 +0000)]
Merge "Update i18n translation for Embrane plugin"

9 years agoRemove RpcCallback class
Russell Bryant [Tue, 2 Dec 2014 21:04:54 +0000 (21:04 +0000)]
Remove RpcCallback class

All users of the RpcCallback class have been converted to directly
define the oslo.messaging Target so this compatibility class is no
longer needed.

This is the final change of blueprint drop-rpc-compat.

Change-Id: I25474569850f3f2c176e7eee7aafa7ff0180b809

9 years agoConvert several uses of RpcCallback
Russell Bryant [Tue, 2 Dec 2014 21:16:19 +0000 (21:16 +0000)]
Convert several uses of RpcCallback

Convert several places in the code that were using the RpcCallback
compatibility class.  This class eased the transition to
oslo.messaging.  This patch drops the usage of this class in favor of
direct usage of the appropriate oslo.messaging API.

Part of blueprint drop-rpc-compat.

Change-Id: I955958e836635d43dabc7b39d050c1418b18cf8f

9 years agoFix up an old RpcProxy assumption
Russell Bryant [Tue, 2 Dec 2014 16:23:40 +0000 (16:23 +0000)]
Fix up an old RpcProxy assumption

This patch fixes one last bit of code that assumed that the base
PluginApi used RpcProxy.  This code is now fixed to use the proper
oslo.messaging APIs instead.

Part of blueprint drop-rpc-compat.

Change-Id: I4adc321c07e6b5ad45a01f163b4c7e1ab74bcafd

9 years agoRemove RpcProxy class
Russell Bryant [Tue, 2 Dec 2014 16:20:23 +0000 (16:20 +0000)]
Remove RpcProxy class

All users of this class have now been converted to use oslo.messaging
APIs directly, so this compatibility class can be removed.

Part of blueprint drop-rpc-compat.

Change-Id: Ife5c96d2d737694b9e79fe079d62dc48f23c033a

9 years agoMerge "Enforce log hints in opencontrail"
Jenkins [Thu, 4 Dec 2014 06:53:43 +0000 (06:53 +0000)]
Merge "Enforce log hints in opencontrail"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Thu, 4 Dec 2014 06:14:39 +0000 (06:14 +0000)]
Imported Translations from Transifex

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

Change-Id: Ic0f2297c07cfc9dcef66df980b2615beac8cb173

9 years agoFix enable_metadata_network flag
Aaron Rosen [Tue, 18 Nov 2014 23:59:40 +0000 (15:59 -0800)]
Fix enable_metadata_network flag

The following patch: 9569b2fe broke the desired functionality of
the enable_metadata_network flag, by not allowing the metadata
proxy to be spawn for 'metadata networks', which are used for
accessing the metadata service when the logical router is not
implemented through the l3 agent.

This patch enables spawning of the metadata proxy for metadata
networks when the appropriate flag is set to True.

The patch also adds rather pedant unit test coverage for the
should_enable_metadata method which previously had no unit test.

Change-Id: I8dca1fce9fbc83e75ba7e4ce948531427bf7e88b
Closes-bug: 1394020

9 years agoMerge "Alter execute_alembic_command() to not assume all commands"
Jenkins [Thu, 4 Dec 2014 01:48:47 +0000 (01:48 +0000)]
Merge "Alter execute_alembic_command() to not assume all commands"

9 years agoEnforce log hints in opencontrail
Gary Kotton [Tue, 2 Dec 2014 12:35:51 +0000 (04:35 -0800)]
Enforce log hints in opencontrail

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/plugins/opencontrail

Change-Id: I44f215a672c08c7f0046bc026abe7c6a5d1697d1
Partial-bug: #1320867

9 years agoUpdate i18n translation for Metaplugin plugin
Gary Kotton [Wed, 26 Nov 2014 17:01:36 +0000 (09:01 -0800)]
Update i18n translation for Metaplugin plugin

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
metaplugin directory.

Change-Id: I34437019fc8ffc38f11114d1d83dce54170ab989
Partial-Bug: #1320867

9 years agoUpdate i18n translation for Brocade plugin log msg's
Gary Kotton [Mon, 24 Nov 2014 19:32:37 +0000 (11:32 -0800)]
Update i18n translation for Brocade plugin log msg's

All the log messages now have the required hints. In addition to
this debug messages are not translated.

This is done for the plugins/brocade directory.

Change-Id: I2ac926fd72037bb8f0605267ad50472c447ae83d

9 years agoUpdate i18n translation for Nuage plugin
Gary Kotton [Wed, 26 Nov 2014 07:30:06 +0000 (23:30 -0800)]
Update i18n translation for Nuage plugin

Ensure that the LOG hacking rules are enforced on the nuage plugin
directory.

Change-Id: I0a415dfdf81ad337eda0dc8b618b6125b938a1eb

9 years agoMerge "Fix hostname validation for nameservers"
Jenkins [Wed, 3 Dec 2014 18:25:51 +0000 (18:25 +0000)]
Merge "Fix hostname validation for nameservers"

9 years agoMerge "Update i18n translation for Midonet plugin"
Jenkins [Wed, 3 Dec 2014 18:25:37 +0000 (18:25 +0000)]
Merge "Update i18n translation for Midonet plugin"

9 years agoUpdate i18n translation for Embrane plugin
Gary Kotton [Tue, 25 Nov 2014 09:46:50 +0000 (01:46 -0800)]
Update i18n translation for Embrane plugin

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
embrane directory.

Change-Id: I89cf8e63311f96c3f1759a6c885d1b98e6fed598
Partial-Bug: #1320867

9 years agoEnforce log hints in neutron.plugins.plumgrid
Cedric Brandily [Tue, 25 Nov 2014 13:44:18 +0000 (13:44 +0000)]
Enforce log hints in neutron.plugins.plumgrid

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/plugins/plumgrid

Change-Id: Ie85abb93cdbe50bdd56c9f987784baf4c4dd631d
Partial-bug: #1320867

9 years agoMerge "BSN: Add network to ext_gw_info sent to backend"
Jenkins [Wed, 3 Dec 2014 16:00:53 +0000 (16:00 +0000)]
Merge "BSN: Add network to ext_gw_info sent to backend"

9 years agoMerge "Enforce log hints in neutron.plugins.hyperv"
Jenkins [Wed, 3 Dec 2014 16:00:38 +0000 (16:00 +0000)]
Merge "Enforce log hints in neutron.plugins.hyperv"

9 years agoMerge "Drop RpcProxy usage from DhcpAgentNotifyAPI"
Jenkins [Wed, 3 Dec 2014 16:00:20 +0000 (16:00 +0000)]
Merge "Drop RpcProxy usage from DhcpAgentNotifyAPI"

9 years agoMerge "Enforce log hints in neutron.plugins.sriovnicagent"
Jenkins [Wed, 3 Dec 2014 15:57:51 +0000 (15:57 +0000)]
Merge "Enforce log hints in neutron.plugins.sriovnicagent"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 3 Dec 2014 15:57:36 +0000 (15:57 +0000)]
Merge "Imported Translations from Transifex"

9 years agoRemove ovs-vsctl call from OVSInterfaceDriver
Cedric Brandily [Wed, 26 Nov 2014 00:31:22 +0000 (00:31 +0000)]
Remove ovs-vsctl call from OVSInterfaceDriver

ovs_lib module is responsible for the interaction with OVS but
OVSInterfaceDriver._ovs_add_port() method calls directly
ovs-vsctl which implies inconsistencies: ovs_lib calls ovs-vsctl
with a timeout but not OVSInterfaceDriver._ovs_add_port().

This change moves ovs-vsctl call in OVSInterfaceDriver._ovs_add_port
to ovs_lib.

Closes-Bug: #1396489
Change-Id: I4d03f8beef2c5f2366ad2d1cf5f0b18b4f2857cd

9 years agoUpdate i18n translation for Midonet plugin
Gary Kotton [Tue, 25 Nov 2014 10:28:54 +0000 (02:28 -0800)]
Update i18n translation for Midonet plugin

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 midonet
directory.

Change-Id: Ic74316640015bc98ec4b2722f4039f58a9ec2379
Partial-Bug: #1320867

9 years agoMerge "Adds macvtap support"
Jenkins [Wed, 3 Dec 2014 13:05:35 +0000 (13:05 +0000)]
Merge "Adds macvtap support"

9 years agoEnforce log hints in neutron.plugins.sriovnicagent
Cedric Brandily [Tue, 25 Nov 2014 13:30:23 +0000 (13:30 +0000)]
Enforce log hints in neutron.plugins.sriovnicagent

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/plugins/sriovnicagent

Partial-bug: #1320867

Change-Id: Idde3d69c982db49e6b1510d6a6094af82fa25b13

9 years agoEnforce log hints in neutron.plugins.hyperv
Cedric Brandily [Tue, 25 Nov 2014 12:56:50 +0000 (12:56 +0000)]
Enforce log hints in neutron.plugins.hyperv

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/plugins/hyperv

Change-Id: Iea2d63a4e74bf824ee308057570c980c50e937bc
Partial-bug: #1320867

9 years agoMerge "test_dhcp_agent: Fix no-op tests"
Jenkins [Wed, 3 Dec 2014 09:38:13 +0000 (09:38 +0000)]
Merge "test_dhcp_agent: Fix no-op tests"

9 years agoMerge "Fix base test class for functional api testing"
Jenkins [Wed, 3 Dec 2014 08:42:25 +0000 (08:42 +0000)]
Merge "Fix base test class for functional api testing"

9 years agoMerge "Delete FIP namespace when last VM is deleted"
Jenkins [Wed, 3 Dec 2014 06:33:47 +0000 (06:33 +0000)]
Merge "Delete FIP namespace when last VM is deleted"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 3 Dec 2014 06:13:49 +0000 (06:13 +0000)]
Imported Translations from Transifex

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

Change-Id: I2ebc99dd90316bc903778ee7d092870f26841fff

9 years agoMerge "iptables_manager: Fix get_binary_name for eventlet"
Jenkins [Wed, 3 Dec 2014 05:49:24 +0000 (05:49 +0000)]
Merge "iptables_manager: Fix get_binary_name for eventlet"

9 years agoMerge "Update i18n translation for BigSwitch plugin log msg's"
Jenkins [Wed, 3 Dec 2014 03:24:19 +0000 (03:24 +0000)]
Merge "Update i18n translation for BigSwitch plugin log msg's"

9 years agoDrop RpcProxy usage from DhcpAgentNotifyAPI
Russell Bryant [Tue, 2 Dec 2014 16:18:58 +0000 (16:18 +0000)]
Drop RpcProxy usage from DhcpAgentNotifyAPI

Remove usage of the RpcProxy compatibility class from the
DhcpAgentNotifyAPI class.  The equivalent oslo.messaging APIs are now
used instead.

Part of blueprint drop-rpc-compat.

Change-Id: Ib658a0d67da1af3b009bc6df9a7c8ec08c04897b

9 years agoUpdated the README.rst
JJ Asghar [Sat, 29 Nov 2014 20:14:54 +0000 (14:14 -0600)]
Updated the README.rst

Updated the Readme.rst with some formatting issues. Also
stole the ending line from the Nova to point in the direction
of the CONTRIBUTING.rst.

Change-Id: I595b7feb641aee91d47ba55eedab29e7511bfa35

9 years agoMerge "Use oslo function for parsing bool from env var"
Jenkins [Tue, 2 Dec 2014 16:54:20 +0000 (16:54 +0000)]
Merge "Use oslo function for parsing bool from env var"

9 years agoMerge "Don't block on rpc calls in unit tests"
Jenkins [Tue, 2 Dec 2014 16:18:50 +0000 (16:18 +0000)]
Merge "Don't block on rpc calls in unit tests"

9 years agoFix base test class for functional api testing
Maru Newby [Sat, 8 Nov 2014 17:08:33 +0000 (17:08 +0000)]
Fix base test class for functional api testing

To support in-tree functional api testing, the test class common
across all types of testing can't import modules that define
configuration that Tempest also defines because duplicate
configuration definitions result in runtime errors.  A previous change
(I44251db399cd73390a9d1931a7f253662002ba10) moved conflicting imports
to a separate module, but subsequent additions have added new conflicting
imports.

This change creates a new test class that is safe to use for all types
of testing (neutron.tests.sub_base.SubBaseTestCase), ensures that the
existing existing base test class (neutron.tests.base.BaseTestCase)
extends it, and documents their respective responsibilities.  This
will hopefully make it less likely that the functional api job will be
broken by changes to the base test class.

Implements: bp retargetable-functional-testing

Change-Id: Ifa270536481fcb19c476c9c62d89e6c5cae36ca1

9 years agoMerge "Change description of default security group"
Jenkins [Tue, 2 Dec 2014 15:23:24 +0000 (15:23 +0000)]
Merge "Change description of default security group"

9 years agoUse oslo function for parsing bool from env var
Maru Newby [Sat, 8 Nov 2014 17:20:37 +0000 (17:20 +0000)]
Use oslo function for parsing bool from env var

The tests were previously defining their own way of parsing booleans
from strings.  This change switches to using a function defined in
the oslo.utils.strutils module.

Implements: bp retargetable-functional-testing

Change-Id: Ic06de1ed67dd9cc762415d362a928a89da0ce2f0

9 years agoDon't block on rpc calls in unit tests
Russell Bryant [Mon, 1 Dec 2014 20:13:12 +0000 (20:13 +0000)]
Don't block on rpc calls in unit tests

While running unit tests I noticed that all of the test cases from
TestOvsNeutronAgent were taking just over 15 seconds.  This is because
it was waiting for the rpc call response timeout.  Since the tests
weren't actually failing, it's clear the code doesn't actually care
about the response anyway, so just set the messaging config to not
wait for the response.

On my dev box, this dropped test runtime for this file from 1024
seconds to 3 seconds, which is an obvious *HUGE* improvement.

Someone pointed out that an earlier change
(086496bfc45e01cd2905a074d526a7d513bf4ec2) intended to make calls
return immediately for *all* tests, but removing use of RpcProxy
caused this to stop working.

Change-Id: Id07c1d1727a3f4087f0a97681388fb5d69740f8d

9 years agoUpdate i18n translation for BigSwitch plugin log msg's
Gary Kotton [Sun, 23 Nov 2014 12:08:52 +0000 (04:08 -0800)]
Update i18n translation for BigSwitch plugin log msg's

All the log messages now have the required hints. In addition to this
debug messages are not translated.

This is done for the plugins/bigswitch and plugins/common directories

Change-Id: If661fcfac3b22c8cffee65c3e8073e746ef3468e

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 2 Dec 2014 06:14:39 +0000 (06:14 +0000)]
Imported Translations from Transifex

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

Change-Id: I5ee2e567883b26f86044e8f3ec4640ef7fe45cda

9 years agopretty_tox.sh: Portablity improvement
YAMAMOTO Takashi [Tue, 2 Dec 2014 04:18:48 +0000 (13:18 +0900)]
pretty_tox.sh: Portablity improvement

A recent change (commit 0d5a11d9c722870f9c5e31a993219c7e240b4e19)
introduced bash dependency.  It broke my environment, where bash
is not available.  This change aims to restore it.

As far as I undestand, the change in question requires bash for
the "pipefail" feature.  Fortunately there's a more portable
well-known trick for the purpose.

Closes-Bug: #1398266
Change-Id: Id3561d81462923d20ad39584ba4cf8e1a294a8a8

9 years agoiptables_manager: Fix get_binary_name for eventlet
YAMAMOTO Takashi [Tue, 9 Sep 2014 03:20:23 +0000 (12:20 +0900)]
iptables_manager: Fix get_binary_name for eventlet

The inspect trick used by get_binary_name does not work for
eventlet non-main threads.  It's actually the case for ofagent
and in that case it yields something like "greenthread.py",
which is not desirable because this module assumes it different
for each programs.  This commit fixes the problem by switching
to use sys.argv.

Closes-Bug: #1367075
Change-Id: I8e765882c58d9991a37f0bbb52cdccc406e287bd

9 years agotest_dhcp_agent: Fix no-op tests
YAMAMOTO Takashi [Fri, 28 Nov 2014 05:33:47 +0000 (14:33 +0900)]
test_dhcp_agent: Fix no-op tests

Fix some uses of assertCalledOnceWith, which seems like a mistake of
assert_called_once_with.

Also, add a hacking check to prevent the mistake.

Closes-Bug: #1397184
Change-Id: I12d077e2724d52eff65d55aff1130fbbb69671b1

9 years agoMerge "Drop old code from SecurityGroupAgentRpcApiMixin"
Jenkins [Tue, 2 Dec 2014 00:02:12 +0000 (00:02 +0000)]
Merge "Drop old code from SecurityGroupAgentRpcApiMixin"

9 years agoMerge "Drop RpcProxy usage from ml2 AgentNotifierApi"
Jenkins [Tue, 2 Dec 2014 00:01:56 +0000 (00:01 +0000)]
Merge "Drop RpcProxy usage from ml2 AgentNotifierApi"

9 years agoMerge "Drop RpcProxy usage from L3AgentNotifyAPI"
Jenkins [Mon, 1 Dec 2014 22:56:46 +0000 (22:56 +0000)]
Merge "Drop RpcProxy usage from L3AgentNotifyAPI"

9 years agoMerge "Stop exception log in Big Switch unit tests"
Jenkins [Mon, 1 Dec 2014 19:21:40 +0000 (19:21 +0000)]
Merge "Stop exception log in Big Switch unit tests"

9 years agoMerge "NSX: Fix foreign key constraint delete provider network"
Jenkins [Mon, 1 Dec 2014 19:20:51 +0000 (19:20 +0000)]
Merge "NSX: Fix foreign key constraint delete provider network"

9 years agoDrop old code from SecurityGroupAgentRpcApiMixin
Russell Bryant [Mon, 1 Dec 2014 19:15:58 +0000 (19:15 +0000)]
Drop old code from SecurityGroupAgentRpcApiMixin

The SecurityGroupAgentRpcApiMixin class temporarily had support for
both RpcProxy and new oslo.messaging style rpc client interfaces.  Now
that all users of this mixin have been converted to direct usage of
oslo.messaging APIs, the old compatibility code can be removed.

Part of blueprint drop-rpc-compat.

Change-Id: I18dc65e7f14a8ae42e3c2bc81d1d73f61c12c1fc

9 years agoMerge "Update i18n translation for Mellanox plugin and agent log msg's"
Jenkins [Mon, 1 Dec 2014 19:15:46 +0000 (19:15 +0000)]
Merge "Update i18n translation for Mellanox plugin and agent log msg's"

9 years agoMerge "Update i18n translation for VMware NSX plugin log msg's"
Jenkins [Mon, 1 Dec 2014 19:14:27 +0000 (19:14 +0000)]
Merge "Update i18n translation for VMware NSX plugin log msg's"

9 years agoDrop RpcProxy usage from ml2 AgentNotifierApi
Russell Bryant [Mon, 1 Dec 2014 18:42:30 +0000 (18:42 +0000)]
Drop RpcProxy usage from ml2 AgentNotifierApi

Remove usage of the RpcProxy compatibility class from the ml2
AgentNotifierApi.  The equivalent oslo.messaging APIs are now used
instead.  A couple of other mixin APIs had to be converted at the same
time.

Note that there is one very minor functional change here.  The base
rpc version is set to '1.0' now instead of '1.1'.  The right pattern
to use is to always set the base to be N.0.  Any method that needs a
newer version should specify it.

Part of blueprint drop-rpc-compat.

Change-Id: I640568e2d73c9eb7a9505db640dc1427a1ae2abe

9 years agoMerge "hacking: Check if correct log markers are used"
Jenkins [Mon, 1 Dec 2014 14:28:57 +0000 (14:28 +0000)]
Merge "hacking: Check if correct log markers are used"

9 years agoUpdate i18n translation for Mellanox plugin and agent log msg's
Irena Berezovsky [Sun, 23 Nov 2014 13:39:09 +0000 (15:39 +0200)]
Update i18n translation for Mellanox plugin and agent 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 mlnx
directory under neutron/plugins.

Change-Id: Idfdb38360888002b066c8ac2d177a92b2ac173f4
Partial-Bug: #1320867

9 years agoDrop RpcProxy usage from L3AgentNotifyAPI
Russell Bryant [Wed, 26 Nov 2014 18:00:24 +0000 (18:00 +0000)]
Drop RpcProxy usage from L3AgentNotifyAPI

Remove RpcProxy usage from the L3AgentNotifyAPI.  The equivalent
oslo.messaging APIs are now used instead.

Part of blueprint drop-rpc-compat.

Change-Id: Ice8e2592d7b254134bbee215b93ca77075ab4fe8

9 years agoUpdate i18n translation for VMware NSX plugin log msg's
Gary Kotton [Thu, 20 Nov 2014 19:53:27 +0000 (11:53 -0800)]
Update i18n translation for VMware NSX 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 vmware
directory under neutron/plugins.

Change-Id: Iba83af988cb2de919b05108f145efb19e9192ae4
Partial-Bug: #1320867

9 years agoAlter execute_alembic_command() to not assume all commands
Mike Bayer [Mon, 1 Dec 2014 03:18:32 +0000 (22:18 -0500)]
Alter execute_alembic_command() to not assume all commands

Alembic 0.7.1 is adding new diff directives add_fk and remove_fk.
The logic in execute_alembic_command() appears to assume all potential
commands are present in METHODS.   This patch adjusts it so that
it checks METHODS first, allowing the tests in neutron.tests.unit.db.test_migration
to pass.  However, if the design here requires that all potential
Alembic commands are handled, then this would not be the fix,
though I recommend that the potential list of Alembic directives
not be hardcoded.

Change-Id: Ib08685be252e1fdb0f10853f8fc9a7e19ac54a94
Closes-Bug: #1397796

9 years agoMerge "Enable undefined-loop-variable pylint check"
Jenkins [Sun, 30 Nov 2014 17:04:58 +0000 (17:04 +0000)]
Merge "Enable undefined-loop-variable pylint check"

9 years agoMerge "Removed python2.6 rootwrap filters"
Jenkins [Sun, 30 Nov 2014 17:03:37 +0000 (17:03 +0000)]
Merge "Removed python2.6 rootwrap filters"

9 years agoMerge "enable H401 hacking check"
Jenkins [Sun, 30 Nov 2014 16:59:05 +0000 (16:59 +0000)]
Merge "enable H401 hacking check"

9 years agohacking: Check if correct log markers are used
YAMAMOTO Takashi [Tue, 25 Nov 2014 04:53:02 +0000 (13:53 +0900)]
hacking: Check if correct log markers are used

Makes the check tighter and would detect mistakes
like LOG.info(_LE("foo")).

This would reduce reviewer loads for relevant changes.

Partial-Bug: #1320867
Change-Id: I66c7ab1fd9b40beb857dc6c4b143ca47a5ebce4b

9 years agoMerge "CSCO:Tenants not to access unshared n/w profiles"
Jenkins [Fri, 28 Nov 2014 23:11:04 +0000 (23:11 +0000)]
Merge "CSCO:Tenants not to access unshared n/w profiles"

9 years agoMerge "Drop RpcProxy usage from MeteringAgentNotifyAPI"
Jenkins [Fri, 28 Nov 2014 22:22:12 +0000 (22:22 +0000)]
Merge "Drop RpcProxy usage from MeteringAgentNotifyAPI"

9 years agoMerge "ofagent: Remove obsolete bridge_mappings (plugin side)"
Jenkins [Fri, 28 Nov 2014 22:21:32 +0000 (22:21 +0000)]
Merge "ofagent: Remove obsolete bridge_mappings (plugin side)"

9 years agoMerge "Tighten up try/except block around rpc call"
Jenkins [Fri, 28 Nov 2014 22:21:19 +0000 (22:21 +0000)]
Merge "Tighten up try/except block around rpc call"

9 years agoMerge "Remove unused variables from get_devices_details_list"
Jenkins [Fri, 28 Nov 2014 22:21:06 +0000 (22:21 +0000)]
Merge "Remove unused variables from get_devices_details_list"

9 years agoMerge "Fix incorrect exception order in _execute_request"
Jenkins [Fri, 28 Nov 2014 21:54:48 +0000 (21:54 +0000)]
Merge "Fix incorrect exception order in _execute_request"

9 years agoMerge "MeteringPluginRpc: Fix crash in periodic_task"
Jenkins [Fri, 28 Nov 2014 21:44:33 +0000 (21:44 +0000)]
Merge "MeteringPluginRpc: Fix crash in periodic_task"

9 years agoFix hostname validation for nameservers
Kevin Benton [Thu, 27 Nov 2014 09:45:29 +0000 (01:45 -0800)]
Fix hostname validation for nameservers

Fixes the hostname validation to align with the RFC's demands[1].
This was done by replacing the full regex with a function that
broke the FQDN into individual components that were easier to
reason about with regular expressions.

Also added several test cases for domains so if someone wants
to convert it back to pure regex there will be better test vectors.

1. RFC 1123 says an all-digit hostname is allowed in section 2.1. It
   says that this more liberal syntax MUST be supported.

Closes-Bug: #1396932
Change-Id: I003cf14d95070707e43e40d55da62e11a28dfa4e

9 years agoMerge "Migrate to oslo.i18n"
Jenkins [Fri, 28 Nov 2014 12:14:32 +0000 (12:14 +0000)]
Merge "Migrate to oslo.i18n"

9 years agoMerge "Migrate to oslo.middleware"
Jenkins [Fri, 28 Nov 2014 12:12:26 +0000 (12:12 +0000)]
Merge "Migrate to oslo.middleware"

9 years agoRemoved python2.6 rootwrap filters
Ihar Hrachyshka [Thu, 27 Nov 2014 10:51:19 +0000 (11:51 +0100)]
Removed python2.6 rootwrap filters

We drop support for python 2.6 in Kilo, so those filters are not needed
anymore.

Change-Id: I8f1e346916701cab5d19044c24801e19500e713c

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Fri, 28 Nov 2014 06:08:50 +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: I06e4486a646e3c8a35a5bff64819839e2e574fb9

9 years agoMeteringPluginRpc: Fix crash in periodic_task
YAMAMOTO Takashi [Thu, 27 Nov 2014 07:16:03 +0000 (16:16 +0900)]
MeteringPluginRpc: Fix crash in periodic_task

Restore __init__ chain which has been broken by
commit bdcc5a46d7776f50d5ae372798a913349629d2f6 .

Closes-Bug: #1396893
Change-Id: Ia1f0357b6726ac79a22ed1666eecebac33689aa1

9 years agoMerge "Drop RpcProxy usage from l2population code"
Jenkins [Fri, 28 Nov 2014 02:00:22 +0000 (02:00 +0000)]
Merge "Drop RpcProxy usage from l2population code"

9 years agoEnable undefined-loop-variable pylint check
Angus Lees [Wed, 13 Aug 2014 05:42:10 +0000 (15:42 +1000)]
Enable undefined-loop-variable pylint check

This required a trivial refactor of two existing cases in the codebase.

These two cases were perfectly correct, but the check uncovered a 3rd
case which was a real bug (fixed separately).  The new versions also
make it clear that if the loop fails to break early then the 'result' is
None (and thus an error) and not simply the last element.  On balance,
it's probably worth enforcing this small inconvenience to coding style.

Change-Id: I780a95241f1454c6886d91f980eb9ada7678a119
Related-Bug: #1362466

9 years agoRemove unused variables from get_devices_details_list
Elena Ezhova [Thu, 27 Nov 2014 07:33:04 +0000 (10:33 +0300)]
Remove unused variables from get_devices_details_list

Initialization of res with empty list is not needed because
res is always assigned with a new value in try/except block.

A method invocation context is created in get_device_details
and need not be initialized in get_devices_details_list because
it is never used there.

Change-Id: I2ff73390ca173cee6d73aaafdcc0c525670e358b

9 years agoChange description of default security group
abhishek.talwar [Wed, 19 Nov 2014 09:54:42 +0000 (15:24 +0530)]
Change description of default security group

The description for default security group in neutron
is “default”.
This confuses the end users, so updated the description
from “default” to “Default security group”.
Closes-Bug: #1291570

Change-Id: I9e024de935e8d17afd3d459cfa17e9feb0cd79fa

9 years agoFix incorrect exception order in _execute_request
Angus Lees [Mon, 25 Aug 2014 02:02:16 +0000 (12:02 +1000)]
Fix incorrect exception order in _execute_request

_execute_request has a list of exception handlers to log various types
of errors with more specific error messages. Unfortunately, it catches
requests.exceptions.ConnectionError before requests.exceptions.SSLError,
but ConnectionError is a superclass of SSLError so the latter is never
invoked.

This change corrects the exception handling order, and enables the
bad-except-order pylint check now that the check passes.

Change-Id: I92bacd6088de5cbc170bc5c081a1db1baeec69e7
Closes-Bug: #1360970

9 years agoMerge "Fix floating-ips in error state in dvr mode"
Jenkins [Thu, 27 Nov 2014 03:42:53 +0000 (03:42 +0000)]
Merge "Fix floating-ips in error state in dvr mode"

9 years agoMerge "Reject trailing whitespaces in IP address"
Jenkins [Thu, 27 Nov 2014 03:42:26 +0000 (03:42 +0000)]
Merge "Reject trailing whitespaces in IP address"

9 years agoMerge "Remove Python 2.6 classifier"
Jenkins [Thu, 27 Nov 2014 03:42:12 +0000 (03:42 +0000)]
Merge "Remove Python 2.6 classifier"

9 years agoMerge "Remove unused xml constants"
Jenkins [Wed, 26 Nov 2014 22:47:28 +0000 (22:47 +0000)]
Merge "Remove unused xml constants"