]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoMerge "Avoid DuplicateOptError in functional tests"
Jenkins [Wed, 14 Oct 2015 01:21:02 +0000 (01:21 +0000)]
Merge "Avoid DuplicateOptError in functional tests"

8 years agoMerge "Make test_server work with older versions of oslo.service"
Jenkins [Wed, 14 Oct 2015 01:20:48 +0000 (01:20 +0000)]
Merge "Make test_server work with older versions of oslo.service"

8 years agoMerge "Replaced deprecated isotime() function"
Jenkins [Wed, 14 Oct 2015 01:15:26 +0000 (01:15 +0000)]
Merge "Replaced deprecated isotime() function"

8 years agoMerge "Fix the bug of "Spelling error of a word""
Jenkins [Tue, 13 Oct 2015 14:57:48 +0000 (14:57 +0000)]
Merge "Fix the bug of "Spelling error of a word""

8 years agoAvoid DuplicateOptError in functional tests
Sergey Belous [Tue, 13 Oct 2015 14:50:05 +0000 (17:50 +0300)]
Avoid DuplicateOptError in functional tests

Some test require to register options with oslo.Config,
but now some of them use global cfg.CONF for it.
This can cause the DuplicateOptError if two tests tried to
register the same option with different values of config.
We should use the oslo_config fixture [1]
in functional tests to avoid it.

[1] http://git.openstack.org/cgit/openstack/oslo.config/tree/oslo_config/fixture.py

Closes-bug: #1505715
Change-Id: I5c2340c0af054dfa78788cbc61dfb1fd9feea535

8 years agoMerge "Add deadlock warning to 'effective neutron'"
Jenkins [Tue, 13 Oct 2015 14:15:06 +0000 (14:15 +0000)]
Merge "Add deadlock warning to 'effective neutron'"

8 years agoMake test_server work with older versions of oslo.service
Ihar Hrachyshka [Tue, 13 Oct 2015 12:46:02 +0000 (14:46 +0200)]
Make test_server work with older versions of oslo.service

Change I18a11283925369bc918002477774f196010a1bc3 fixed the test for
oslo.service >= 0.10.0, but it also broke it for older versions of
oslo.service. Since the library has minimal version of >= 0.7.0 in
requirements.txt, test should pass for those versions too.

Now, instead of validating that either reset() or restart() of workers
are triggered on SIGHUP, just validate that .start() is triggered the
expected number of times (either way, no matter how oslo.service decide
to clean up the children, they exit and then are respawned).

Change-Id: I41f9d3af780b3178b075bc1e7084f417a2bd1378
Closes-Bug: #1505645

8 years agoReplaced deprecated isotime() function
Brandon Palm [Fri, 9 Oct 2015 13:52:58 +0000 (08:52 -0500)]
Replaced deprecated isotime() function

The agents_db.py was using a deprecated function 'isotime()'.

I removed the deprecated function and replaced it with:
datetime.datetime.isoformat()

https://docs.python.org/2/library/datetime.html

Change-Id: I32b6096fb1a42caef529db0a71fa52f7de5706f5
Closes-Bug: #1504557

8 years agoFix the bug of "Spelling error of a word"
JuPing [Mon, 12 Oct 2015 09:21:08 +0000 (17:21 +0800)]
Fix the bug of "Spelling error of a word"

The word "occured" should be spelled as "occurred".
So it is changed.

Change-Id: Ice5212dc8565edb0c5b5c55f979b27440eeeb9aa
Closes-Bug: #1505043

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 agoFix functional test_server tests
armando-migliaccio [Tue, 13 Oct 2015 01:18:48 +0000 (18:18 -0700)]
Fix functional test_server tests

Now oslo.service 0.10.0 no longer sends SIGHUP to parent and
children services.

This was a chance introduced by 286a6ea, and since it invalidated
the very logic under test, this must be revised.

Change-Id: I18a11283925369bc918002477774f196010a1bc3
Closes-bug: #1505438

8 years agoMerge "Add OpenFixture and get rid of 'open' mocks"
Jenkins [Mon, 12 Oct 2015 23:26:52 +0000 (23:26 +0000)]
Merge "Add OpenFixture and get rid of 'open' mocks"

8 years agoRemove disable_service from DBs configuration
Assaf Muller [Mon, 12 Oct 2015 14:40:49 +0000 (10:40 -0400)]
Remove disable_service from DBs configuration

Remove disable_service from configure_for_func_testing.
A recent Devstack patch (Linked in bug report) checks
that a disabled service is not enabled later. This breaks
the code this patch touches. I believe the DBs were disabled
and enabled with the assumption that Devstack expects only
a single DB to be configured at a time, but that doesn't
seem to be the case. Simply removing the disable calls seems
to work fine.

Also exclude oslo.messaging==2.6.0 as per global-requirements.txt.

Closes-Bug: #1505259
Closes-Bug: #1505295

Depends-On: I47ab12f719fba41c2f0c03047b05eb28f4423682
Change-Id: I0fbcc1218e1aa9adbf89f6121c1c2e224ed93cab

8 years agoMerge "QoS SR-IOV: allow to reset vf rate when VF is assigend to VM"
Jenkins [Mon, 12 Oct 2015 13:53:14 +0000 (13:53 +0000)]
Merge "QoS SR-IOV: allow to reset vf rate when VF is assigend to VM"

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 agoAdd deadlock warning to 'effective neutron'
Kevin Benton [Tue, 29 Sep 2015 16:15:50 +0000 (09:15 -0700)]
Add deadlock warning to 'effective neutron'

Change-Id: Iaf9bd0b5d84ecb4f4de406e632c0d05327621bcb

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 agoAdd OpenFixture and get rid of 'open' mocks
Kevin Benton [Thu, 8 Oct 2015 19:31:32 +0000 (12:31 -0700)]
Add OpenFixture and get rid of 'open' mocks

This patch adds a new fixture that allows a specific
file to be mocked for 'open' calls while leaving the
normal 'open' behavior for everything else. This is to
prevent cases like the related bug where a library we
depend on can unexpectedly call 'open' on its own
(in that case it was debtcollector->warnings->linecache).

It also replaces all open mocks in the unit tests with
this new fixture.

Related-Bug: #1503847
Change-Id: Ie9e1a01acd5cb231718efd028d30df6c8dbcd3f0

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 agoQoS SR-IOV: allow to reset vf rate when VF is assigend to VM
Moshe Levi [Thu, 8 Oct 2015 19:41:06 +0000 (22:41 +0300)]
QoS SR-IOV: allow to reset vf rate when VF is assigend to VM

delete_bandwidth_limit method is called in 2 scenarios:
1. when deleting a port
2. when removing a policy from a port

self.eswitch_mgr.clear_max_rate is valdating if VF is not assigned to VM
which is good for case 1, but prevent reseting the max rate for case 2.
for case 2 the delete_bandwidth_limit should  call _set_vf_max_rate with max_kbps=0
to reset VF max rate for assigned VM.

Closes-Bug: #1504165

Change-Id: Ief708531708b8faa918603298d49d39ef5ba2df5

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