]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoRemoved diff with upstream tag.
Thomas Goirand [Tue, 10 Feb 2015 13:52:00 +0000 (14:52 +0100)]
Removed diff with upstream tag.

9 years agoRefreshed patches.
Thomas Goirand [Tue, 10 Feb 2015 13:45:00 +0000 (14:45 +0100)]
Refreshed patches.

9 years agoFixed (build-)depends for this release.
Thomas Goirand [Mon, 9 Feb 2015 19:31:47 +0000 (20:31 +0100)]
Fixed (build-)depends for this release.

9 years agoNow packaging Kilo beta 2.
Thomas Goirand [Mon, 9 Feb 2015 19:15:07 +0000 (20:15 +0100)]
Now packaging Kilo beta 2.

9 years agoMerge tag '2015.1_b2' into debian/kilo
Thomas Goirand [Mon, 9 Feb 2015 19:14:20 +0000 (20:14 +0100)]
Merge tag '2015.1_b2' into debian/kilo

Neutron kilo-2 milestone (2015.1.0b2)

9 years agoMerge "Allow to request metadata proxy only with redirection"
Jenkins [Thu, 5 Feb 2015 12:06:37 +0000 (12:06 +0000)]
Merge "Allow to request metadata proxy only with redirection"

9 years agoMerge "Not assign dynamic IPv6 address on dhcp interface"
Jenkins [Thu, 5 Feb 2015 10:13:00 +0000 (10:13 +0000)]
Merge "Not assign dynamic IPv6 address on dhcp interface"

9 years agoMerge "Pass '--dhcp-authoritative' option to dnsmasq"
Jenkins [Thu, 5 Feb 2015 07:19:09 +0000 (07:19 +0000)]
Merge "Pass '--dhcp-authoritative' option to dnsmasq"

9 years agoMerge "Log entry when no Floating IP interface present"
Jenkins [Thu, 5 Feb 2015 06:12:38 +0000 (06:12 +0000)]
Merge "Log entry when no Floating IP interface present"

9 years agoMerge "Fix breakage in all service repo unit tests, due to duplicate imports of exts"
Jenkins [Thu, 5 Feb 2015 05:47:36 +0000 (05:47 +0000)]
Merge "Fix breakage in all service repo unit tests, due to duplicate imports of exts"

9 years agoFix breakage in all service repo unit tests, due to duplicate imports of exts
Doug Wiegley [Thu, 5 Feb 2015 03:33:35 +0000 (21:33 -0600)]
Fix breakage in all service repo unit tests, due to duplicate imports of exts

Duplicate imports of the same class + super() are not playing nicely
together, and our unit test base classes cause some dups in the extension
search path, breaking the service repos. This was not noticed earlier
in the extension moving process, because the temporary move code had a crude
mechanism to prevent the loading of same named extensions.

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

9 years agoLog entry when no Floating IP interface present
rajeev [Wed, 4 Feb 2015 22:48:16 +0000 (17:48 -0500)]
Log entry when no Floating IP interface present

Having a log entry here in process_router_floating_ip_addresses
would make it easier to understand why the status of floating ips
wasn't updated.

Change-Id: If7ff3d8951010ed2a4e802acdb948cfdfcb5dda6
Related-bug: #1415522

9 years agoMerge "Updated from global requirements"
Jenkins [Thu, 5 Feb 2015 00:03:43 +0000 (00:03 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Decrease rpc timeout after agent receives SIGTERM"
Jenkins [Thu, 5 Feb 2015 00:03:29 +0000 (00:03 +0000)]
Merge "Decrease rpc timeout after agent receives SIGTERM"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 4 Feb 2015 23:37:48 +0000 (23:37 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Nuke remaining service config and extensions from main repo"
Jenkins [Wed, 4 Feb 2015 22:46:13 +0000 (22:46 +0000)]
Merge "Nuke remaining service config and extensions from main repo"

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

9 years agoNuke remaining service config and extensions from main repo
Doug Wiegley [Fri, 30 Jan 2015 05:57:55 +0000 (22:57 -0700)]
Nuke remaining service config and extensions from main repo

Change-Id: Ic8ab865a387808c925cc311d9b70ac53f5c2c5b8
Partially-implements: blueprint services-split

9 years agoAdded code to handle the nova credentials in neutron and the metadata_proxy_shared_secret
Thomas Goirand [Wed, 4 Feb 2015 10:06:15 +0000 (11:06 +0100)]
Added code to handle the nova credentials in neutron and the metadata_proxy_shared_secret

9 years agoPass '--dhcp-authoritative' option to dnsmasq
Alexey I. Froloff [Mon, 2 Feb 2015 10:44:14 +0000 (13:44 +0300)]
Pass '--dhcp-authoritative' option to dnsmasq

When dnsmasq is restarted, it forgets about all leases (since it runs
with leasefile-ro option). When client tries to renew its lease, dnsmasq
sends DHCPNAK reply with message "lease not found". Then client shuts
down the network and re-request lease from DHCP server (and gets exactly
same IP address). There's a small network downtime which affects
services, like zookeeper, running in VMs.

Change-Id: Ieff0236670c1403b5d79ad8e50d7574c1b694e34
Closes-Bug: #1345947

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 4 Feb 2015 06:15:26 +0000 (06:15 +0000)]
Imported Translations from Transifex

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

Change-Id: I2ef01d197231ea814115d1f95d703ae101f2272b

9 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

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

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 3 Feb 2015 23:17:15 +0000 (23:17 +0000)]
Updated from global requirements

Change-Id: I0160a78502e5c18d62fc9bb75a8eb33342091050

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

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

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

9 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

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

9 years agoDecrease rpc timeout after agent receives SIGTERM
Jakub Libosvar [Fri, 30 Jan 2015 17:30:22 +0000 (18:30 +0100)]
Decrease rpc timeout after agent receives SIGTERM

The patch sets different timeout to rpc api objects in OVS agent after
SIGTERM is received. Given timeout is configurable. This action prevents
long waiting for rpc call() methods to timeout and decreases amount of time
needed to successfully stopping OVS agent.

DocImpact
Change-Id: I3026775e813a74bad9e0bca3be1f535212a2e417
Closes-Bug: 1408334

9 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)"

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

9 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

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

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

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

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

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

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

9 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

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

9 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

9 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

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

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 agoAllow to request metadata proxy only with redirection
Cedric Brandily [Mon, 10 Nov 2014 13:46:51 +0000 (14:46 +0100)]
Allow to request metadata proxy only with redirection

metadata service should be requested on 169.254.169.254:80 and router
namespace iptables rules redirect the request to the metadata-ns-proxy
on 127.0.0.1:$metadata_port. But currently the metadata-ns-proxy can be
requested directly on $router-ip:$metadata_port.

To avoid such behavior, this change marks packets redirection in mangle
table (PREROUTING), redirects (PREROUTING) them in nat table, accepts
them in filter table (INPUT) using the mark. Packets send to the
metadata proxy port without mark (so directly) are dropped. The
mark can be configured through the new option metadata_access_mark.

Remark: redirected packets are not local packets (in general), so
setting metadata proxy server host to 127.0.0.1 will disallow direct
queries but so redirected queries.

DocImpact
Partial-Bug: #1187102
Change-Id: I6a9bb12c8bf68c6fcf4e4060f8dfe44a309a41da

9 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

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

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 agoNot assign dynamic IPv6 address on dhcp interface
Xu Han Peng [Fri, 23 Jan 2015 05:29:47 +0000 (13:29 +0800)]
Not assign dynamic IPv6 address on dhcp interface

When SLAAC IPv6 subnet using external router advertisement
(ipv6_ra_mode=None, ipv6_address_mode=slaac) is added to a
dual-stack network, the device of dnsmasq or router gateway may
already be assigned with dynamic SLAAC IPv6 address. Current
code only checks for permanent address on a device when
initilizing the l3 address of that device. This results
assigning duplicated address to dhcp tap device, which leads
to dhcp agent failure.

This fix changes dhcp code to not init dynamic IPv6 address
on dhcp device so dynamic address can be auto-configured by
either internal or external RA device.

Change-Id: I72b85eb93d1849299d523eedf563ab201b4a0352
Closes-Bug:1409634

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

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