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

8 years agoMerge "Changes in Neutron defect management"
Jenkins [Mon, 5 Oct 2015 15:32:46 +0000 (15:32 +0000)]
Merge "Changes in Neutron defect management"

8 years agoDon't register agents for QoS l2pop fullstack test
Assaf Muller [Mon, 5 Oct 2015 14:46:11 +0000 (10:46 -0400)]
Don't register agents for QoS l2pop fullstack test

Not registering agents (And waiting for them) shaves a couple
of seconds off the test run. More importantly it sets the correct
precedent / usage pattern for future copy/pastes.

Change-Id: I7f91a9d44af28ac0652ed0b054419a71ed7bb1b1

8 years agoMerge "The option force_metadata=True breaks the dhcp agent"
Jenkins [Mon, 5 Oct 2015 10:09:05 +0000 (10:09 +0000)]
Merge "The option force_metadata=True breaks the dhcp agent"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Sun, 4 Oct 2015 22:42:10 +0000 (22:42 +0000)]
Updated from global requirements

Change-Id: I4dc58137eaa84049330d70a4f3b8664479de5608

8 years agoMerge "Remove debtcollector.removals tagged ensure_dir"
Jenkins [Sun, 4 Oct 2015 19:12:00 +0000 (19:12 +0000)]
Merge "Remove debtcollector.removals tagged ensure_dir"

8 years agoThe option force_metadata=True breaks the dhcp agent
Nir Magnezi [Thu, 24 Sep 2015 14:49:15 +0000 (17:49 +0300)]
The option force_metadata=True breaks the dhcp agent

Patch I5f6ee9788717c3d4f1f2e2a4b9734fdd8dd92b40 has an issue with
force_metadata = True.

Using the option force_metadata=True while
enable_isolated_metadata=False (which is the default), will break the
dhcp agent because the variable subnet_to_interface_ip is being
referenced before assignment.

Co-Authored-By: Jakub Libosvar <jlibosva@redhat.com>
Change-Id: I4e1d918e3a24dd483ee134021f587ae4520bf431
Closes-Bug: #1499406

8 years agoMerge "Updated from global requirements"
Jenkins [Sat, 3 Oct 2015 01:34:17 +0000 (01:34 +0000)]
Merge "Updated from global requirements"

8 years agoMerge "Decomposition phase2 for MidoNet plugin"
Jenkins [Sat, 3 Oct 2015 00:55:14 +0000 (00:55 +0000)]
Merge "Decomposition phase2 for MidoNet plugin"

8 years agoMerge "Deprecate branchless migration chains from neutron-db-manage"
Jenkins [Fri, 2 Oct 2015 20:15:02 +0000 (20:15 +0000)]
Merge "Deprecate branchless migration chains from neutron-db-manage"

8 years agoMerge "Do not log an error when deleting a linuxbridge does not exist"
Jenkins [Fri, 2 Oct 2015 20:01:24 +0000 (20:01 +0000)]
Merge "Do not log an error when deleting a linuxbridge does not exist"

8 years agoDecomposition phase2 for MidoNet plugin
YAMAMOTO Takashi [Tue, 1 Sep 2015 07:24:24 +0000 (16:24 +0900)]
Decomposition phase2 for MidoNet plugin

Remove the rest of MidoNet plugin from Neutron tree.

Closes-Bug: #1490852

Change-Id: I260ec3e19c74928390c8e5e4e32629357c184361

8 years agoMerge "Correct cisco_ml2_apic_contracts.router_id length"
Jenkins [Fri, 2 Oct 2015 18:30:28 +0000 (18:30 +0000)]
Merge "Correct cisco_ml2_apic_contracts.router_id length"

8 years agoMerge "Python 3: fix invalid operation on dict_items objects"
Jenkins [Fri, 2 Oct 2015 18:19:41 +0000 (18:19 +0000)]
Merge "Python 3: fix invalid operation on dict_items objects"

8 years agoMerge "/common/utils.py py34 incompatibility"
Jenkins [Fri, 2 Oct 2015 18:19:28 +0000 (18:19 +0000)]
Merge "/common/utils.py py34 incompatibility"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 2 Oct 2015 17:24:53 +0000 (17:24 +0000)]
Updated from global requirements

Change-Id: I671b6e3f2919de119c06bbf01c17bb85e6e9a866

8 years agoChanges in Neutron defect management
armando-migliaccio [Tue, 29 Sep 2015 05:55:44 +0000 (22:55 -0700)]
Changes in Neutron defect management

This patch proposes some changes to the way we manage
bugs in Neutron, and how defect management is to be shared
across the Neutron team.

Change-Id: I51bf74cef11dc17b88c18a2007306b913da9f981

8 years agoDo not log an error when deleting a linuxbridge does not exist
Matt Riedemann [Thu, 1 Oct 2015 13:55:14 +0000 (06:55 -0700)]
Do not log an error when deleting a linuxbridge does not exist

When you're racing to teardown and relying on RPC, it should not be
considered an error that a bridge does not exist when you're trying to
delete it anyway. This is better served as debug level information.

For context, this shows up over 1000 times in successful
gate-tempest-dsvm-neutron-linuxbridge job runs in a week so it's
probably safe to say it's not contributing to test failures.

Closes-Bug: #1501779

Change-Id: I8e9b27e010d033291497f4e660a97bbae92e75b1

8 years agoMerge "Remove local variables from IPDevice.exists"
Jenkins [Fri, 2 Oct 2015 14:14:47 +0000 (14:14 +0000)]
Merge "Remove local variables from IPDevice.exists"

8 years ago/common/utils.py py34 incompatibility
Bogdan Tabor [Wed, 23 Sep 2015 08:52:25 +0000 (10:52 +0200)]
/common/utils.py py34 incompatibility

Fixes bug found during unit test of get_random_string() method.
For Python3 it is required to encode string as bytes object
before hashing.

Related-blueprint: neutron-python3
Closes-bug: #1502148
Change-Id: I93061a831b45fc8b3ede0211af665ce02f36f38a

8 years agoMerge "Simplify L3 HA scheduler tests"
Jenkins [Fri, 2 Oct 2015 13:54:20 +0000 (13:54 +0000)]
Merge "Simplify L3 HA scheduler tests"

8 years agoMerge "Check supported subnet CIDR"
Jenkins [Fri, 2 Oct 2015 13:54:01 +0000 (13:54 +0000)]
Merge "Check supported subnet CIDR"

8 years agoRemove debtcollector.removals tagged ensure_dir
Cedric Brandily [Thu, 1 Oct 2015 22:04:27 +0000 (00:04 +0200)]
Remove debtcollector.removals tagged ensure_dir

This change removes ensure_dir[1] wrapper which has been tagged in
Liberty for removal.

[1] neutron.agent.linux.utils

Closes-Bug: #1502061
Change-Id: I2bd62a0fd476cf6bf24761f942d555c1c29b4bf8

8 years agoMerge "Add availability_zone support base"
Jenkins [Fri, 2 Oct 2015 08:59:24 +0000 (08:59 +0000)]
Merge "Add availability_zone support base"

8 years agoMerge "Add more commit msg tips to 'effective neutron'"
Jenkins [Fri, 2 Oct 2015 07:49:39 +0000 (07:49 +0000)]
Merge "Add more commit msg tips to 'effective neutron'"

8 years agoConsume service plugins queues in RPC workers.
Eugene Nikanorov [Wed, 23 Sep 2015 10:06:54 +0000 (14:06 +0400)]
Consume service plugins queues in RPC workers.

This patch adds all RPC workers to consumers of service
plugins queues such as metering and l3-plugin.
This is important for DVR-enabled deployments with hundreds
of agents.

Change-Id: I6fea7f409c91b25d2c35b038d6100fdfa85d1905
Closes-Bug: #1498844

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Fri, 2 Oct 2015 05:59:15 +0000 (05:59 +0000)]
Merge "Imported Translations from Zanata"

8 years agoAdd more commit msg tips to 'effective neutron'
Kevin Benton [Tue, 29 Sep 2015 15:30:51 +0000 (08:30 -0700)]
Add more commit msg tips to 'effective neutron'

This adds a few more tips to the commit message guidelines in
the effective neutron devref.

Change-Id: I31ae7cb4303ff36aa9359d3fe284dde9a7ed8757

8 years agoRemove local variables from IPDevice.exists
Brian Haley [Fri, 2 Oct 2015 03:35:24 +0000 (23:35 -0400)]
Remove local variables from IPDevice.exists

As suggested by Carl, code is functionally the same.

Change-Id: I80fe8dc8f6f379c7b9561049075fdf718943246b

8 years agoMerge "Pecan: Fix quota enforcement"
Jenkins [Fri, 2 Oct 2015 02:30:09 +0000 (02:30 +0000)]
Merge "Pecan: Fix quota enforcement"

8 years agoMerge "Effective Neutron: add link to logging guidelines"
Jenkins [Fri, 2 Oct 2015 01:52:03 +0000 (01:52 +0000)]
Merge "Effective Neutron: add link to logging guidelines"

8 years agoMerge "metadata: don't crash proxy on non-unicode user data"
Jenkins [Fri, 2 Oct 2015 01:47:02 +0000 (01:47 +0000)]
Merge "metadata: don't crash proxy on non-unicode user data"

8 years agoMerge "Add IPDevice.exists() method"
Jenkins [Fri, 2 Oct 2015 01:46:47 +0000 (01:46 +0000)]
Merge "Add IPDevice.exists() method"

8 years agoAdd availability_zone support base
Hirofumi Ichihara [Fri, 2 Oct 2015 01:14:10 +0000 (10:14 +0900)]
Add availability_zone support base

This patch adds the availability_zone attribute to agents and
supports availability_zone API.
Availability_zone support for resources (network/router) and
the schedulers are included in subsequent patches.

APIImpact
DocImpact

Co-Authored-By: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Change-Id: Id7a62000ab0484412b3970199df8c374568fe70d
Partially-implements: blueprint add-availability-zone

8 years agoPecan: Fix quota enforcement
Salvatore Orlando [Thu, 1 Oct 2015 23:07:59 +0000 (16:07 -0700)]
Pecan: Fix quota enforcement

Ensure that core resources, and not only extension resources,
are registered with the quota engine. Otherwise no enforcement
will happen for them.

Further, do not pass anymore the 'resource name' to the resource's
count method as it is not necessary anymore since Liberty.

Change-Id: I895b4e69e50dbf1aac39e07eba07c3e3ff30808a
Closes-bug: #1501948

8 years agoMerge "Effective Neutron: add link to low-hanging-fruit bugs"
Jenkins [Thu, 1 Oct 2015 22:04:35 +0000 (22:04 +0000)]
Merge "Effective Neutron: add link to low-hanging-fruit bugs"

8 years agometadata: don't crash proxy on non-unicode user data
Ihar Hrachyshka [Thu, 1 Oct 2015 15:13:25 +0000 (17:13 +0200)]
metadata: don't crash proxy on non-unicode user data

We attempt to log every successful metadata response with LOG.debug. But
as per oslo.log docs [1], we should make sure that what we pass into the
library is unicode.

Http.request returns a tuple of Response object and a string, which is
bytes in Python 2.x [2].

That's why we need to convert the response content to unicode before
passing it into oslo.log.

To achieve it, we utilize encodeutils.safe_decode with 'replace' errors
handling strategy, so that we don't get exceptions on input that does
not conform unicode.

For the unit test case, we pass a string that is not expected to convert
to unicode with errors='strict' strategy or similar, and check that we
still don't crash.

While at it, we remove a check for the number of log calls being
triggered, because it's something that we should avoid validating in
test cases, and it cannot trigger a real bug. The mock that was used to
count the number would also hide the bug that we try to reproduce.

Note that the bug does not require debug to be set because the crash
occurs before oslo.log machinery decides it should not log the message.

[1]: http://docs.openstack.org/developer/oslo.log/usage.html#no-more-implicit-conversion-to-unicode-str
[2]: http://bitworking.org/projects/httplib2/doc/html/libhttplib2.html#httplib2.Http.request

Closes-Bug: #1501772
Change-Id: I6a32c40ff117fae43913386134c8981539697ce8

8 years agoAdd neutron-linuxbridge-cleanup util
Mathieu Gagné [Tue, 8 Sep 2015 21:07:07 +0000 (17:07 -0400)]
Add neutron-linuxbridge-cleanup util

Removal of empty bridges have been disabled [1] to fix a race condition
between Nova and Neutron where a bridge would be removed if
the only instance using it is rebooted. This means empty bridges
will pile up over time.

This script can be used to periodically remove empty bridges by running it
on compute nodes.

Note: Usage of this script can still trigger the original race condition.
It should be used when you don't expect anyone do be doing operations
on their instances.

[1] Commit 8dd8a7d93564168b98fa2350eedf56acede42b0f

DocImpact: Add neutron-linuxbridge-cleanup util
Related-bug: #1328546
Closes-bug: #1497027
Co-Authored-By: Cedric Brandily <zzelle@gmail.com>
Change-Id: Ieb2796381579ad295abf361ce483d979a53d2bd6

8 years agoEffective Neutron: add link to low-hanging-fruit bugs
armando-migliaccio [Thu, 1 Oct 2015 19:52:46 +0000 (12:52 -0700)]
Effective Neutron: add link to low-hanging-fruit bugs

To draw attention to newbies where it matters

Change-Id: Iabab0b4f1e6e901f122c793a64d74fc4412c7e39