]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoMerge "DVR: notify specific agent when creating floating ip"
Jenkins [Wed, 14 Oct 2015 22:03:37 +0000 (22:03 +0000)]
Merge "DVR: notify specific agent when creating floating ip"

8 years agoMerge "Fix inconsistency in DHCPv6 hosts and options generation"
Jenkins [Wed, 14 Oct 2015 18:54:35 +0000 (18:54 +0000)]
Merge "Fix inconsistency in DHCPv6 hosts and options generation"

8 years agoMerge "Add -constraints sections for base CI jobs"
Jenkins [Wed, 14 Oct 2015 18:45:44 +0000 (18:45 +0000)]
Merge "Add -constraints sections for base CI jobs"

8 years agoMerge "Remove useless code in L3 HA unit tests"
Jenkins [Wed, 14 Oct 2015 16:49:25 +0000 (16:49 +0000)]
Merge "Remove useless code in L3 HA unit tests"

8 years agoMerge "Fix error returned when an HA router is updated to DVR"
Jenkins [Wed, 14 Oct 2015 16:34:23 +0000 (16:34 +0000)]
Merge "Fix error returned when an HA router is updated to DVR"

8 years agoMerge "Tweak RFE guidelines"
Jenkins [Wed, 14 Oct 2015 12:36:31 +0000 (12:36 +0000)]
Merge "Tweak RFE guidelines"

8 years agoMerge "Fix link in devref guide"
Jenkins [Wed, 14 Oct 2015 12:36:18 +0000 (12:36 +0000)]
Merge "Fix link in devref guide"

8 years agoAdd -constraints sections for base CI jobs
Sachi King [Mon, 28 Sep 2015 05:20:19 +0000 (15:20 +1000)]
Add -constraints sections for base CI jobs

Using factors with sections is not a thing and likely will not be for
a while, as such we are going to have to duplicate sections to be able
to set the constraints based install_command.

Implements Blueprint: Requirements-Management

Change-Id: Ie679904330a83e4b7eb75c189b48afef127b0d22

8 years agoRemove useless code in L3 HA unit tests
Assaf Muller [Mon, 12 Oct 2015 17:33:02 +0000 (13:33 -0400)]
Remove useless code in L3 HA unit tests

I added a helper function to make the server consider an agent
as down, might as well use it!

Change-Id: If1110de7f46ecb3dc2e72b3c62d7faeb0e71c586

8 years agoTweak RFE guidelines
armando-migliaccio [Tue, 13 Oct 2015 23:38:25 +0000 (16:38 -0700)]
Tweak RFE guidelines

Liberty is behind us. The RFE process has been in place for a cycle
and some refinements have been necessary to make it more streamlined.

The cut-over section has outlived its purpose so it can be removed.
In its place, this patch clarifies how we are going to track RFE in
Launchpad, once the RFE has been 'approved'.

The tl;dr version of this patch is: from Mitaka onwards, feature
submission must happen via RFE bug report submission. Launchpad
blueprints are going to become a tool to be used at discretion of
the project release manager for milestone tracking purposes.

Change-Id: I370e3397682d9f4ebca215b6711f23a2a4fc4233

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 agoFix link in devref guide
armando-migliaccio [Tue, 13 Oct 2015 19:27:41 +0000 (12:27 -0700)]
Fix link in devref guide

warnerrors = True no longer works with Sphinx < 1.3, and this
makes warnings fail silently [2].

A patch [1] is out to fix that, and until pbr releases we will
have to be careful not to bitrot.

This patch fixes the outstanding link error and tweaks the wording
of the affected pill of wisdom.

[1] I680b448471e687919d202e8f2abe57f8ba3b22ee
[2] bug #1496882

Change-Id: Id9cce7ae78c51dceeb56c6b5b8b04340c5378748

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 agoFix inconsistency in DHCPv6 hosts and options generation
Alexey I. Froloff [Wed, 30 Sep 2015 18:38:24 +0000 (21:38 +0300)]
Fix inconsistency in DHCPv6 hosts and options generation

The DHCP agent is inconsistent in how it handles subnets whose
ipv6_address_mode is not slaac.  While the DHCP agent writes out both
DHCPv6 host entries and DHCPv6 options for ports scoped by the subnet
for dnsmasq to use, subnet specific options are not written.

This patch addresses this inconsistency by generating subnet specific
options when the subnet's ipv6_address_mode is not slaac.

Closes-Bug: #1501451

Change-Id: I372c93fa5667e955c7b81181daa2e66f47d85fdf

8 years agoFix error returned when an HA router is updated to DVR
Assaf Muller [Mon, 12 Oct 2015 20:17:13 +0000 (16:17 -0400)]
Fix error returned when an HA router is updated to DVR

Before this patch, the code compares the 'ha' flag that
comes in from the user, and the current state of the 'distributed'
flag in the DB. This is wrong because if a router is currently
HA in the DB, and the update request contains only
{'distributed': True}, then the 'ha' flag from the request
is None and the error condition is never raised!

The reason the unit tests
(Specifically test_migrate_ha_router_to_distributed)
did not catch this issue is because
of another bug: The _update_router helper method in the L3 HA
unit tests had an 'ha' default value of True, when it should
have had a default value of None. Setting it to None fails
the unit test (Because it raises the wrong exception),
and the contents of the patch makes the unit test pass.

Change-Id: Ie979b6a8400490b578ded17dc6529529e9637b34
Closes-Bug: #1505375

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 agoDVR: notify specific agent when creating floating ip
Oleg Bondarev [Mon, 5 Oct 2015 14:34:45 +0000 (17:34 +0300)]
DVR: notify specific agent when creating floating ip

Currently when floating ip is created, a lot of useless action
is happening: floating ip router is scheduled, all l3 agents where
router is scheduled are notified about router update, all agents
request full router info from server. All this becomes a big
performance problem at scale with lots of compute nodes.

In fact on (associated) Floating IP creation we really need
to notify specific l3 agent on compute node where associated
VM port is located and do not need to schedule router and
bother other agents where rourter is scheduled. This should
significally decrease unneeded load on neutron server at scale.

Partial-Bug: #1486828
Change-Id: I0cbe8c51c3714e6cbdc48ca37135b783f8014905

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>