]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 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 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 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 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 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 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"

9 years agoMigrate to oslo.i18n
Ihar Hrachyshka [Fri, 21 Nov 2014 21:01:08 +0000 (22:01 +0100)]
Migrate to oslo.i18n

Mostly trivial import changes.

- oslo.i18n no longer provide install() method to inject _() into
  globals(), so removed all calls to it;
- removed Babel from dependencies (it will now be grabbed by oslo.i18n);
- updated tox.ini to ignore import violations for oslo.i18n.

Change-Id: I6623d551f512fb7fe9bf35ee734ed6d4c6cbc287

9 years agoMigrate to oslo.middleware
gordon chung [Wed, 8 Oct 2014 21:51:47 +0000 (17:51 -0400)]
Migrate to oslo.middleware

Synced middleware module from incubator instead of removing it
completely. This is needed for grenade and to keep backwards
compatibility with existing installations with old api-paste.ini.

'log' module is updated as a dependency for middleware module.

'versionutils' are added as a new dependency for middleware module.

Closes-Bug: #1371701
Change-Id: Ib1c3161ccc98642091134f2285fed7c90244e600
Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
9 years agoMerge "Drop RpcProxy usage from cisco apic ml2 plugin"
Jenkins [Wed, 26 Nov 2014 20:30:32 +0000 (20:30 +0000)]
Merge "Drop RpcProxy usage from cisco apic ml2 plugin"

9 years agoMerge "Drop RpcProxy usage from oneconvergence plugin"
Jenkins [Wed, 26 Nov 2014 20:29:49 +0000 (20:29 +0000)]
Merge "Drop RpcProxy usage from oneconvergence plugin"

9 years agoRemove unused xml constants
Maru Newby [Wed, 26 Nov 2014 20:20:40 +0000 (12:20 -0800)]
Remove unused xml constants

Change-Id: I38d720095a2fe703e55d895350e3894c35649d4e

9 years agoMerge "Update rally-jobs files"
Jenkins [Wed, 26 Nov 2014 17:57:28 +0000 (17:57 +0000)]
Merge "Update rally-jobs files"

9 years agoMerge "Synced processutils and periodic_task modules"
Jenkins [Wed, 26 Nov 2014 17:05:23 +0000 (17:05 +0000)]
Merge "Synced processutils and periodic_task modules"

9 years agoMerge "Support pudb as a different post mortem debugger"
Jenkins [Wed, 26 Nov 2014 15:58:11 +0000 (15:58 +0000)]
Merge "Support pudb as a different post mortem debugger"

9 years agoDrop RpcProxy usage from MeteringAgentNotifyAPI
Russell Bryant [Tue, 25 Nov 2014 17:37:55 +0000 (17:37 +0000)]
Drop RpcProxy usage from MeteringAgentNotifyAPI

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

Part of blueprint drop-rpc-compat.

Change-Id: I6c1fddb6694f74021b9f6a54885657916bda2875

9 years agoDrop RpcProxy usage from l2population code
Russell Bryant [Mon, 24 Nov 2014 20:50:03 +0000 (20:50 +0000)]
Drop RpcProxy usage from l2population code

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

Part of blueprint drop-rpc-compat.

Change-Id: Ie6d45f1871c2dba603bc17851b753bb960a9ca2b

9 years agoDrop RpcProxy usage from cisco apic ml2 plugin
Russell Bryant [Mon, 24 Nov 2014 18:48:38 +0000 (18:48 +0000)]
Drop RpcProxy usage from cisco apic ml2 plugin

Drop usage fo the RpcProxy compatibility class from the cisco apic ml2
plugin.  The equivalent oslo.messaging APIs are now used instead.

Part of blueprint drop-rpc-compat.

Change-Id: I415b65720a09652bae70fc1c1dada9f5727c4441

9 years agoDrop RpcProxy usage from oneconvergence plugin
Russell Bryant [Sun, 23 Nov 2014 02:37:46 +0000 (02:37 +0000)]
Drop RpcProxy usage from oneconvergence plugin

This patch removes usage of the RpcProxy compatibility class from the
oneconvergence plugin.  The equivalent usage of oslo.messaging APIs is
now used intead.

Part of blueprint drop-rpc-compat.

Change-Id: Ifa74849ba9e3dc09cbb8cb3a723aeaa2b25b87ad

9 years agoMerge "Migrate to oslo.utils"
Jenkins [Wed, 26 Nov 2014 15:13:32 +0000 (15:13 +0000)]
Merge "Migrate to oslo.utils"

9 years agoMerge "Fix incorrect int/tuple comparison during binary search"
Jenkins [Wed, 26 Nov 2014 14:56:52 +0000 (14:56 +0000)]
Merge "Fix incorrect int/tuple comparison during binary search"

9 years agoSynced processutils and periodic_task modules
Ihar Hrachyshka [Fri, 21 Nov 2014 21:05:56 +0000 (22:05 +0100)]
Synced processutils and periodic_task modules

This is to avoid using gettextutils module in them to be able to drop
the module once we complete migration to oslo.i18n.

Included changes:

* openstack/common/_i18n.py:
  66bad01 Allow tempest to use new log w/o oslo.i18n

* openstack/common/log.py:
  ac4330d Make use_syslog=True log to syslog via /dev/log
  df774ff Import PublishErrorsHandler from oslo.messaging
  a3220c5 add list_opts to all modules with configuration options

* openstack/common/periodic_task.py:
  a3220c5 add list_opts to all modules with configuration options
  5d40e14 Remove code that moved to oslo.i18n

* openstack/common/processutils.py:
  5d40e14 Remove code that moved to oslo.i18n
  6ff6b4b Switch oslo-incubator to use oslo.utils and remove old modules
  6a60f84 Mask passwords in exceptions and error messages
  63c99a0 Mask passwords in exceptions and error messages
  e184dd3 Fix exception message in openstack.common.processutils.execute
  d6b55fb Remove `processutils` dependency on `log`
  33afb20 Fix broken formatting of processutils.execute log statement
  85f1784 Move nova.utils.cpu_count() to processutils module
  cdcc19c Mask passwords that are included in commands
  2a4d15d Merge "Allow passing environment variables to execute()"
  8a0f567 Remove str() from LOG.* and exceptions
  51778f9 Allow passing environment variables to execute()
  fcf517d Update oslo log messages with translation domains
  af41592 Catch OSError in processutils
  f773ea2 Fix i18n problem in processutils module

Change-Id: Ie2fe4b78af14a4fb7ce4fabed543877d4b0d48e6

9 years agoMigrate to oslo.utils
Ihar Hrachyshka [Thu, 9 Oct 2014 14:21:49 +0000 (16:21 +0200)]
Migrate to oslo.utils

The following modules are removed:
  - excutils,
  - importutils,
  - network_utils,
  - strutils,
  - timeutils.

Closes-Bug: #1385355
Change-Id: I1f34f17f5dbf37032584008f27e65d4dc4d475f4

9 years agoFix floating-ips in error state in dvr mode
Sylvain Afchain [Thu, 20 Nov 2014 14:25:58 +0000 (14:25 +0000)]
Fix floating-ips in error state in dvr mode

Before this fix an exception was raised when
creating the veth between the fip namespace and
the qrouter namespace when the veth was already
present.
This fix add a check to only create the veth if
not present.

Change-Id: Iefea9778223aac885bedfdacfdeacfce74776333
Closes-Bug: #1376013

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 26 Nov 2014 09:05:11 +0000 (09:05 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Drop RpcProxy usage from nec plugin"
Jenkins [Wed, 26 Nov 2014 07:58:59 +0000 (07:58 +0000)]
Merge "Drop RpcProxy usage from nec plugin"

9 years agoMerge "Drop RpcProxy usage from mlnx plugin"
Jenkins [Wed, 26 Nov 2014 07:52:10 +0000 (07:52 +0000)]
Merge "Drop RpcProxy usage from mlnx plugin"

9 years agoReject trailing whitespaces in IP address
Hironori Shiina [Wed, 26 Nov 2014 04:41:06 +0000 (13:41 +0900)]
Reject trailing whitespaces in IP address

Trailing whitespaces in IP address or CIDR pass API validation. These
whitespaces sometimes cause serious troubles. For instance, a trailing
CR code in allocation pools cause an ovs-agent to crash when calling
iptables. In this case, a tenant user's operation mistake affects whole
system.

By modifying _validate_no_whitespace() to reject data with whitespaces
in the beginning and the end, the IP address and CIDR validation
detects invalid attributes. The MAC address validation already rejects
these whitespaces.

Change-Id: Id4589236cfd44c2fd5956c5ab4ab6871381a0c34
Closes-Bug: #1393329

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

9 years agoMerge "Fix PYTHONHASHSEED bugs in test_security_groups_rpc"
Jenkins [Wed, 26 Nov 2014 04:06:13 +0000 (04:06 +0000)]
Merge "Fix PYTHONHASHSEED bugs in test_security_groups_rpc"

9 years agoCSCO:Tenants not to access unshared n/w profiles
Saksham Varma [Thu, 4 Sep 2014 21:53:50 +0000 (14:53 -0700)]
CSCO:Tenants not to access unshared n/w profiles

Ensure that a n1kv tenant who has no access to a network profile
belonging to some other tenant, is not allowed to modify that profile.
Currently, a tenant can create networks on any network profile if he
has the network profile id.

Change-Id: I53d767acceaa5e2c08e75e6f18847f659cda8d8b
Closes-Bug: 1365727

9 years agoMerge "Fix handling of CIDR in allowed address pairs"
Jenkins [Wed, 26 Nov 2014 01:36:41 +0000 (01:36 +0000)]
Merge "Fix handling of CIDR in allowed address pairs"

9 years agoMerge "Drop RpcProxy usage from ibm plugin"
Jenkins [Wed, 26 Nov 2014 00:35:42 +0000 (00:35 +0000)]
Merge "Drop RpcProxy usage from ibm plugin"

9 years agoMerge "Drop RpcProxy usage from hyperv plugin"
Jenkins [Wed, 26 Nov 2014 00:35:27 +0000 (00:35 +0000)]
Merge "Drop RpcProxy usage from hyperv plugin"

9 years agoMerge "Drop RpcProxy usage from cisco.l3"
Jenkins [Wed, 26 Nov 2014 00:33:36 +0000 (00:33 +0000)]
Merge "Drop RpcProxy usage from cisco.l3"

9 years agoMerge "Drop RpcProxy usage from cisco.cfg_agent"
Jenkins [Wed, 26 Nov 2014 00:33:22 +0000 (00:33 +0000)]
Merge "Drop RpcProxy usage from cisco.cfg_agent"

9 years agoMerge "Drop RpcProxy usage from brocade plugin"
Jenkins [Wed, 26 Nov 2014 00:33:07 +0000 (00:33 +0000)]
Merge "Drop RpcProxy usage from brocade plugin"

9 years agoMerge "Drop sudo requirement from a unit test"
Jenkins [Wed, 26 Nov 2014 00:32:48 +0000 (00:32 +0000)]
Merge "Drop sudo requirement from a unit test"

9 years agoMerge "Fix metadata proxy start problem for v6-v4 network"
Jenkins [Wed, 26 Nov 2014 00:30:04 +0000 (00:30 +0000)]
Merge "Fix metadata proxy start problem for v6-v4 network"

9 years agoMerge "Update i18n translation for Cisco plugins and cfg agent log msg's"
Jenkins [Tue, 25 Nov 2014 18:36:02 +0000 (18:36 +0000)]
Merge "Update i18n translation for Cisco plugins and cfg agent log msg's"

9 years agoDrop sudo requirement from a unit test
Russell Bryant [Tue, 25 Nov 2014 18:06:46 +0000 (18:06 +0000)]
Drop sudo requirement from a unit test

I noticed while working on some other stuff that a unit test was
prompting me for my sudo password.  I narrowed it down to the
offending test case and fixed it by mocking out the execute util, as
is done in several other places in these tests.

Change-Id: I93c6cdb8a26d3be5df5386091dc70a240ab7c190
Closes-bug: #1396276

9 years agoMerge "Remove ryu plugin"
Jenkins [Tue, 25 Nov 2014 17:28:47 +0000 (17:28 +0000)]
Merge "Remove ryu plugin"

9 years agoRemove Python 2.6 classifier
Julien Danjou [Tue, 25 Nov 2014 15:58:49 +0000 (16:58 +0100)]
Remove Python 2.6 classifier

Neutron does not support Python 2.6 anymore starting with Kilo and might
not work correctly with it, so remove the classifier.

Change-Id: Ib7cddecdbec2c5152fe526bada6587129cf63ffd

9 years agoUpdate i18n translation for Cisco plugins and cfg agent log msg's
Bob Melander [Mon, 24 Nov 2014 11:59:20 +0000 (12:59 +0100)]
Update i18n translation for Cisco plugins and cfg 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 cisco
directory under neutron/plugins.

Change-Id: I4463ea3f4ec72f683d61043105a7883f629cefe9
Partial-Bug: #1320867

9 years agoRemove ryu plugin
YAMAMOTO Takashi [Mon, 10 Nov 2014 04:32:26 +0000 (13:32 +0900)]
Remove ryu plugin

Ryu plugin was marked deprecated in Juno.
This commit actually removes the code for Kilo.

We (Ryu team) recommend users to migrate to ofagent, on which
we aim to concentrate our development resources by this deprecation.

DocImpact
Partial-Bug: #1391714
Change-Id: I4916ce3c246730dc00516404471f8a1a008e27b6

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 25 Nov 2014 06:08:30 +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: I256ed935bcb0c123147281666960b1cd57ee2b5a

9 years agoMerge "Update i18n translation for linuxbridge log msg's"
Jenkins [Tue, 25 Nov 2014 04:54:16 +0000 (04:54 +0000)]
Merge "Update i18n translation for linuxbridge log msg's"

9 years agoMerge "Eliminate unnecessary indirection in L3 agent"
Jenkins [Tue, 25 Nov 2014 02:58:38 +0000 (02:58 +0000)]
Merge "Eliminate unnecessary indirection in L3 agent"

9 years agoMerge "Catch NoResultFound in _get_policy_profile_by_name"
Jenkins [Tue, 25 Nov 2014 02:57:40 +0000 (02:57 +0000)]
Merge "Catch NoResultFound in _get_policy_profile_by_name"

9 years agoMerge "Fix context.elevated"
Jenkins [Tue, 25 Nov 2014 02:57:27 +0000 (02:57 +0000)]
Merge "Fix context.elevated"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 25 Nov 2014 02:57:15 +0000 (02:57 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Test HA router failover"
Jenkins [Tue, 25 Nov 2014 02:53:41 +0000 (02:53 +0000)]
Merge "Test HA router failover"