]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoMerge "Fix extra-dhcp-opt on stateless dhcpv6 subnet"
Jenkins [Wed, 4 Feb 2015 22:29:45 +0000 (22:29 +0000)]
Merge "Fix extra-dhcp-opt on stateless dhcpv6 subnet"

10 years agoFix extra-dhcp-opt on stateless dhcpv6 subnet
lijianlj [Fri, 16 Jan 2015 09:02:40 +0000 (17:02 +0800)]
Fix extra-dhcp-opt on stateless dhcpv6 subnet

The opts in dnsmasq opt-file is depending on the tag set
in the host-file. When you have only one stateless dhcpv6 subnet,
it will be filtered by the _iter_host() function, and will not be
written to the host-file, this may lead to extra-dhcp-opt not working.

Closes-Bug:#1411137

Change-Id: Ieed16280fb3c4c91f7d906c0410446d2a112b93e

10 years agoMerge "Configures RADVD to send managed flag in RA for DHCP_STATEFUL"
Jenkins [Wed, 4 Feb 2015 00:23:51 +0000 (00:23 +0000)]
Merge "Configures RADVD to send managed flag in RA for DHCP_STATEFUL"

10 years agoMerge "ML2: Use same port binding logic for DVR ports as non-DVR ports"
Jenkins [Tue, 3 Feb 2015 19:16:11 +0000 (19:16 +0000)]
Merge "ML2: Use same port binding logic for DVR ports as non-DVR ports"

10 years agoMerge "Allow port mac_address to be modified"
Jenkins [Tue, 3 Feb 2015 17:37:40 +0000 (17:37 +0000)]
Merge "Allow port mac_address to be modified"

10 years agoMerge "Support Extra DHCP Options for IPv4 and IPv6"
Jenkins [Tue, 3 Feb 2015 17:13:24 +0000 (17:13 +0000)]
Merge "Support Extra DHCP Options for IPv4 and IPv6"

10 years agoML2: Use same port binding logic for DVR ports as non-DVR ports
Robert Kukura [Thu, 29 Jan 2015 22:13:00 +0000 (17:13 -0500)]
ML2: Use same port binding logic for DVR ports as non-DVR ports

DVR ports are now bound using the same function,
Ml2Plugin._bind_port_if_needed(), that is used to bind non-DVR ports,
so that concurrent binding attempts are properly handled and mechanism
driver update_port_precommit() and update_port_postcommit() methods
are called. The Ml2Plugin._commit_dvr_port_binding() function is
eliminated, and the DvrPortContext class has been folded into the
PortContext class, reducing duplicated logic.

A followup patch will address the duplication of ML2 DB schema for DVR
and further reduce the duplicated and special-case port binding logic
supporting DVR.

Closes-Bug: 1415526
Closes-Bug: 1416783
Partial-Bug: 1367391

Change-Id: Ic32241297c5f8c67dc77d0af836b1cc0a5df988a

10 years agoMerge "Refactor ml2 manager"
Jenkins [Tue, 3 Feb 2015 13:25:43 +0000 (13:25 +0000)]
Merge "Refactor ml2 manager"

10 years agoMerge "NSX DB models split, part 3 (and final)"
Jenkins [Tue, 3 Feb 2015 07:36:34 +0000 (07:36 +0000)]
Merge "NSX DB models split, part 3 (and final)"

10 years agoMerge "NSX DB models split, part 2"
Jenkins [Tue, 3 Feb 2015 07:36:21 +0000 (07:36 +0000)]
Merge "NSX DB models split, part 2"

10 years agoConfigures RADVD to send managed flag in RA
singhannie [Wed, 31 Dec 2014 11:47:38 +0000 (03:47 -0800)]
Configures RADVD to send managed flag in RA
for DHCP_STATEFUL

RADVD process is configured so that it sends
managed flag in RA for the subnets with
ra_mode set to DHCP_STATEFUL. UT case is
updated to check the presence of managed
flag in config file of RADVD for
DHCP_STATEFUL.

Change-Id: If685846c0c0f67bf4c40f4f268b9d03bfa2b1654
Closes-Bug: #1377843

10 years agoMerge "Make prevent_l3_port_deletion handle missing port"
Jenkins [Tue, 3 Feb 2015 04:00:05 +0000 (04:00 +0000)]
Merge "Make prevent_l3_port_deletion handle missing port"

10 years agoMerge "Remove unused mocks"
Jenkins [Tue, 3 Feb 2015 03:54:14 +0000 (03:54 +0000)]
Merge "Remove unused mocks"

10 years agoMerge "Extension moving tweaks, exceptions and extension path fix"
Jenkins [Tue, 3 Feb 2015 03:46:23 +0000 (03:46 +0000)]
Merge "Extension moving tweaks, exceptions and extension path fix"

10 years agoMerge "NSX DB models split, part 1"
Jenkins [Tue, 3 Feb 2015 03:43:19 +0000 (03:43 +0000)]
Merge "NSX DB models split, part 1"

10 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"

10 years agoMake prevent_l3_port_deletion handle missing port
Kevin Benton [Fri, 30 Jan 2015 20:53:57 +0000 (12:53 -0800)]
Make prevent_l3_port_deletion handle missing port

This adjusts the prevent_l3_port_deletion function to handle
the case where the port ID that is passed to it does not have
an entry in the database.

Previously it was raising an exception in this case, which is
inconsistent to how ML2 was handling concurrent port_delete requests
further in the port delete function (log them but don't fail).

Closes-Bug: #1416554
Change-Id: I6da021bdf0c79f72336416d02ab989407f352904

10 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"

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

10 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

10 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"

10 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"

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

10 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"

10 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"

10 years agoNSX DB models split, part 3 (and final)
Salvatore Orlando [Mon, 2 Feb 2015 18:01:44 +0000 (10:01 -0800)]
NSX DB models split, part 3 (and final)

Move data models for the QoS extensions into
neutron.plugins.vmware.dbexts.nsx_models

This patch is part of a set of minor refactorings in the NSX plugin
which will then lead to a semi-full decomposition by the end of
the Kilo release cycle.

Related-to blueprint core-vendor-decomposition

Change-Id: I4fc5207a9ec74c770c3e0cac14daed10000bb2b7

10 years agoNSX DB models split, part 2
Salvatore Orlando [Mon, 2 Feb 2015 17:30:02 +0000 (09:30 -0800)]
NSX DB models split, part 2

Move models for mac learning and logical services extensions
into the module neutron.plugins.vmware.dbexts.nsx_models

This patch is part of a set of minor refactorings in the NSX plugin
which will then lead to a semi-full decomposition by the end of
the Kilo release cycle.

Related-to blueprint core-vendor-decomposition

Change-Id: I0faba801b90893d949655e895899dd6aa0da6d96

10 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

10 years agoRefactor ml2 manager
Manish Godara [Wed, 21 Jan 2015 23:49:43 +0000 (15:49 -0800)]
Refactor ml2 manager

Refactor code to facilitate other changes. Keeping the
refactored code in different patch for ease of review.
This patch mainly consolidates the keys that are referenced
together most of the time in reference to providernet
extension. By doing this, the subsequent changes are less
repetitive and makes the code little cleaner as well.

Change-Id: Idc0648d5c4688c8f797cc5427b71c2a3919ce722
Related-Bug: #1333475

10 years agoExtension moving tweaks, exceptions and extension path fix
Doug Wiegley [Mon, 2 Feb 2015 16:08:17 +0000 (10:08 -0600)]
Extension moving tweaks, exceptions and extension path fix

- Put a few shared *aas exceptions into neutron.common exceptions, pending
them being unnecessary after L3 refactor.
- Fix extension path creation, which dropped the extensions sub-module
for service repos in one of the patch refactors.

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

10 years agoNSX DB models split, part 1
Salvatore Orlando [Mon, 2 Feb 2015 14:01:49 +0000 (06:01 -0800)]
NSX DB models split, part 1

This patch introduces a new module for hosting NSX DB model classes,
and populates it with models for the 'network gateway' extension,
which are then removed from the model hosting the network gateway
mixin.

This patch is part of a set of minor refactorings in the NSX plugin
which will then lead to a semi-full decomposition by the end of
the Kilo release cycle.

Related-to blueprint core-vendor-decomposition

Change-Id: Ie04f6c94055ac20b938c17cea251ec6532a1e16a

10 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"

10 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

10 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

10 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"

10 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"

10 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"

10 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"

10 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

10 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"

10 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

10 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

10 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"

10 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"

10 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

10 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"

10 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"

10 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"

10 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

10 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

10 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"

10 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"

10 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

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

10 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

10 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

10 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"

10 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"

10 years agoFix flake exclude matching of .*
Terry Wilson [Fri, 30 Jan 2015 17:05:34 +0000 (11:05 -0600)]
Fix flake exclude matching of .*

When using \.* for a match, flake8 tests all files in .venv on my
machine. Replacing this match with ./.* fixes the issue.

Change-Id: If5617daad95e8b33888b672e36f38ade07d7cb89

10 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"

10 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

10 years agoRemove unused mocks
YAMAMOTO Takashi [Fri, 30 Jan 2015 08:15:33 +0000 (17:15 +0900)]
Remove unused mocks

Remove unused mocks, which were recently introduced by
commit 0db17ea6ece6ce3135034052bb974226074302b6 .

Change-Id: I79c82ad491a4b280b981eb751fbb0bd0fa6f4302

10 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__"

10 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"

10 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>
10 years agoAllow port mac_address to be modified
ChuckC [Mon, 4 Aug 2014 23:52:36 +0000 (16:52 -0700)]
Allow port mac_address to be modified

With ironic servers, a NIC can fail and be replaced with one that has a
different mac.  The corresponding neutron port needs to be updated with
the new mac address so the NIC can be guaranteed to retain the same IP
address.

This change enables this feature in the ml2 plugin.  There may need to
be changes to other plugins to disable or complete the implementation of
this feature.

Closes-Bug: #1341268
Partially-implements: blueprint allow-mac-to-be-updated
APIImpact: Ports
DocImpact: minor port update api change
Change-Id: I1864c0882cda7eddc9ced519ed3f96c91b2b63f3

10 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"

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

10 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

10 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

10 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

10 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

10 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

10 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

10 years agoSupport Extra DHCP Options for IPv4 and IPv6
Xu Han Peng [Thu, 23 Oct 2014 08:24:26 +0000 (16:24 +0800)]
Support Extra DHCP Options for IPv4 and IPv6

Add API and DB change for Blueprint extra-dhcp-opts-ipv4-ipv6.
Add unit tests for this change.

The validation of input extra dhcp options is not included
in this commit. A follow-up commit will be added for
validation.

DocImpact
APIImpact

Change-Id: I346334568929e50e51dd577cde6a257f4bce8e77
Partially-implements: Blueprint extra-dhcp-opts-ipv4-ipv6

10 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

10 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'"

10 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"

10 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"

10 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"

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

10 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"

10 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"

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

10 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"

10 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"

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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"

10 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

10 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

10 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"

10 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"

10 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