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

8 years agoMerge "Remove OpenContrail plugin from the source tree"
Jenkins [Thu, 1 Oct 2015 19:09:15 +0000 (19:09 +0000)]
Merge "Remove OpenContrail plugin from the source tree"

8 years agoMerge "Use separate queue for agent state reports."
Jenkins [Thu, 1 Oct 2015 19:02:52 +0000 (19:02 +0000)]
Merge "Use separate queue for agent state reports."

8 years agoEffective Neutron: add link to logging guidelines
armando-migliaccio [Thu, 1 Oct 2015 18:03:04 +0000 (11:03 -0700)]
Effective Neutron: add link to logging guidelines

Change-Id: If9a3e3827d1c917331d4fa321a5ada63993087fe

8 years agoAdd IPDevice.exists() method
Brian Haley [Tue, 29 Sep 2015 15:31:34 +0000 (11:31 -0400)]
Add IPDevice.exists() method

Some callers of ip_lib.device_exists() have already instantiated
an IPDevice object, let's move the device existence check into
the IPDevice class so they can call it directly.

Change-Id: I3cdcd0a86b77e1fd5a808b7a5f0de2057f1e90c1

8 years agoMerge "Support new mitaka directory with revisions"
Jenkins [Thu, 1 Oct 2015 16:25:28 +0000 (16:25 +0000)]
Merge "Support new mitaka directory with revisions"

8 years agoSimplify L3 HA scheduler tests
Assaf Muller [Thu, 1 Oct 2015 15:59:57 +0000 (11:59 -0400)]
Simplify L3 HA scheduler tests

Stop mocking scheduling in the L3 HA scheduler base class,
and mock it explicitly in a couple of tests that need to control
scheduling manually. This allows us to remove a tiny bit of code,
but more importantly make the test and production code a little bit
more similar, and allow the base class to be reused in a more
generic manner.

Change-Id: I95790ba0605bcbf9b87199b99116aee4fca4d604

8 years agoMerge "Use format to convert ints to strings"
Jenkins [Thu, 1 Oct 2015 15:25:32 +0000 (15:25 +0000)]
Merge "Use format to convert ints to strings"

8 years agoMerge "Remove log decorator deprecated in Liberty"
Jenkins [Thu, 1 Oct 2015 14:17:13 +0000 (14:17 +0000)]
Merge "Remove log decorator deprecated in Liberty"

8 years agoMerge "Remove is_ha property from the router"
Jenkins [Thu, 1 Oct 2015 13:59:20 +0000 (13:59 +0000)]
Merge "Remove is_ha property from the router"

8 years agoPython 3: fix invalid operation on dict_items objects
Cyril Roelandt [Thu, 1 Oct 2015 11:31:48 +0000 (13:31 +0200)]
Python 3: fix invalid operation on dict_items objects

One cannot use "+" on "dict_items" objects in Python 3.

Partial-Bug: #1500400
Change-Id: Ide04b3eaa70b6f453cbc11442109f8c88b084305

8 years agoUse format to convert ints to strings
James Page [Thu, 1 Oct 2015 10:54:28 +0000 (11:54 +0100)]
Use format to convert ints to strings

This ensures that on 32bit architectures, where
sometimes an implicit long is created, the resulting
string does not contain a 'L' suffix as generated
by the hex function.

Change-Id: I264f90d68009963fe7a217c2170e1cf2f46ae2bb
Closes-Bug: 1501703

8 years agoAdd periodic agents health check.
Eugene Nikanorov [Wed, 6 May 2015 21:06:09 +0000 (01:06 +0400)]
Add periodic agents health check.

In addition to periodic checks of L3 and DHCP agents
add periodic checks of overall health of registered agents.
Log total count of agents at debug level so it can be
seen in logs of neutron-server.
In case some agents found dead - log detailed info about them:
Type of agent, last heartbeat, host.

Change-Id: I5db81dad4e9e8325ad3fa3a3e6d5d2d0deb297dd
Closes-Bug: #1453320

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Thu, 1 Oct 2015 06:31:03 +0000 (06:31 +0000)]
Imported Translations from Zanata

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

Change-Id: I0005a6ff2c4a96d88bce15751d68e579fa998a66

8 years agoFix db error when running python34 Unit tests
armando-migliaccio [Thu, 1 Oct 2015 03:50:13 +0000 (20:50 -0700)]
Fix db error when running python34 Unit tests

Follow fixes [1] to address this potential issue.

Closes-bug: #1489059

[1] https://review.openstack.org/#/q/status:merged++topic:bug/1489059,n,z

Change-Id: Ica389978869ae47c262cd797e85a7d7874254df7

8 years agoRemove OpenContrail plugin from the source tree
armando-migliaccio [Thu, 1 Oct 2015 01:17:57 +0000 (18:17 -0700)]
Remove OpenContrail plugin from the source tree

This plugin didn't decompose in the last two cycles, the CI has
stopped working for a while and it seems there is no pulse since
March 2015.

I think it is time to implement the eviction.

Change-Id: Ib2cb1e3f05330c7808177b0312506d0e56254aa8
Related-blueprint: core-vendor-decomposition

8 years agoCorrect cisco_ml2_apic_contracts.router_id length
Vladislav Belogrudov [Wed, 17 Jun 2015 11:20:16 +0000 (14:20 +0300)]
Correct cisco_ml2_apic_contracts.router_id length

Some database engines require exact match of sizes of foreign keys
and referenced fields. Foreign key router_id of table
cisco_ml2_apic_contracts is varchar(64) but it references field
id varchar(36) of table routers. This gives error while running
migration scripts in such databases.

This change only applies to new OpenStack installations

Change-Id: I94a21ffbb82446499b1a55bd8b666d7395e4908a
Related-Bug: #1463806
Closes-Bug: #1465678

8 years agoMerge "Add devref for alembic milestone tagging"
Jenkins [Wed, 30 Sep 2015 21:24:23 +0000 (21:24 +0000)]
Merge "Add devref for alembic milestone tagging"

8 years agoMerge "Just call set-manager if connecting fails"
Jenkins [Wed, 30 Sep 2015 21:20:47 +0000 (21:20 +0000)]
Merge "Just call set-manager if connecting fails"

8 years agoRemove is_ha property from the router
Carl Baldwin [Wed, 30 Sep 2015 20:12:23 +0000 (20:12 +0000)]
Remove is_ha property from the router

This was a todo left over from refactoring.  The one place where it
was used was in the metadata driver which can just as easily check
isinstance.

The is_ha property in the HA class only returned True if self.router
was True.  The agent sets this on creation and so it will always be
True.  Additionally, it didn't really make sense to me anyway given
the way this was being used in the metadata driver.

Change-Id: Idf91ee5f8b72ff9a1740dd60090327d07ee8e16e

8 years agoRemove log decorator deprecated in Liberty
Cedric Brandily [Wed, 30 Sep 2015 19:39:42 +0000 (21:39 +0200)]
Remove log decorator deprecated in Liberty

log[1] decorator has been deprecated in Liberty and replaced by oslo_log
log_method_call[2] in neutron.

[1] neutron.common.log
[2] oslo_log.helpers

Change-Id: Ia326daaf376865943e93302c45341f7d4fa22d56

8 years agoMerge "Add compatibility with iproute2 >= 4.0"
Jenkins [Wed, 30 Sep 2015 18:21:28 +0000 (18:21 +0000)]
Merge "Add compatibility with iproute2 >= 4.0"

8 years agoDeprecate branchless migration chains from neutron-db-manage
Ihar Hrachyshka [Tue, 29 Sep 2015 12:45:50 +0000 (14:45 +0200)]
Deprecate branchless migration chains from neutron-db-manage

Support for the scheme puts additional burden on neutron-db-manage
maintainers.  The split branches were introduced in all 'official'
subprojects in Liberty, so it's fine to deprecate it in Mitaka, and drop
in Noodle.

Since there is no user actionable item to do for users, using
debtcollector that will only issue DeprecationWarning if they are
enabled. The assumption is that developers run their tests with that
enabled (as the BaseTestCase ensures) and handle warnings.

Related-Bug: #1501380
Change-Id: Ie4ddd29d8c51be74a112864aae3d16fb5e52c0fa

8 years agoSupport new mitaka directory with revisions
Ihar Hrachyshka [Wed, 30 Sep 2015 14:00:21 +0000 (16:00 +0200)]
Support new mitaka directory with revisions

Also, don't initialize a new 'per-release' directory with new revisions
that have branch labels because we don't maintain per release labels
anymore.

Change-Id: I3a875e239602147d82d28994788c3409d64d6992

8 years agoFix the bug of "Error spelling of 'accomodate'"
JuPing [Wed, 30 Sep 2015 16:16:18 +0000 (00:16 +0800)]
Fix the bug of "Error spelling of 'accomodate'"

The word "accomodate " should be spelled as "accommodate".
So it is changed.

Change-Id: Ie0aae93973c0efec34c3d4baf0d3d2783c6eeef8
Closes-Bug: #1501216

8 years agoJust call set-manager if connecting fails
Terry Wilson [Tue, 29 Sep 2015 02:01:30 +0000 (21:01 -0500)]
Just call set-manager if connecting fails

Instead of calling set-manager every init, only call it when
getting the schema fails inside of Connection.start() which is
only called once.

Closes-Bug: #1499784
Change-Id: Ib28cd912e1f2eba318a6b0a82269919a1c95312d

8 years agoUse separate queue for agent state reports.
Eugene Nikanorov [Tue, 22 Sep 2015 14:51:56 +0000 (18:51 +0400)]
Use separate queue for agent state reports.

This optimization is needed for big clusters with hundreds
of agents where the spike of activity may trigger a burst
of RPC requests that would prevent neutron-server from processing
agent heart beats in time, triggering resource rescheduling.

This will be further optimized by running dedicated RPC workers
for state reports processing.

Related-Bug: #1496410
Change-Id: Id86a1f962aaa4f64011d57ae55d240f890cca4f7

8 years agoMake OVS interface name hashing algorithm common and extend it
Andreas Scheuring [Wed, 16 Sep 2015 12:32:18 +0000 (14:32 +0200)]
Make OVS interface name hashing algorithm common and extend it

The OVS devcie name hashing algorithm shortens interface names that are too
long. To ensure uniqueness it takes use of a hashing algorithm.

Move this function to a common place where it can be shared between ml2
drivers and agents.

Extend the function to support interface name postfix in addition to the
prefix.

Change LOG level to info to help deployers figuring out the unhashed name
of an hashed inteface.

Adapt OVS and linuxbridge agent to use this common function instead of their
own implementation.

Change-Id: If7ee8240c8f60da3400365138832a5d9badf98b4
Closes-Bug: #1495960

8 years agoMerge "Fix URL target problem"
Jenkins [Wed, 30 Sep 2015 06:24:43 +0000 (06:24 +0000)]
Merge "Fix URL target problem"

8 years agoMerge "Check idl.run() return value before blocking"
Jenkins [Wed, 30 Sep 2015 05:59:20 +0000 (05:59 +0000)]
Merge "Check idl.run() return value before blocking"

8 years agoFix URL target problem
gong yong sheng [Wed, 30 Sep 2015 03:47:12 +0000 (11:47 +0800)]
Fix URL target problem

Change-Id: I7290801b110ff5d6f896bd122342ed7ad9eca014

8 years agoAdd devref for alembic milestone tagging
Henry Gessau [Tue, 29 Sep 2015 16:15:06 +0000 (12:15 -0400)]
Add devref for alembic milestone tagging

Related-Bug: #1499033

Change-Id: Iff58622c56be2c64cfb5659d20c4eae2f45a318c

8 years agoAdd compatibility with iproute2 >= 4.0
James Page [Fri, 18 Sep 2015 15:38:47 +0000 (16:38 +0100)]
Add compatibility with iproute2 >= 4.0

The ip netns list command adds additional id data in more recent
versions of iproute2 of the format:

  qdhcp-35fc068a-750d-4add-b1d2-af392dbd8790 (id: 1)

Update parsing to deal with old and new formats.

Change-Id: I0d3fc4262284172f5ad31e4f2f78ae1fb33b4228
Closes-Bug: 1497309

8 years agoTag the alembic migration revisions for Liberty
Henry Gessau [Sun, 27 Sep 2015 19:36:59 +0000 (15:36 -0400)]
Tag the alembic migration revisions for Liberty

Previously when we had one repo with one alembic branch we would
create a milestone revision on that single branch. Now we have
multiple repos and expand/contract branches for each repo.

So from now on we tag the final revision on every branch when we make
a milestone release. Update the cli to support the command:
  neutron-db-manage upgrade <milestone>
where <milestone> becomes an alias for all the revisions for a
milestone.

Partial-Bug: #1499033

Change-Id: I38623986dd574bec01fe147f9c6a747f3f512bb7

8 years agoMerge "Revert "Remove address scopes from supported extensions""
Jenkins [Tue, 29 Sep 2015 11:10:31 +0000 (11:10 +0000)]
Merge "Revert "Remove address scopes from supported extensions""

8 years agoCheck idl.run() return value before blocking
Terry Wilson [Mon, 28 Sep 2015 22:42:25 +0000 (17:42 -0500)]
Check idl.run() return value before blocking

The IDL change_seqno can change as a result of running idl.run(), and
it returns True if there has been a change. The existing code would
block without checking the return value, and therefor could block
until another change occurred, or the timeout was reached.

Closes-Bug: #1501090
Change-Id: I9b7aac2755e6e6b69165023e01583337f9d30f15

8 years agoMerge "usage_audit: Fix usage_audit to work with ML2"
Jenkins [Tue, 29 Sep 2015 04:16:57 +0000 (04:16 +0000)]
Merge "usage_audit: Fix usage_audit to work with ML2"

8 years agoMerge "Devref for authorization policies enforcement"
Jenkins [Tue, 29 Sep 2015 04:16:34 +0000 (04:16 +0000)]
Merge "Devref for authorization policies enforcement"

8 years agoMerge "Remove zombie pecan hook"
Jenkins [Tue, 29 Sep 2015 04:10:01 +0000 (04:10 +0000)]
Merge "Remove zombie pecan hook"

8 years agoCheck supported subnet CIDR
shihanzhang [Mon, 21 Sep 2015 07:38:28 +0000 (15:38 +0800)]
Check supported subnet CIDR

For IP CIDR, D class is for multicast, but neutron does not
check this, if user create a subnet like '224.0.0.1/16', DHCP
agent will fail to spawn Dnsmasq service.
This patch adds a check, if subnet CIDR is D class or loopback,
neutron-server will raise a error.

APIImpact
DocImpact

Closes-bug: #1497522
Change-Id: I36aa8b8e6decaff1cc27aaa61f4aaa8f247826c6

8 years agoRemove zombie pecan hook
Salvatore Orlando [Mon, 28 Sep 2015 21:10:04 +0000 (14:10 -0700)]
Remove zombie pecan hook

The resource_identifier hooks has been removed as the Pecan
controllers are now able to identify by themselves the resource
they operate for.

However the unused hook module was never removed thus making it
'undeed'. This patch simply fires it a silver bullet thus ensuring
it will be gone forever.

Change-Id: I421c3ccffb6d01846db636c878869109198af7ad

8 years agoMerge "Adding trailing underscores to devref links"
Jenkins [Mon, 28 Sep 2015 20:46:33 +0000 (20:46 +0000)]
Merge "Adding trailing underscores to devref links"

8 years agoMerge "Fixing traces of "Replace prt variable by port""
Jenkins [Mon, 28 Sep 2015 19:37:28 +0000 (19:37 +0000)]
Merge "Fixing traces of "Replace prt variable by port""

8 years agoMerge "SubnetPoolsTest: Skip IPv6 tests appropriately"
Jenkins [Mon, 28 Sep 2015 19:19:39 +0000 (19:19 +0000)]
Merge "SubnetPoolsTest: Skip IPv6 tests appropriately"

8 years agoMerge "Fixes 'ovs-agent cannot start on Windows because root_helper opt is not found'"
Jenkins [Mon, 28 Sep 2015 19:19:22 +0000 (19:19 +0000)]
Merge "Fixes 'ovs-agent cannot start on Windows because root_helper opt is not found'"

8 years agoMerge "Move ConfigDict and ConfigFileFixture to neutron.tests.common"
Jenkins [Mon, 28 Sep 2015 18:34:44 +0000 (18:34 +0000)]
Merge "Move ConfigDict and ConfigFileFixture to neutron.tests.common"

8 years agoAdding trailing underscores to devref links
armando-migliaccio [Mon, 28 Sep 2015 18:28:32 +0000 (11:28 -0700)]
Adding trailing underscores to devref links

These were missed and it led to bad rendering.

Change-Id: If2ae0e542b16d9c82cbbdcb854b8b3612f64199a

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Mon, 28 Sep 2015 17:49:39 +0000 (17:49 +0000)]
Merge "Imported Translations from Zanata"

8 years agoMerge "Python 3: use "open" instead of "file""
Jenkins [Mon, 28 Sep 2015 16:17:08 +0000 (16:17 +0000)]
Merge "Python 3: use "open" instead of "file""

8 years agoMerge "Kill HEADS file"
Jenkins [Mon, 28 Sep 2015 15:20:10 +0000 (15:20 +0000)]
Merge "Kill HEADS file"

8 years agoMerge "Forbid more than one branch point in alembic dependency chains"
Jenkins [Mon, 28 Sep 2015 12:16:37 +0000 (12:16 +0000)]
Merge "Forbid more than one branch point in alembic dependency chains"

8 years agoPython 3: use "open" instead of "file"
Cyril Roelandt [Mon, 28 Sep 2015 11:46:35 +0000 (13:46 +0200)]
Python 3: use "open" instead of "file"

The "file" function does not exist in Python 3.

Change-Id: I18561fc8e472a53c2c5f599f2312347da4cec273
Partial-Bug: #1500400

8 years agoMerge "Handle empty bridge case in OVSBridge.get_ports_attributes"
Jenkins [Mon, 28 Sep 2015 11:22:14 +0000 (11:22 +0000)]
Merge "Handle empty bridge case in OVSBridge.get_ports_attributes"

8 years agoMerge "Turn device not found errors in to exceptions"
Jenkins [Mon, 28 Sep 2015 11:15:36 +0000 (11:15 +0000)]
Merge "Turn device not found errors in to exceptions"