]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoMerge "Use assertTrue(observed) instead of assertEqual(True, observed)"
Jenkins [Mon, 12 Oct 2015 09:13:37 +0000 (09:13 +0000)]
Merge "Use assertTrue(observed) instead of assertEqual(True, observed)"

8 years agoMerge "Add pointers to access Neutron test coverage details"
Jenkins [Sun, 11 Oct 2015 17:02:40 +0000 (17:02 +0000)]
Merge "Add pointers to access Neutron test coverage details"

8 years agoQuick optimization to avoid a query if no ports have fixed ips
Carl Baldwin [Wed, 7 Oct 2015 19:49:27 +0000 (19:49 +0000)]
Quick optimization to avoid a query if no ports have fixed ips

I just noticed this trivial optimization while working on address
scopes changes.

Change-Id: I6f852f47c3d9ae5d0bf7a9950e8829f8bcb63cff

8 years agoMerge "Fix rule generation for single and all host rules"
Jenkins [Fri, 9 Oct 2015 18:46:46 +0000 (18:46 +0000)]
Merge "Fix rule generation for single and all host rules"

8 years agoMerge "Correct MAC representation to match iptables output"
Jenkins [Fri, 9 Oct 2015 16:00:06 +0000 (16:00 +0000)]
Merge "Correct MAC representation to match iptables output"

8 years agoUse assertTrue(observed) instead of assertEqual(True, observed)
Hirofumi Ichihara [Mon, 5 Oct 2015 22:50:18 +0000 (07:50 +0900)]
Use assertTrue(observed) instead of assertEqual(True, observed)

We should use assertTrue not assertEqual.

Closes-Bug: #1503071

Change-Id: Ib75dd9f8965fd04fe581f09a5e5df3df43542d89

8 years agoMerge "Removed release_port_fixed_ip dead code"
Jenkins [Fri, 9 Oct 2015 12:56:18 +0000 (12:56 +0000)]
Merge "Removed release_port_fixed_ip dead code"

8 years agoMerge "Removed neutronclient option from metadata agent"
Jenkins [Fri, 9 Oct 2015 12:38:00 +0000 (12:38 +0000)]
Merge "Removed neutronclient option from metadata agent"

8 years agoMerge "Remove remaining uses of load_admin_roles flag in tests"
Jenkins [Fri, 9 Oct 2015 12:17:31 +0000 (12:17 +0000)]
Merge "Remove remaining uses of load_admin_roles flag in tests"

8 years agoMerge "Removed a pile of debtcollector removals from neutron.context"
Jenkins [Fri, 9 Oct 2015 12:17:12 +0000 (12:17 +0000)]
Merge "Removed a pile of debtcollector removals from neutron.context"

8 years agoMerge "Consume ConfigurableMiddleware from oslo_middleware"
Jenkins [Fri, 9 Oct 2015 12:16:28 +0000 (12:16 +0000)]
Merge "Consume ConfigurableMiddleware from oslo_middleware"

8 years agoMerge "Validate local_ip for linuxbridge-agent"
Jenkins [Fri, 9 Oct 2015 12:15:54 +0000 (12:15 +0000)]
Merge "Validate local_ip for linuxbridge-agent"

8 years agoMerge "Move gateway processing out of init_router_port"
Jenkins [Fri, 9 Oct 2015 11:53:40 +0000 (11:53 +0000)]
Merge "Move gateway processing out of init_router_port"

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Fri, 9 Oct 2015 11:19:52 +0000 (11:19 +0000)]
Merge "Imported Translations from Zanata"

8 years agoMerge "Only lock in set_members on mutating operations"
Jenkins [Fri, 9 Oct 2015 07:57:10 +0000 (07:57 +0000)]
Merge "Only lock in set_members on mutating operations"

8 years agoMerge "test_create_router_gateway_fails fixes"
Jenkins [Fri, 9 Oct 2015 06:53:01 +0000 (06:53 +0000)]
Merge "test_create_router_gateway_fails fixes"

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Fri, 9 Oct 2015 06:21:29 +0000 (06:21 +0000)]
Imported Translations from Zanata

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

Change-Id: I5362373b349baa17bedb7347c649e70151ca375e

8 years agoMerge "Fix iptables comments for bare jump rules"
Jenkins [Fri, 9 Oct 2015 01:45:29 +0000 (01:45 +0000)]
Merge "Fix iptables comments for bare jump rules"

8 years agoMerge "Remove excessive fallback iptables ACCEPT rules"
Jenkins [Fri, 9 Oct 2015 01:39:51 +0000 (01:39 +0000)]
Merge "Remove excessive fallback iptables ACCEPT rules"

8 years agoMerge "Cleaned up remaining incorrect usage for LOG.exception"
Jenkins [Fri, 9 Oct 2015 01:11:55 +0000 (01:11 +0000)]
Merge "Cleaned up remaining incorrect usage for LOG.exception"

8 years agoMerge "Effective: avoid mocking open() if you can"
Jenkins [Thu, 8 Oct 2015 22:25:15 +0000 (22:25 +0000)]
Merge "Effective: avoid mocking open() if you can"

8 years agoMerge "Mock oslo policy HTTPCheck instead of urllib"
Jenkins [Thu, 8 Oct 2015 22:24:53 +0000 (22:24 +0000)]
Merge "Mock oslo policy HTTPCheck instead of urllib"

8 years agoMerge "Consume sslutils and wsgi modules from oslo.service"
Jenkins [Thu, 8 Oct 2015 22:20:42 +0000 (22:20 +0000)]
Merge "Consume sslutils and wsgi modules from oslo.service"

8 years agoMerge "Update gate dashboard URLs"
Jenkins [Thu, 8 Oct 2015 22:04:25 +0000 (22:04 +0000)]
Merge "Update gate dashboard URLs"

8 years agoMerge "Add the functional-py34 and dsvm-functional-py34 targets to tox.ini"
Jenkins [Thu, 8 Oct 2015 22:04:10 +0000 (22:04 +0000)]
Merge "Add the functional-py34 and dsvm-functional-py34 targets to tox.ini"

8 years agoOnly lock in set_members on mutating operations
Kevin Benton [Mon, 5 Oct 2015 14:57:54 +0000 (07:57 -0700)]
Only lock in set_members on mutating operations

ipset was locking on every set_members call with an external
filesystem lock. This was expensive when lots of ports that
were a part of the same security group were on the same agent.

This patch adjusts it to check if it needs to make a change before
acquiring the semaphore.

Closes-Bug: #1502930
Change-Id: I2553ab74b7d0fbada5d573246194f83d58bd7d56

8 years agoMerge "Code refactor for generating integer in testcase"
Jenkins [Thu, 8 Oct 2015 20:53:37 +0000 (20:53 +0000)]
Merge "Code refactor for generating integer in testcase"

8 years agoMerge "Remove usage of WritableLogger from oslo_log"
Jenkins [Thu, 8 Oct 2015 20:50:10 +0000 (20:50 +0000)]
Merge "Remove usage of WritableLogger from oslo_log"

8 years agoAdd pointers to access Neutron test coverage details
armando-migliaccio [Thu, 8 Oct 2015 18:43:26 +0000 (11:43 -0700)]
Add pointers to access Neutron test coverage details

Being aware of what the coverage looks like should help
writing more comprehensive tests.

Change-Id: Idd31edb2695d6b2b3475bfd3b2e9eafd6c12ba8e

8 years agoConsume ConfigurableMiddleware from oslo_middleware
Elena Ezhova [Mon, 28 Sep 2015 11:52:18 +0000 (14:52 +0300)]
Consume ConfigurableMiddleware from oslo_middleware

Middleware class in neutron/wsgi.py can be replaced with
ConfigurableMiddleware from oslo_middleware.

Remove the Debug helper class as it doesn't seem to be used
anywhere. Instead, one can use oslo_middleware.debug.Debug.

Added a note about possible implications for out-of-tree plugins
to neutron_api.rst.

Change-Id: If7360608f94625b7d0972267b763f3e7d7624fee

8 years agoRemove excessive fallback iptables ACCEPT rules
Kevin Benton [Mon, 5 Oct 2015 14:06:54 +0000 (07:06 -0700)]
Remove excessive fallback iptables ACCEPT rules

The previous code was generating a fallback ACCEPT rule for every
port when there should only be one at the very end. The reason that
this wasn't causing a bug is because we have a duplicate rule remover
that was silently throwing away the extras and it happened to get them
in the right order.

Closes-Bug: #1502906
Change-Id: I83cf574f93b512be1ccefdc8da63e1783d279233

8 years agoConsume sslutils and wsgi modules from oslo.service
Elena Ezhova [Fri, 25 Sep 2015 13:07:51 +0000 (16:07 +0300)]
Consume sslutils and wsgi modules from oslo.service

sslutils and basic WSGI functionality have been moved to
oslo.service and now Neutron can reuse them.

Marked ssl options that were renamed in oslo.service as
deprecated.

Added a note about possible implications for out-of-tree plugins
to neutron_api.rst

Bumped oslo.service version to 0.9.0.

Related-Bug: #1482633

Depends-On: I0424a6c261fae447dbc25b3abf00258c860a88f5
Change-Id: Ibfdf07e665fcfcd093a0e31274e1a6116706aec2

8 years agotest_create_router_gateway_fails fixes
YAMAMOTO Takashi [Thu, 1 Oct 2015 09:20:18 +0000 (18:20 +0900)]
test_create_router_gateway_fails fixes

- Use the existing network.  Otherwise this test fails earlier than
  intended.  (with NetworkNotFound)

- Use a dedicated exception to avoid accepting other exceptions
  like NetworkNotFound

- Move the test for L3_NAT_dbonly_mixin into a separate class.
  Skip it if the plugin does not inherit L3_NAT_dbonly_mixin.

Change-Id: Ic5d5162320bf3ff1bb8b09de3e8200ca46023b32

8 years agoCode refactor for generating integer in testcase
Manjeet Singh Bhatia [Fri, 2 Oct 2015 21:36:22 +0000 (17:36 -0400)]
Code refactor for generating integer in testcase

This will remove the need of import random in unit/objects/test_base.py
as its already done in tests/tools.py and some of the functions are
called from there.

Change-Id: Icf1d5518f9f394b534e3b75cfe55f2adf7fe5169

8 years agoEffective: avoid mocking open() if you can
armando-migliaccio [Wed, 7 Oct 2015 23:27:11 +0000 (16:27 -0700)]
Effective: avoid mocking open() if you can

Change-Id: Idcf1d1a410be10c5a557ab89a5dc83e3649cd086

8 years agoMerge "Fixed multiple py34 gate issues"
Jenkins [Thu, 8 Oct 2015 17:15:29 +0000 (17:15 +0000)]
Merge "Fixed multiple py34 gate issues"

8 years agoCleaned up remaining incorrect usage for LOG.exception
Ihar Hrachyshka [Thu, 8 Oct 2015 12:56:30 +0000 (14:56 +0200)]
Cleaned up remaining incorrect usage for LOG.exception

- callers should not explicitly pass exceptions into LOG.exception
  because it's already implicitly included in the message by stdlib
  logging module.
- callers should not call to LOG.exception when there is no exception to
  log about (known to fail in Python 3.x < 3.5).

Change-Id: I58e7e01ed152028ad43bb3ada87d719caa2ab08d
Related-Bug: #1504053

8 years agoRemove usage of WritableLogger from oslo_log
Ihar Hrachyshka [Thu, 8 Oct 2015 13:48:12 +0000 (15:48 +0200)]
Remove usage of WritableLogger from oslo_log

With Eventlet 0.17.2, we can directly pass the logger instance. This
allows us to deprecate/remove the WritableLogger class from oslo.log.

Closes-Bug: #1440773
Change-Id: I3985b30b499a1e676d39c2a6cd3a31ac13c0ab47

8 years agoFixed multiple py34 gate issues
Kevin Benton [Wed, 7 Oct 2015 03:16:15 +0000 (20:16 -0700)]
Fixed multiple py34 gate issues

1. Scope mock of 'open' to module

By mocking 'open' at the module level, we can avoid affecting
'open' calls from other modules.

2. Stop using LOG.exception in contexts with no sys.exc_info set

Python 3.4 logger fills in record.exc_info with sys.exc_info() result
[1], and then it uses it to determine the current exception [2] to
append to the log message. Since there is no exception, exc_info[1] is
None, and we get AttributeError inside traceback module.

It's actually a bug in Python interpreter that it attempt to access the
attribute when there is no exception. It turns out that it's fixed in
latest master of cPython [3] (the intent of the patch does not seem
relevant, but it removes the offending code while reshuffling the code).
Note that now cPython correctly checks the exception value before
accessing its attributes [4].

The patch in cPython that resulted in the failure is [5] and is present
since initial Python 3k releases.

The patch in fixtures that broke us is [6].

[1]: https://hg.python.org/cpython/file/tip/Lib/logging/__init__.py#l1412
[2]: https://hg.python.org/cpython/file/tip/Lib/logging/__init__.py#l575
[3]: https://hg.python.org/cpython/rev/73afda5a4e4c
[4]: https://hg.python.org/cpython/rev/73afda5a4e4c#l6.484
[5]: https://hg.python.org/cpython/rev/2ee09afee126
[6]: https://github.com/testing-cabal/fixtures/commit/67dd2956943261e845a866dab155208c51da937e

Closes-Bug: #1503847
Closes-Bug: #1504053
Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
Change-Id: I456b7846b8a53e4d3f8c91583685e0e1eaa84719

8 years agoRemoved release_port_fixed_ip dead code
Ihar Hrachyshka [Wed, 7 Oct 2015 13:05:40 +0000 (15:05 +0200)]
Removed release_port_fixed_ip dead code

It's not used since I822cc4a92cb05cdef88679bb628fad4e5063cddd.

Closes-Bug: #1212520
Change-Id: I1bb0755fa1379f3dad4241e7ae8d50c4c842d89e

8 years agoValidate local_ip for linuxbridge-agent
Nick [Tue, 11 Aug 2015 05:25:10 +0000 (13:25 +0800)]
Validate local_ip for linuxbridge-agent

When tunneling is enabled, check the availability
of the IP address in local_ip belonging to the host
interface.

Change-Id: Ic1b893d61d5efef397773cdba3b7418ef70a0417
Closes-Bug: #1483497

8 years agoMerge "Adding headers to the devref docs"
Jenkins [Wed, 7 Oct 2015 20:48:40 +0000 (20:48 +0000)]
Merge "Adding headers to the devref docs"

8 years agoMerge "Add testresources used by oslo.db fixture"
Jenkins [Wed, 7 Oct 2015 19:30:05 +0000 (19:30 +0000)]
Merge "Add testresources used by oslo.db fixture"

8 years agoRemoved neutronclient option from metadata agent
Ihar Hrachyshka [Mon, 5 Oct 2015 15:46:33 +0000 (17:46 +0200)]
Removed neutronclient option from metadata agent

The new RPC interface has proved itself for two cycles, I don't
recollect any serious issues with it, so let's just clean up the
obsolete neutronclient based fallback mechanism.

The metadata agent configuration documentation should be updated
to not require API configuration values for the agent to talk to
neutron-server.

DocImpact
Change-Id: I254c575c66214f50fb93a94c46c4c9caebfc2937
Closes-Bug: #1502947

8 years agoMerge "Updated from global requirements"
Jenkins [Wed, 7 Oct 2015 16:12:18 +0000 (16:12 +0000)]
Merge "Updated from global requirements"

8 years agoMerge "Improvements to the RFE management process"
Jenkins [Wed, 7 Oct 2015 14:54:49 +0000 (14:54 +0000)]
Merge "Improvements to the RFE management process"

8 years agoAdding headers to the devref docs
vikram.choudhary [Wed, 7 Oct 2015 12:59:04 +0000 (18:29 +0530)]
Adding headers to the devref docs

This patch adds missing headers to all the devref documents.

Change-Id: Ice2f93f37a2cade7d5af552aaae6cd9f66dc953c

8 years agoAdd testresources used by oslo.db fixture
Davanum Srinivas [Wed, 7 Oct 2015 01:47:00 +0000 (18:47 -0700)]
Add testresources used by oslo.db fixture

If we use oslo.db fixtures, we'll need the package or
the next version of oslo.db release will break us.

Closes-Bug: #1503501
Change-Id: I7dfbf240333095d91a414ba15a439bdc4804eb25

8 years agoAdd the functional-py34 and dsvm-functional-py34 targets to tox.ini
Cyril Roelandt [Wed, 7 Oct 2015 08:55:25 +0000 (10:55 +0200)]
Add the functional-py34 and dsvm-functional-py34 targets to tox.ini

This will allow us to run the functional tests on the gates using Python 3.

Change-Id: I218c73398c6ed6cff776b65a66cb9336219cba77
Partial-Bug: #1500400

8 years agoImprovements to the RFE management process
armando-migliaccio [Wed, 7 Oct 2015 04:11:26 +0000 (21:11 -0700)]
Improvements to the RFE management process

The Drivers team realized that with the current model, RFE
bugs were never off their radar even though RFE proposals were
approved and ready to be worked on. As a result it was becoming
tricky to handle the RFE backlog during the drivers meeting.

These changes are aimed at keeping the list of RFE bugs to a
manageable size, irrespective of how fast code gets submitted
and merged: the responsibilities of vetting feature proposals
and reviewing code are very much different, and this policy
changes try to reflect that.

Change-Id: I37b7f1b7c3538e871cb9bc5cbfba61d99858f16f

8 years agoMock oslo policy HTTPCheck instead of urllib
Kevin Benton [Wed, 7 Oct 2015 02:28:47 +0000 (19:28 -0700)]
Mock oslo policy HTTPCheck instead of urllib

We were mocking internal behavior of oslo policy by
patching urllib. This will break with the upcoming oslo
release that switches to requests.

This patch changes the mock to the HTTPCheck level and we
can leave implementation details testing up to oslo_policy.

Change-Id: I07957f01307e25f1547197c720eea6e3e7f0ef5a
Closes-Bug: #1503890

8 years agoAdd py34 tags to the list of official tags
armando-migliaccio [Wed, 7 Oct 2015 03:34:54 +0000 (20:34 -0700)]
Add py34 tags to the list of official tags

Whilst the porting is in progress, there can be a number
of issues popping up, so it's good to have a way to capture
them all at once.

Change-Id: I7a92bbbc67f93270f898c5dfa38d1962226c32a0

8 years agoMerge "DHCP: protect against case when device name is None"
Jenkins [Wed, 7 Oct 2015 01:48:51 +0000 (01:48 +0000)]
Merge "DHCP: protect against case when device name is None"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 7 Oct 2015 01:43:13 +0000 (01:43 +0000)]
Updated from global requirements

Change-Id: Ic6f9bc83375b97b02f6f92bbdec39de96801fc40

8 years agoMerge "Remove OneConvergence plugin from the source tree"
Jenkins [Wed, 7 Oct 2015 01:39:08 +0000 (01:39 +0000)]
Merge "Remove OneConvergence plugin from the source tree"

8 years agoMerge "Add networking-bgpvpn lieutenants"
Jenkins [Wed, 7 Oct 2015 01:23:36 +0000 (01:23 +0000)]
Merge "Add networking-bgpvpn lieutenants"

8 years agoMerge "L3 Agent support for routers with HA and DVR"
Jenkins [Wed, 7 Oct 2015 00:32:14 +0000 (00:32 +0000)]
Merge "L3 Agent support for routers with HA and DVR"

8 years agoFix rule generation for single and all host rules
Kevin Benton [Mon, 5 Oct 2015 14:26:09 +0000 (07:26 -0700)]
Fix rule generation for single and all host rules

iptables outputs single-host rules with a prefix on the
end (/32 or /128) and completely omits /0 rules since they
allow everything.

This patch fixes our rule generation to match that pattern
so iptables counters don't get destroyed on these rules on
every reload.

Closes-Bug: #1502917
Change-Id: Ifbdfbafd6cf37c6ef7385cd5f1d2df65cc19797a

8 years agoFix iptables comments for bare jump rules
Kevin Benton [Mon, 5 Oct 2015 15:07:56 +0000 (08:07 -0700)]
Fix iptables comments for bare jump rules

This fixes the order of arguments in iptables rules that
are bare jumps (e.g. '-j other-chain').

The previous code was only catching jump rules that appeared
after a chain definition.

Closes-Bug: #1502932
Change-Id: I490792eb08c67a32f9b286d933a776fb76840b6b

8 years agoMerge "Add some test guidelines to 'effective neutron'"
Jenkins [Tue, 6 Oct 2015 19:10:19 +0000 (19:10 +0000)]
Merge "Add some test guidelines to 'effective neutron'"

8 years agoMerge "Adding Effective tips for plugin development"
Jenkins [Tue, 6 Oct 2015 18:25:53 +0000 (18:25 +0000)]
Merge "Adding Effective tips for plugin development"

8 years agoMerge "Add note in database section of 'effective neutron'"
Jenkins [Tue, 6 Oct 2015 17:18:30 +0000 (17:18 +0000)]
Merge "Add note in database section of 'effective neutron'"

8 years agoMerge "Refactoring devstack script"
Jenkins [Tue, 6 Oct 2015 17:18:13 +0000 (17:18 +0000)]
Merge "Refactoring devstack script"

8 years agoMerge "Add a logging guideline to 'effective neutron'"
Jenkins [Tue, 6 Oct 2015 17:15:38 +0000 (17:15 +0000)]
Merge "Add a logging guideline to 'effective neutron'"

8 years agoMerge "Add a patch scope section to 'effective neutron'"
Jenkins [Tue, 6 Oct 2015 17:15:25 +0000 (17:15 +0000)]
Merge "Add a patch scope section to 'effective neutron'"

8 years agoRemoved a pile of debtcollector removals from neutron.context
Ihar Hrachyshka [Thu, 1 Oct 2015 14:28:26 +0000 (16:28 +0200)]
Removed a pile of debtcollector removals from neutron.context

The next dev cycle is up, so let's get rid of that old stuff.

Related-Bug: #1449462
Related-Bug: #1446021
Change-Id: I0561a6c4ea420ba06029a88db442bf7165f755df

8 years agoL3 Agent support for routers with HA and DVR
Michael Smith [Fri, 5 Dec 2014 00:15:43 +0000 (16:15 -0800)]
L3 Agent support for routers with HA and DVR

The main difference for DVR HA routers is where
the VRRP/keepalived logic is run and which ports
fall in the HA domain for DVR.  Instead of running
in the qrouter namespace, keepalived will run inside
the snat-namespace.  Therefore only snat ports will
fall under the control of the HA domain.

Partial-Bug: #1365473

Change-Id: If2962580397d39f72fd1fbbc1188a6958f00ff0c
Co-Authored-By: Michael Smith <michael.smith6@hp.com>
Co-Authored-By: Hardik Italia <hardik.italia@hp.com>
Co-Authored-By: Adolfo Duarte <adolfo.duarte@hp.com>
Co-Authored-By: John Schwarz <jschwarz@redhat.com>
8 years agoAdding Effective tips for plugin development
armando-migliaccio [Mon, 5 Oct 2015 17:15:34 +0000 (10:15 -0700)]
Adding Effective tips for plugin development

Change-Id: I4384e4476e7081b0ebfabc7367d32c683cc4d58d

8 years agoAdd networking-bgpvpn lieutenants
Mathieu Rohon [Tue, 6 Oct 2015 14:43:01 +0000 (14:43 +0000)]
Add networking-bgpvpn lieutenants

Change-Id: I7e47805281feea694ed5ed4e029d51f361f1f38a

8 years agoUpdate gate dashboard URLs
Ryan Moats [Tue, 6 Oct 2015 14:14:49 +0000 (09:14 -0500)]
Update gate dashboard URLs

Match up dashboard URLs that purport to show gate job status
with what is currently running in the gate

Change-Id: Ie49459463e2268d38f6db53440c5e49b726611a7
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
8 years agoAdd some test guidelines to 'effective neutron'
Kevin Benton [Tue, 29 Sep 2015 16:10:13 +0000 (09:10 -0700)]
Add some test guidelines to 'effective neutron'

Change-Id: I6253f2e3dc3c723eadf17a9ed40c7ddbdb4627b1

8 years agoFix capitalization nit in patch 230218
Ryan Moats [Tue, 6 Oct 2015 12:42:04 +0000 (07:42 -0500)]
Fix capitalization nit in patch 230218

Fixes the Neutron capitalization nit found by Paul Carver
in patch 230218 after it was in the gate.

Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
Change-Id: I27481b70dbd313ba1fa54708d46db8b99a7e670d

8 years agoMerge "Use assertIsNone(observed) instead of assertEqual(None, observed)"
Jenkins [Tue, 6 Oct 2015 11:33:44 +0000 (11:33 +0000)]
Merge "Use assertIsNone(observed) instead of assertEqual(None, observed)"

8 years agoMerge "Add a note about agent/server compat to 'effective neutron'"
Jenkins [Tue, 6 Oct 2015 11:27:40 +0000 (11:27 +0000)]
Merge "Add a note about agent/server compat to 'effective neutron'"

8 years agoMerge "Add neutron-linuxbridge-cleanup util"
Jenkins [Tue, 6 Oct 2015 11:27:27 +0000 (11:27 +0000)]
Merge "Add neutron-linuxbridge-cleanup util"

8 years agoMerge "Execute ipset command using check_exit_code"
Jenkins [Tue, 6 Oct 2015 11:20:15 +0000 (11:20 +0000)]
Merge "Execute ipset command using check_exit_code"

8 years agoDHCP: protect against case when device name is None
Gary Kotton [Sun, 27 Sep 2015 07:24:31 +0000 (00:24 -0700)]
DHCP: protect against case when device name is None

There are edge cases when the agent attempts to unplug an interface and
the device does not exist.

Change-Id: I6917ec94f685f3dd3bff6aa1d43dc56aab76274a
Closes-bug: #1498370

8 years agoMerge "Add note about negative feedback to 'effective neutron'"
Jenkins [Tue, 6 Oct 2015 09:37:29 +0000 (09:37 +0000)]
Merge "Add note about negative feedback to 'effective neutron'"

8 years agoMerge "Fix missing parent start() call in RpcWorker."
Jenkins [Tue, 6 Oct 2015 09:05:20 +0000 (09:05 +0000)]
Merge "Fix missing parent start() call in RpcWorker."

8 years agoAdd note in database section of 'effective neutron'
AKamyshnikova [Tue, 6 Oct 2015 08:23:11 +0000 (11:23 +0300)]
Add note in database section of 'effective neutron'

Add note about usage aggregate functions with GROUP BY for
PostgreSQL.

Change-Id: I50af8e8e19f638f774d0f1cfb30f56f6cecad65e

8 years agoMerge "Document self.assertEqual(expected, observed) pattern"
Jenkins [Tue, 6 Oct 2015 07:52:49 +0000 (07:52 +0000)]
Merge "Document self.assertEqual(expected, observed) pattern"

8 years agoCorrect MAC representation to match iptables output
Kevin Benton [Mon, 5 Oct 2015 13:37:40 +0000 (06:37 -0700)]
Correct MAC representation to match iptables output

We were previously using the netaddr's mac_unix format
(which leaves off leading 0's) to generate iptables rules
based on MAC addresses. While iptables accepts this format,
it's not returned this way in the output so the iptables
rule matching code would never find the match for these
rules, causing the loss of counters on these rules on every
reload.

This patch corrects this with a custom dialect that matches
the iptables format.

Closes-Bug: #1502901
Change-Id: Ia45ebde8c4684e12030469323e18367a54d1518b

8 years agoAdd note about negative feedback to 'effective neutron'
Kevin Benton [Tue, 29 Sep 2015 16:36:11 +0000 (09:36 -0700)]
Add note about negative feedback to 'effective neutron'

Change-Id: I7808d23779c09f492eef5f024e19285820db57b0

8 years agoAdd a note about agent/server compat to 'effective neutron'
Kevin Benton [Tue, 29 Sep 2015 16:30:35 +0000 (09:30 -0700)]
Add a note about agent/server compat to 'effective neutron'

Change-Id: I4e7476c4cf29aa0eb2722885c7d407d8ea197f1b

8 years agoAdd a patch scope section to 'effective neutron'
Kevin Benton [Tue, 29 Sep 2015 16:27:33 +0000 (09:27 -0700)]
Add a patch scope section to 'effective neutron'

Change-Id: I99d82d25d72689b8e1212267ae346e87862a9006

8 years agoAdd a logging guideline to 'effective neutron'
Kevin Benton [Tue, 29 Sep 2015 15:42:25 +0000 (08:42 -0700)]
Add a logging guideline to 'effective neutron'

LOG statements should only receive unicode.

Change-Id: I6a6d9fdbcc3ed9c7eee4889bfa6f328f1bd6d729

8 years agoFix missing parent start() call in RpcWorker.
Russell Bryant [Tue, 6 Oct 2015 05:00:16 +0000 (06:00 +0100)]
Fix missing parent start() call in RpcWorker.

Patch 5be613490deebf494f2ecbbcd8cb5dd0d6f5e1b3 erroneously removed this
line that is still needed which broke networking-ovn, at least.

Change-Id: I31981e905f892df474c57b45d3e70ebfbeeae1db
Signed-off-by: Russell Bryant <rbryant@redhat.com>
8 years agoMerge "Deprecate max_fixed_ips_per_port"
Jenkins [Tue, 6 Oct 2015 00:27:31 +0000 (00:27 +0000)]
Merge "Deprecate max_fixed_ips_per_port"

8 years agoMerge "Use assertIn and assertNotIn"
Jenkins [Tue, 6 Oct 2015 00:19:43 +0000 (00:19 +0000)]
Merge "Use assertIn and assertNotIn"

8 years agoRemove OneConvergence plugin from the source tree
armando-migliaccio [Mon, 5 Oct 2015 23:43:42 +0000 (16:43 -0700)]
Remove OneConvergence plugin from the source tree

This plugin didn't decompose in the last two cycles, I failed
to spot a functional CI, and there hasn't been any meaningful
activity done in the subtree for the past couple of cycles

I think it is time to implement the eviction.

Related-blueprint: core-vendor-decomposition

Change-Id: I949a51873ee5af654b577952d423dd29a6ced8e7

8 years agoUse assertIsNone(observed) instead of assertEqual(None, observed)
Cedric Brandily [Mon, 5 Oct 2015 21:55:52 +0000 (23:55 +0200)]
Use assertIsNone(observed) instead of assertEqual(None, observed)

Neutron should use the specific assertion:

  self.assertIsNone(observed)

instead of the generic assertion:

  self.assertEqual(None, observed)

as it raises more specific errors.

Closes-Bug: #1503055
Change-Id: Ib7e5875bd0a95320d89a7504f951998fb210acc1

8 years agoDocument self.assertEqual(expected, observed) pattern
Cedric Brandily [Mon, 5 Oct 2015 19:59:44 +0000 (21:59 +0200)]
Document self.assertEqual(expected, observed) pattern

Tests should use the following pattern to help reviewers:

  self.assertEqual(expected, observed)

This change documents it in effective_neutron.rst and corrects some test
modules[1] including nonobvious ones[2] as an example.

[1] neutron.tests.unit.agent.l3.test_.*
[2] neutron.tests.unit.agent.l3.test_router_processing_queue

Change-Id: I6d6363541e3fef6f66e808aab00507825205b209

8 years agoMerge "Make OVS interface name hashing algorithm common and extend it"
Jenkins [Mon, 5 Oct 2015 22:22:10 +0000 (22:22 +0000)]
Merge "Make OVS interface name hashing algorithm common and extend it"

8 years agoMove gateway processing out of init_router_port
Carl Baldwin [Fri, 28 Aug 2015 21:04:26 +0000 (21:04 +0000)]
Move gateway processing out of init_router_port

This method is a bit overloaded

Change-Id: Idc8526c3714856feb3e75d7bab9f6acc33499e3f
Partially-Implements: blueprint address-scopes

8 years agoMerge "Add periodic agents health check."
Jenkins [Mon, 5 Oct 2015 20:18:21 +0000 (20:18 +0000)]
Merge "Add periodic agents health check."

8 years agoMerge "Simplify join to rbac_entries for subnets"
Jenkins [Mon, 5 Oct 2015 20:18:07 +0000 (20:18 +0000)]
Merge "Simplify join to rbac_entries for subnets"

8 years agoMerge "Don't register agents for QoS l2pop fullstack test"
Jenkins [Mon, 5 Oct 2015 20:17:42 +0000 (20:17 +0000)]
Merge "Don't register agents for QoS l2pop fullstack test"

8 years agoMerge "Consume service plugins queues in RPC workers."
Jenkins [Mon, 5 Oct 2015 19:20:09 +0000 (19:20 +0000)]
Merge "Consume service plugins queues in RPC workers."

8 years agoUse assertIn and assertNotIn
Cedric Brandily [Sun, 4 Oct 2015 18:48:44 +0000 (20:48 +0200)]
Use assertIn and assertNotIn

Neutron tests should use:

  self.assertIn(value, list)
  self.assertNotIn(value, list)

instead of:

  self.assertTrue(value in list)
  self.assertFalse(value in list)

because assertIn and assertNotIn raise more meaningful errors:

  self.assertIn(3, [1, 2]
  >>> MismatchError: 3 not in [1, 2]

  self.assertTrue(3 in [1, 2])
  >>> AssertionError: False is not true

Closes-Bug: #1218713

Change-Id: Ic8492a88935bf005feb9dae726a4bee604a8bd09

8 years agoDeprecate max_fixed_ips_per_port
Kevin Benton [Wed, 30 Sep 2015 11:20:02 +0000 (04:20 -0700)]
Deprecate max_fixed_ips_per_port

This option does not have a clear use case since we prevent
users from setting their own IP addresses on shared networks.

DocImpact
Change-Id: I211e87790c955ba5c3904ac27b177acb2847539d
Closes-Bug: #1502356