]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "Backout 152195, which doesn't check the same token that it saves"
Jenkins [Mon, 2 Feb 2015 22:57:32 +0000 (22:57 +0000)]
Merge "Backout 152195, which doesn't check the same token that it saves"

9 years agoMerge "Don't pass the port down to the floating ip processing"
Jenkins [Mon, 2 Feb 2015 21:02:15 +0000 (21:02 +0000)]
Merge "Don't pass the port down to the floating ip processing"

9 years agoMerge "Encapsulate DVR Fip namespace"
Jenkins [Mon, 2 Feb 2015 21:02:01 +0000 (21:02 +0000)]
Merge "Encapsulate DVR Fip namespace"

9 years agoBackout 152195, which doesn't check the same token that it saves
Doug Wiegley [Mon, 2 Feb 2015 20:27:18 +0000 (14:27 -0600)]
Backout 152195, which doesn't check the same token that it saves

Change-Id: Ia98cd4de04100be2a32532a058a31ef8b4df7905

9 years agoMerge "Discriminate loaded extensions using their alias"
Jenkins [Mon, 2 Feb 2015 20:20:00 +0000 (20:20 +0000)]
Merge "Discriminate loaded extensions using their alias"

9 years agoMerge "Freescale FWaaS Plugin: Update to setup.cfg"
Jenkins [Mon, 2 Feb 2015 19:25:54 +0000 (19:25 +0000)]
Merge "Freescale FWaaS Plugin: Update to setup.cfg"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 2 Feb 2015 19:21:38 +0000 (19:21 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "fixes error logging to use the right exception parent class"
Jenkins [Mon, 2 Feb 2015 18:35:44 +0000 (18:35 +0000)]
Merge "fixes error logging to use the right exception parent class"

9 years agoMerge "Drop bw compact module for OpenDayLight"
Jenkins [Mon, 2 Feb 2015 18:15:20 +0000 (18:15 +0000)]
Merge "Drop bw compact module for OpenDayLight"

9 years agoDiscriminate loaded extensions using their alias
Salvatore Orlando [Mon, 2 Feb 2015 17:08:17 +0000 (09:08 -0800)]
Discriminate loaded extensions using their alias

This patch simply changes the logic for discriminating which
extensions have already been loaded using the extension alias
rather than the module name.

This will avoid failures already observed in unit tests occurring
if two extension modules happen to have the same module file name
even if they're unrelated.

This change cannot be unit-tested as the neutron unit test
framework is currently lacking a mechanism to mock and validate
extension loading from the file system.

Closes-Bug: #1417180

Change-Id: Ia214a7c5b1127dbbec3c81023fdbc48d7fadf18f

9 years agoMerge "Add missing Connection.close() method"
Jenkins [Mon, 2 Feb 2015 13:07:55 +0000 (13:07 +0000)]
Merge "Add missing Connection.close() method"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Mon, 2 Feb 2015 06:14:15 +0000 (06:14 +0000)]
Imported Translations from Transifex

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

Change-Id: I7eac7714d5b7c8784458e5570c29a84356b59557

9 years agofixes error logging to use the right exception parent class
Matthew Thode [Sun, 1 Feb 2015 06:13:59 +0000 (00:13 -0600)]
fixes error logging to use the right exception parent class

looks like this was missed

Closes-Bug: #1416798
Change-Id: If68c13b550d665dfa24b7380f53bee7f6fccdb23

9 years agoMerge "Set locale before check dnsmasq version"
Jenkins [Sun, 1 Feb 2015 05:33:24 +0000 (05:33 +0000)]
Merge "Set locale before check dnsmasq version"

9 years agoMerge "Drop deprecated namespace for oslo.rootwrap"
Jenkins [Sun, 1 Feb 2015 05:33:12 +0000 (05:33 +0000)]
Merge "Drop deprecated namespace for oslo.rootwrap"

9 years agoMerge "Hardening unittest, make resilient to address assignment order"
Jenkins [Sun, 1 Feb 2015 05:33:00 +0000 (05:33 +0000)]
Merge "Hardening unittest, make resilient to address assignment order"

9 years agoMerge "Move agent.linux.utils tests to proper location"
Jenkins [Sun, 1 Feb 2015 05:32:25 +0000 (05:32 +0000)]
Merge "Move agent.linux.utils tests to proper location"

9 years agoDrop bw compact module for OpenDayLight
armando-migliaccio [Sat, 31 Jan 2015 17:22:01 +0000 (09:22 -0800)]
Drop bw compact module for OpenDayLight

Following change [1], this bw-compat measure can be dropped.

Depends-on: https://review.openstack.org/#/c/151707 [1]

Change-Id: I2283759a5b0ee995573d4e4357dafb3e66ca4aed

9 years agoMerge "Move ha router functionality from the agent to ha_router"
Jenkins [Sat, 31 Jan 2015 17:39:46 +0000 (17:39 +0000)]
Merge "Move ha router functionality from the agent to ha_router"

9 years agoDon't pass the port down to the floating ip processing
Carl Baldwin [Sat, 31 Jan 2015 00:27:52 +0000 (00:27 +0000)]
Don't pass the port down to the floating ip processing

This is justified by the Law of Demeter.  I ran in to this while
trying to refactor the floating ip processing here [1].  The scope of
that patch can be reduced significantly with this refactor.  Also, it
helps us to decouple the floating ip NAT processing from the details
of the port which is a long-term goal.

[1] https://review.openstack.org/#/c/142863/

Change-Id: I606dfd43977934f1accea60911e10e71c1cbba73
Partially-Implements: bp/restructure-l3-agent

9 years agoMove agent.linux.utils tests to proper location
Ihar Hrachyshka [Sat, 31 Jan 2015 12:16:40 +0000 (13:16 +0100)]
Move agent.linux.utils tests to proper location

blueprint reorganize-unit-test-tree

Change-Id: I21c07fadbe6701e4aa438c70fbf8f503b48d2f26

9 years agoMerge "Add requirements.txt file for OpenDaylight Mech Driver"
Jenkins [Sat, 31 Jan 2015 05:21:33 +0000 (05:21 +0000)]
Merge "Add requirements.txt file for OpenDaylight Mech Driver"

9 years agoMerge "Remove duplicate logging of attribute validation errors"
Jenkins [Sat, 31 Jan 2015 05:18:45 +0000 (05:18 +0000)]
Merge "Remove duplicate logging of attribute validation errors"

9 years agoDrop deprecated namespace for oslo.rootwrap
ChangBo Guo(gcb) [Fri, 30 Jan 2015 14:56:42 +0000 (22:56 +0800)]
Drop deprecated namespace for oslo.rootwrap

The oslo team is recommending everyone to switch to the
non-namespaced versions of libraries.[1]
oslo.rootwrap suggests use oslo_rootwrap.cmd:main.[2]

[1]https://blueprints.launchpad.net/oslo-incubator/+spec/drop-namespace-packages
[2]https://github.com/openstack/oslo.rootwrap#using

Change-Id: Ifa37c01b95c65bc3b4966283ff289dd724a7f8cd

9 years agoMerge "Thining Arista ML2 driver from neutron tree"
Jenkins [Sat, 31 Jan 2015 03:19:43 +0000 (03:19 +0000)]
Merge "Thining Arista ML2 driver from neutron tree"

9 years agoMerge "Removed redundant statement from l3agentscheduler"
Jenkins [Sat, 31 Jan 2015 03:13:21 +0000 (03:13 +0000)]
Merge "Removed redundant statement from l3agentscheduler"

9 years agoMerge "Mechanisms to move extensions and config into service repos"
Jenkins [Sat, 31 Jan 2015 00:23:07 +0000 (00:23 +0000)]
Merge "Mechanisms to move extensions and config into service repos"

9 years agoEncapsulate DVR Fip namespace
Carl Baldwin [Wed, 7 Jan 2015 19:25:41 +0000 (19:25 +0000)]
Encapsulate DVR Fip namespace

The floating ip namespace is an important concept that links a DVR
enabled L3 agent to DVR routers.  The namespace is shared by all of
the dvr routers on a compute host connected to the same network.  It
is managed by the dvr enabled agent.  Hence, it should be known to the
agent and made available to the DVR routers as well.  This calls for a
proper encapsulation of this functionality in a class which can be
accessed by both the agent and the routers.

In trying to tease floating ip functionality out of the L3 agent and
in to the new router classes, I found it very difficult to do because
the logic around the floating ip namespace has not yet been properly
encapsulated.

Change-Id: I0913cfae391164146bbb50ed42311506d6559e3f
Partially-Implements: bp/restructure-l3-agent

9 years agoMove ha router functionality from the agent to ha_router
Carl Baldwin [Tue, 27 Jan 2015 22:34:06 +0000 (22:34 +0000)]
Move ha router functionality from the agent to ha_router

This was pretty much a mechanical change.  Most of the methods passed
in ri as the first argument and so changing the way they're called was
a simple matter of replacing self with ri.  In the methods themselves,
I first made sure that self was not referenced for anything that
wasn't available in the router context and then replaced ri with self.

Change-Id: I2f9e23543a10da256d33c4c32a50aa2b8c93989d
Partially-Implements: bp/restructure-l3-agent

9 years agoMerge "Implements the ProcessMonitor in the l3_agent"
Jenkins [Fri, 30 Jan 2015 21:01:29 +0000 (21:01 +0000)]
Merge "Implements the ProcessMonitor in the l3_agent"

9 years agoMerge "Thin MLNX ML2 mechanism driver and agent"
Jenkins [Fri, 30 Jan 2015 20:56:38 +0000 (20:56 +0000)]
Merge "Thin MLNX ML2 mechanism driver and agent"

9 years agoRemove duplicate logging of attribute validation errors
Sandhya Dasu [Fri, 30 Jan 2015 20:46:55 +0000 (15:46 -0500)]
Remove duplicate logging of attribute validation errors

Removed logging at top level function _validate_dict() and
added logging at the lower level functions wherever necessary.

Change-Id: I09ec62ef5998aea5735ff641166cbc5b469775e9
Closes-bug: #1397310

9 years agoMerge "VLAN support for DVR"
Jenkins [Fri, 30 Jan 2015 20:27:08 +0000 (20:27 +0000)]
Merge "VLAN support for DVR"

9 years agoAdd requirements.txt file for OpenDaylight Mech Driver
armando-migliaccio [Fri, 30 Jan 2015 17:03:38 +0000 (09:03 -0800)]
Add requirements.txt file for OpenDaylight Mech Driver

Move the driver into its own module, but make the change
backward compatible so that we don't break the ODL driver
counterpart (which will use the new module when [1] merges).

[1] https://review.openstack.org/#/c/151707/

Related-Bug: #1409149
Partial-Implements: bp/core-vendor-decomposition

Change-Id: I675d57dc378766230c55ac0ff13966917321b8ef

9 years agoMechanisms to move extensions and config into service repos
Doug Wiegley [Wed, 28 Jan 2015 03:17:00 +0000 (20:17 -0700)]
Mechanisms to move extensions and config into service repos

- Extensions will automatically be loaded from service repos in addition
  to neutron proper, but neutron proper will take precedence.
- Config entries for service repos will be read out of neutron-{service}.conf
  first, and then neutron.conf. After Kilo, they will be read only from
  neutron-{service}.conf.
- Service providers for drivers will be collected from all neutron conf files.

This is review 1 of 3.  The second set will be in the server repos, moving
the extensions.  The third will be in neutron, removing the service exts.

Change-Id: I16b5e5b2bb70717166da14faa975fa2ab9129049
Partially-Implements: blueprint services-split

9 years agoMerge "Add address family to 'ip rule' calls"
Jenkins [Fri, 30 Jan 2015 17:37:34 +0000 (17:37 +0000)]
Merge "Add address family to 'ip rule' calls"

9 years agoMerge "Refactor _convert_sgr_to_iptables_rules in iptables_firewall"
Jenkins [Fri, 30 Jan 2015 17:09:36 +0000 (17:09 +0000)]
Merge "Refactor _convert_sgr_to_iptables_rules in iptables_firewall"

9 years agoMerge "Refactor iptables rule expansion for the non ipset case"
Jenkins [Fri, 30 Jan 2015 16:36:04 +0000 (16:36 +0000)]
Merge "Refactor iptables rule expansion for the non ipset case"

9 years agoHardening unittest, make resilient to address assignment order
Dipa Thakkar [Thu, 29 Jan 2015 22:50:29 +0000 (17:50 -0500)]
Hardening unittest, make resilient to address assignment order

Changed functions in test_db_plugin.py and test_n1kv_plugin.py
to replace assertEqual with assertIn

Change-Id: Ibf272af24778eea02d9de23103d30f534109fe9c
Closes-Bug: #1416135

9 years agoMerge "Overload correctly BASEV2.__table_args__"
Jenkins [Fri, 30 Jan 2015 05:09:04 +0000 (05:09 +0000)]
Merge "Overload correctly BASEV2.__table_args__"

9 years agoMerge "Add option to remove networks from dead DHCP agents"
Jenkins [Fri, 30 Jan 2015 03:39:49 +0000 (03:39 +0000)]
Merge "Add option to remove networks from dead DHCP agents"

9 years agoThining Arista ML2 driver from neutron tree
Sukhdev [Tue, 20 Jan 2015 18:37:33 +0000 (10:37 -0800)]
Thining Arista ML2 driver from neutron tree

Moving all the back-end drivers for the Arista
ML2 driver. The DB Models and Config is
left in the tree. Rest all is moving to
networking-arista project.

Reorganize the code to ensure a smoother transition
to a decomposed Arista ML2 driver.

The code is being moved in [1].

[1] https://review.openstack.org/#/c/148682/

Partial-bug: 1412577
Related-blueprint: core-vendor-decomposition

Change-Id: Ibbd82d7a18fdb8d6b8d4bfa7bcafe8a2d91a20e1
Co-Authored-By: Armando Migliaccio <armamig@gmail.com>
9 years agoMerge "Do not check twice IP allocations for auto-address subnets"
Jenkins [Thu, 29 Jan 2015 21:49:46 +0000 (21:49 +0000)]
Merge "Do not check twice IP allocations for auto-address subnets"

9 years agoMerge "Default security group table"
Jenkins [Thu, 29 Jan 2015 21:43:10 +0000 (21:43 +0000)]
Merge "Default security group table"

9 years agoRemoved redundant statement from l3agentscheduler
Saju Madhavan [Thu, 29 Jan 2015 20:46:01 +0000 (02:16 +0530)]
Removed redundant statement from l3agentscheduler

removed redundant statement and reused existing method instead
Closes-Bug:1416103

Change-Id: I21f051adaa4a41a40bce656487242daf93b174c4

9 years agoImplements the ProcessMonitor in the l3_agent
Miguel Angel Ajo [Mon, 18 Aug 2014 11:00:58 +0000 (13:00 +0200)]
Implements the ProcessMonitor in the l3_agent

The ProcessMonitor class will watch over spawned external processes,
taking the administrator configured action in the case of any
of the external processes dying unexpectedly.

It covers both the neutron-ns-metadata-proxy for non-ha routers
and the IPv6 radvd external processes. Keepalived +
neutron-ns-metadata-proxy needs to be covered in a second follow up
patch when neutron-ns-metadata-proxy is handled by the l3-agent
(instead keepalived) in the ha-routers.

Implements: blueprint agent-child-processes-status

Change-Id: Id6cc4786d837b96c61429d51485bc86ae37872cb

9 years agoAdd option to remove networks from dead DHCP agents
Eugene Nikanorov [Fri, 24 Oct 2014 13:39:01 +0000 (17:39 +0400)]
Add option to remove networks from dead DHCP agents

Networks are removed from dead agents after a certain
configurable time.
Then unhosted networks could be picked up by alive DHCP agents.

The feature is added for all plugins that support DHCP scheduling

DocImpact
Change-Id: I6ab03b1642f54aa1d5de8844d95c758f1cb273f1
Closes-Bug: #1386794

9 years agoThin MLNX ML2 mechanism driver and agent
Moshe Levi [Sun, 11 Jan 2015 13:25:59 +0000 (15:25 +0200)]
Thin MLNX ML2 mechanism driver and agent

This commit thins the in-tree MLNX ML2 MechanismDriver and Agent. A matching
change to the stackforge/networking-mlnx project has the backend logic
there.

Partial-Implements: blueprint core-vendor-decomposition
Closes-Bug: 1414902

Change-Id: I22e6ff37ea289f58ca5a7f49d65f634f72730402

9 years agoFixing a log message in Arista L3 Service Plugin
Sukhdev [Fri, 16 Jan 2015 20:12:12 +0000 (12:12 -0800)]
Fixing a log message in Arista L3 Service Plugin

In a previous patch see here -
https://review.openstack.org/123886, couple of
messages were wrong.
This patch is to fix the log message.

Change-Id: I645396cbc2f6d2d862a9f4784eeb59475f321346
Closes-bug: 1373652

9 years agoDefault security group table
Ann Kamyshnikova [Fri, 12 Dec 2014 12:30:06 +0000 (15:30 +0300)]
Default security group table

This change prevents the race condition by enforcing a single default
security group via new table default_security_group. It has tenant_id
as primary key and security_group_id, which is id of default
security group. Migration that inroduces this table has sanity check that
verifies that there is no duplicate default security group in any
tenant.

This idea has come up from discussion in comments to
https://review.openstack.org/135006

DocImpact

Closes-bug: #1194579

Change-Id: Ifa8fbddd22bce4c50836cf443ebe10dff37443ef

9 years agoRefactor _convert_sgr_to_iptables_rules in iptables_firewall
Miguel Angel Ajo [Wed, 28 Jan 2015 16:14:36 +0000 (16:14 +0000)]
Refactor _convert_sgr_to_iptables_rules in iptables_firewall

The function is refactored to build ipset and non ipset
iptables rules on separate functions.

Partially implements blueprint refactor-iptables-firewall-driver

Change-Id: Id9d10a6114285bfb11d412de64e85bdf5bf6ef88

9 years agoMerge "Allow 'max_l3_agents_per_router' to be set to '0'"
Jenkins [Thu, 29 Jan 2015 09:25:06 +0000 (09:25 +0000)]
Merge "Allow 'max_l3_agents_per_router' to be set to '0'"

9 years agoMerge "tests: don't spread fixtures.TempDir throughout test cases"
Jenkins [Thu, 29 Jan 2015 09:24:33 +0000 (09:24 +0000)]
Merge "tests: don't spread fixtures.TempDir throughout test cases"

9 years agoMerge "TestL2PopulationRpcTestCase: Stop loading linuxbridge mech driver"
Jenkins [Thu, 29 Jan 2015 08:18:57 +0000 (08:18 +0000)]
Merge "TestL2PopulationRpcTestCase: Stop loading linuxbridge mech driver"

9 years agoMerge "Make the interface driver available to the router classes"
Jenkins [Thu, 29 Jan 2015 08:18:39 +0000 (08:18 +0000)]
Merge "Make the interface driver available to the router classes"

9 years agoMerge "Updated from global requirements"
Jenkins [Thu, 29 Jan 2015 07:57:41 +0000 (07:57 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "test_agent_scheduler: Fix a misleading variable name"
Jenkins [Thu, 29 Jan 2015 07:05:59 +0000 (07:05 +0000)]
Merge "test_agent_scheduler: Fix a misleading variable name"

9 years agoMerge "Make agent config available to the router classes"
Jenkins [Thu, 29 Jan 2015 07:05:45 +0000 (07:05 +0000)]
Merge "Make agent config available to the router classes"

9 years agoMerge "Drop bin/neutron-rootwrap"
Jenkins [Thu, 29 Jan 2015 05:55:50 +0000 (05:55 +0000)]
Merge "Drop bin/neutron-rootwrap"

9 years agoMerge "Fix AttributeError when using DVRServerRpcApi"
Jenkins [Thu, 29 Jan 2015 04:42:25 +0000 (04:42 +0000)]
Merge "Fix AttributeError when using DVRServerRpcApi"

9 years agoMerge "Fixes blocking of VRF config in Arista L3 Plugin"
Jenkins [Wed, 28 Jan 2015 23:11:34 +0000 (23:11 +0000)]
Merge "Fixes blocking of VRF config in Arista L3 Plugin"

9 years agoDo not check twice IP allocations for auto-address subnets
Salvatore Orlando [Fri, 23 Jan 2015 21:51:15 +0000 (13:51 -0800)]
Do not check twice IP allocations for auto-address subnets

For auto-address subnets such as those with SLAAC and DHCP_STATELESS
address modes it is ok to delete them even when there are active IP
allocations.

The current logic might trigger unexpected 409 errors if IP
allocations are made on these subnets concurrently with their
deletion.

This patch simply ensures the final check for active IP allocations is
not performed for this class of subnets; since all IP allocations will
be removed anyway, it does not make sense to check whether there are
allocations at all. In fact, doing this check might cause a failure
of the delete operation if an IP allocation is made concurrently.

This patch also factors out the logic for checking whether there are
IP allocations on the subnet to avoid code duplication.

Closes-Bug: #1414199

Change-Id: I1c4ca6f677845f6e2e8d88f3629c0e91ca73b5d0

9 years agoMake the interface driver available to the router classes
Carl Baldwin [Wed, 28 Jan 2015 17:50:31 +0000 (17:50 +0000)]
Make the interface driver available to the router classes

Ultimately, it will only be the routers that need access to the
interface driver and the agent won't need to use it for anything.
However, it still makes sense for the agent to initialize it once and
pass it to each of the routers as they're created.

Multiple patches with multiple authors will be created to depend on
this addition.

Change-Id: I0ec75d731d816955c1915e283a137abcb51ac232
Partially-Implements: bp/restructure-l3-agent

9 years agoMake agent config available to the router classes
Carl Baldwin [Tue, 20 Jan 2015 16:48:47 +0000 (16:48 +0000)]
Make agent config available to the router classes

Since the agent and the routers are all configured in the same config
file, the routers are going to need access to the agent's config.
This work will support multiple future patches.

Change-Id: I33a23eb37678d94cea3ace8afe090935b1e70685
Partially-Implements: bp/restructure-l3-agent

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 28 Jan 2015 16:33:51 +0000 (16:33 +0000)]
Updated from global requirements

Change-Id: Ia7334be0958388435567af418bcdf603a6e45a57

9 years agoDrop bin/neutron-rootwrap
Ihar Hrachyshka [Wed, 21 Jan 2015 15:32:23 +0000 (16:32 +0100)]
Drop bin/neutron-rootwrap

It's already automatically generated from console_scripts entry in
setup.cfg.

Change-Id: I56fa1f18113cff6586ce48463b3d494517fc137d

9 years agoRefactor iptables rule expansion for the non ipset case
Miguel Angel Ajo [Mon, 19 Jan 2015 11:50:18 +0000 (11:50 +0000)]
Refactor iptables rule expansion for the non ipset case

IptablesFirewallDriver / _select_sg_rules_for_port was
handling the rule expansion for the non ipset case all
inside the same function.

This patch refactors the expansion out, so it will be
more clear, and easier to cut out non-ipset code later
in time.

Partially implements blueprint refactor-iptables-firewall-driver

Change-Id: I4225d233e59da797e9fa1737757d039eb946cba1

9 years agoSet locale before check dnsmasq version
Xu Han Peng [Fri, 23 Jan 2015 07:21:33 +0000 (15:21 +0800)]
Set locale before check dnsmasq version

In some locale settings, cmd "dnsmasq --version" returns unexpected
result even when dnsmasq is the right version.

This fix sets env variable as "LC_ALL=C" to make sure dnsmasq version
check returns correct result.

Change-Id: I3d1c7793632f2c62e7b54e250e052de15f978e59
Closes-Bug:1412738

9 years agoFreescale FWaaS Plugin: Update to setup.cfg
Trinath Somanchi [Wed, 28 Jan 2015 08:22:29 +0000 (13:52 +0530)]
Freescale FWaaS Plugin: Update to setup.cfg

Partially implements: blueprint freescale-fwaas-plugin

Depends-On: https://review.openstack.org/#/c/148884/

Change-Id: If16171fb288ca2f430a2c496f452d4e2acc06b21

9 years agoMerge "Fixes Hyper-V agent root_helper issue"
Jenkins [Wed, 28 Jan 2015 08:10:13 +0000 (08:10 +0000)]
Merge "Fixes Hyper-V agent root_helper issue"

9 years agoAllow 'max_l3_agents_per_router' to be set to '0'
Yoni Shafrir [Mon, 26 Jan 2015 07:32:55 +0000 (09:32 +0200)]
Allow 'max_l3_agents_per_router' to be set to '0'

Currently the field 'max_l3_agents_per_router' from
'neutron.conf' cannot be set to '0' even though the comments
and code indicate it is be supported. The value
means 'unlimited' agents per router is allowed on HA routers.

This issue is a regression that was caused by:
7da314434e445ce3a6f3642c784954ef61154b7f

This patch adds a special handling for this value when validating
the config. When a value of '0' is used, the further validation
of max value is skipped.

Change-Id: Iac85768b350ee16c34893218738974a2692202aa
Closes-Bug: #1414548

9 years agotest_agent_scheduler: Fix a misleading variable name
YAMAMOTO Takashi [Wed, 28 Jan 2015 05:17:15 +0000 (14:17 +0900)]
test_agent_scheduler: Fix a misleading variable name

This looks like a copy-and-modify mistake.

Change-Id: I4d1b7233773d4728a60d9e7588dcddc69c33c3b0

9 years agoMerge "Add abandon script from nova"
Jenkins [Wed, 28 Jan 2015 02:03:58 +0000 (02:03 +0000)]
Merge "Add abandon script from nova"

9 years agoMerge "Refactor the ProcessMonitor _exit_handler to ProcessMonitor"
Jenkins [Tue, 27 Jan 2015 23:49:07 +0000 (23:49 +0000)]
Merge "Refactor the ProcessMonitor _exit_handler to ProcessMonitor"

9 years agoFix AttributeError when using DVRServerRpcApi
armando-migliaccio [Wed, 24 Dec 2014 06:30:19 +0000 (22:30 -0800)]
Fix AttributeError when using DVRServerRpcApi

This time with tests for the joy of Maru and Assaf. More
context on [1].

[1] https://review.openstack.org/#/c/143778/

Related-bug: #1394848
Closes-bug: #1414812

Change-Id: I8ad1f1ad6caaee1f18a44f06cea532f4aa9a82b6

9 years agoMerge "Ensure ofports are converted to string before trying to use join()"
Jenkins [Tue, 27 Jan 2015 20:33:10 +0000 (20:33 +0000)]
Merge "Ensure ofports are converted to string before trying to use join()"

9 years agoAdd abandon script from nova
Kyle Mestery [Mon, 26 Jan 2015 15:12:31 +0000 (15:12 +0000)]
Add abandon script from nova

This adds the abandon_old_reviews.sh from the nova repository into
Neutron. This is handy for cleaning up the neutron review queues
by abandoning stale reviews stuck in the queue with a helpful
message.

Change-Id: I8920123217cb134c792dee35a5b06abde31be1d4

9 years agoMerge "dhcp: move dnsmasq version check to sanity_check"
Jenkins [Tue, 27 Jan 2015 17:25:07 +0000 (17:25 +0000)]
Merge "dhcp: move dnsmasq version check to sanity_check"

9 years agoAdd missing Connection.close() method
Ilya Shakhat [Thu, 22 Jan 2015 15:30:06 +0000 (18:30 +0300)]
Add missing Connection.close() method

This patch adds missing Connection.close() which is referred from
Service.stop().

Closes bug 1413998

Change-Id: I76e825463012384f98a473dfda62665392e533f3

9 years agoRefactor the ProcessMonitor _exit_handler to ProcessMonitor
Miguel Angel Ajo [Tue, 27 Jan 2015 11:52:30 +0000 (11:52 +0000)]
Refactor the ProcessMonitor _exit_handler to ProcessMonitor

We allowed to provide an specific _exit_handler, but in
the end all the implementations are providing the same
one. So, now it's refactored back to the monitor, and
removed any YAGNI code.

Partially implements: bp/agent-child-processes-status

Change-Id: I916feb631885324bc98da1b1350915e14b6fcadc

9 years agoTestL2PopulationRpcTestCase: Stop loading linuxbridge mech driver
YAMAMOTO Takashi [Mon, 26 Jan 2015 09:33:52 +0000 (18:33 +0900)]
TestL2PopulationRpcTestCase: Stop loading linuxbridge mech driver

The driver is loaded but not used by the test.

Change-Id: I012409b219bda97c5341daeb9a4e1c26c553fd96

9 years agoMerge "Move shared metadata driver related config options"
Jenkins [Tue, 27 Jan 2015 06:35:11 +0000 (06:35 +0000)]
Merge "Move shared metadata driver related config options"

9 years agoVLAN support for DVR
Vivekanandan Narasimhan [Mon, 13 Oct 2014 06:15:14 +0000 (23:15 -0700)]
VLAN support for DVR

Brings in VLAN underlay support for
distributed virtual router. In line with
it brings in the ability to route packets
between VLAN and VXLAN (or) VLAN and GRE
networks via distributed virtual routers.

Implements: blueprint neutron-ovs-dvr-vlan
Closes-Bug: #1374995
Change-Id: If1eb9deef76a49bd0ae0d90ad5ad6a495d97a3b2

9 years agoFixes Hyper-V agent root_helper issue
Lucian Petrut [Mon, 26 Jan 2015 18:58:18 +0000 (20:58 +0200)]
Fixes Hyper-V agent root_helper issue

This patch I2aaa55e8e539e47427e56b4da42321cfcfcde622 introduced a
reference to the root_helper config option in the Hyper-V Neutron
agent without it being registered. For this reason,
the Hyper-V Neutron agent fails to start.

As the root helper is not used by the Hyper-V Neutron agent,
all the occurences within the agent can be safely removed.

Change-Id: I85a6cc640e3fc7bcc8ab53a10824c206a15cda7c
Closes-Bug: #1415010

9 years agoMerge "drop unused test rootwrap filter file"
Jenkins [Tue, 27 Jan 2015 02:47:30 +0000 (02:47 +0000)]
Merge "drop unused test rootwrap filter file"

9 years agoMerge "Update comment about metadata_proxy_shared_secret config"
Jenkins [Tue, 27 Jan 2015 02:41:09 +0000 (02:41 +0000)]
Merge "Update comment about metadata_proxy_shared_secret config"

9 years agoMerge "Add index on db "allocated" columns"
Jenkins [Tue, 27 Jan 2015 02:40:44 +0000 (02:40 +0000)]
Merge "Add index on db "allocated" columns"

9 years agoEnsure ofports are converted to string before trying to use join()
Terry Wilson [Tue, 27 Jan 2015 00:52:31 +0000 (18:52 -0600)]
Ensure ofports are converted to string before trying to use join()

Change-Id: Idfe0bf8bedbe4bc165a33f66785eb6b5b38a5a0e
Closes-bug: #1415043

9 years agoMerge "Update _cur names to _current in iptables_firewall.py"
Jenkins [Tue, 27 Jan 2015 00:14:21 +0000 (00:14 +0000)]
Merge "Update _cur names to _current in iptables_firewall.py"

9 years agoMerge "Add coverage for extra routes extension"
Jenkins [Mon, 26 Jan 2015 23:58:05 +0000 (23:58 +0000)]
Merge "Add coverage for extra routes extension"

9 years agoMerge "Extract l2pop/DVR controller logic to common method"
Jenkins [Mon, 26 Jan 2015 23:26:52 +0000 (23:26 +0000)]
Merge "Extract l2pop/DVR controller logic to common method"

9 years agoMerge "ML2: Driver API changes for hierarchical port binding"
Jenkins [Mon, 26 Jan 2015 23:19:55 +0000 (23:19 +0000)]
Merge "ML2: Driver API changes for hierarchical port binding"

9 years agoMerge "Add functional tests for IptablesManager using tcp/udp"
Jenkins [Mon, 26 Jan 2015 22:38:58 +0000 (22:38 +0000)]
Merge "Add functional tests for IptablesManager using tcp/udp"

9 years agoMerge "Add OVSDB abstract API"
Jenkins [Mon, 26 Jan 2015 22:36:33 +0000 (22:36 +0000)]
Merge "Add OVSDB abstract API"

9 years agoAdd coverage for extra routes extension
Assaf Muller [Mon, 26 Jan 2015 15:37:43 +0000 (10:37 -0500)]
Add coverage for extra routes extension

Test the extra routes extension for legacy and HA routers
in the L3 agent functional tests.

Partially-Implements: bp/restructure-l3-agent
Change-Id: I26444acf32652d1845ad0325a3a10b8a17c510c9

9 years agoAdd address family to 'ip rule' calls
Brian Haley [Tue, 25 Nov 2014 02:33:20 +0000 (21:33 -0500)]
Add address family to 'ip rule' calls

Without an address family, 'ip rule' won't work with IPv6
arguments because it assumes IPv4.  This causes the l3-agent
to throw an error when adding a rule in DVR mode.

Also changed these functions to be more symmetrical and take the
same arguments, which required a little tweaking, but it looks
much cleaner now.

Change-Id: I85718d8d6ffcf3dec2a6b92641a731af813114aa
Closes-bug: #1376325

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 26 Jan 2015 20:33:07 +0000 (20:33 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Use DVRServerRpcApi instead of a mixin"
Jenkins [Mon, 26 Jan 2015 19:45:43 +0000 (19:45 +0000)]
Merge "Use DVRServerRpcApi instead of a mixin"

9 years agoMerge "Scope secgroup rpc api using a messaging namespace"
Jenkins [Mon, 26 Jan 2015 19:45:28 +0000 (19:45 +0000)]
Merge "Scope secgroup rpc api using a messaging namespace"

9 years agoMerge "Add and use SecurityGroupAgentRpc"
Jenkins [Mon, 26 Jan 2015 19:44:51 +0000 (19:44 +0000)]
Merge "Add and use SecurityGroupAgentRpc"