]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoClarify message when no probes are cleared
Jacek Swiderski [Wed, 27 Aug 2014 11:59:19 +0000 (13:59 +0200)]
Clarify message when no probes are cleared

Log number of probes which were deleted by
using neutron-debug probe-clear
Closes-Bug: #1333103

Change-Id: I5b53f0c4651c6df491d414d7d65f98c4a84a5987

10 years agoMerge "Fix incorrect number of args to string format"
Jenkins [Wed, 27 Aug 2014 09:42:31 +0000 (09:42 +0000)]
Merge "Fix incorrect number of args to string format"

10 years agoMerge "Fix DVR to service LBaaS VIP Ports"
Jenkins [Wed, 27 Aug 2014 09:05:23 +0000 (09:05 +0000)]
Merge "Fix DVR to service LBaaS VIP Ports"

10 years agoMerge "Increase the default poll duration for Cisco n1kv"
Jenkins [Wed, 27 Aug 2014 06:15:10 +0000 (06:15 +0000)]
Merge "Increase the default poll duration for Cisco n1kv"

10 years agoMerge "Predictable iptables chains output order"
Jenkins [Wed, 27 Aug 2014 06:12:30 +0000 (06:12 +0000)]
Merge "Predictable iptables chains output order"

10 years agoMerge "Minor refactoring for add_router_to_l3_agent"
Jenkins [Wed, 27 Aug 2014 05:03:24 +0000 (05:03 +0000)]
Merge "Minor refactoring for add_router_to_l3_agent"

10 years agoFix incorrect number of args to string format
Angus Lees [Wed, 13 Aug 2014 05:39:36 +0000 (15:39 +1000)]
Fix incorrect number of args to string format

Since there wasn't already one, also add a unittest for
PortProfileBinding and repr() functions.

Change-Id: Ibd8c5a21a7743af4c1c302495a65eeb5e45f6315

10 years agoMerge "Prefer "val !=/== ref" over "val (not) in [ref]" in conditions"
Jenkins [Wed, 27 Aug 2014 00:54:37 +0000 (00:54 +0000)]
Merge "Prefer "val !=/== ref" over "val (not) in [ref]" in conditions"

10 years agoMinor refactoring for add_router_to_l3_agent
armando-migliaccio [Thu, 21 Aug 2014 00:36:06 +0000 (17:36 -0700)]
Minor refactoring for add_router_to_l3_agent

This method is more complicated than it needs
to be, and it makes it difficult to target
fixes for it.

Furthermore, this method calls into
auto_schedule_routers, which duplicates some
of the DB calls already made in the above
mentioned method. This refactoring
is done in preparation of the performance
improvement.

Partial-bug: #1356121
Related-Bug: #1358636

Change-Id: I9a0cfa41a5f067949b964d39157def55c40bf9af

10 years agoPredictable iptables chains output order
Henry Gessau [Sun, 27 Jul 2014 02:05:02 +0000 (22:05 -0400)]
Predictable iptables chains output order

This fixes the iptables unit tests that break with a randomized PYTHONHASHSEED
(see the bug report).

The chains for iptables are stored as sets to avoid duplicates. When they are
output by iptables_manager their order can therefore be unpredictable. This was
found hash seed 1016732220.

To fix this we:
 - Sort the chains output by iptables_manager
 - Update the unit tests to check for sorted chains

When multiple tables are processed, they can be processed in any order or
dumped in any order. Found with hash seed 3728666619.

To fix this we:
 - Traverse the tables in sorted order for dumping
 - Fix tests to allow for tables to be processed in any order

Note: There are several other unrelated unit tests that also break with a
randomized PYTHONHASHSEED, but they are not addressed here. They will be
addressed in separate patches.

Partial-bug: #1348818

Change-Id: Ic3f4cd85316c9fc2e78bc7f5e900cfac87baf39d

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 26 Aug 2014 20:25:02 +0000 (20:25 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "VPNaaS: Enable UT cases with newer oslo.messaging"
Jenkins [Tue, 26 Aug 2014 20:24:43 +0000 (20:24 +0000)]
Merge "VPNaaS: Enable UT cases with newer oslo.messaging"

10 years agoMerge "Add template attr. for subnet, router create in Nuage plugin"
Jenkins [Tue, 26 Aug 2014 20:24:06 +0000 (20:24 +0000)]
Merge "Add template attr. for subnet, router create in Nuage plugin"

10 years agoPrefer "val !=/== ref" over "val (not) in [ref]" in conditions
Cedric Brandily [Tue, 26 Aug 2014 17:45:22 +0000 (19:45 +0200)]
Prefer "val !=/== ref" over "val (not) in [ref]" in conditions

This change increases readibility with the following replacements in
conditions:

 * val in [ref] ==> val == ref
 * val not in [ref] ==> val != ref

Change-Id: I52a77aff60c8e46fa5f6290e3a565f58425d9a68

10 years agoMerge "Change autogenerate to be unconditional"
Jenkins [Tue, 26 Aug 2014 17:15:28 +0000 (17:15 +0000)]
Merge "Change autogenerate to be unconditional"

10 years agoFix DVR to service LBaaS VIP Ports
Swaminathan Vasudevan [Thu, 14 Aug 2014 06:38:56 +0000 (23:38 -0700)]
Fix DVR to service LBaaS VIP Ports

Currently, DVR router namespaces are created only
when there is a valid VM port on the compute
node, or for the gateway-port on the service node.
But when an LBaaS VIP port is created the l3 agent
does not create a DVR namespace to service the VIP port.
This fix enables DVR namespaces to be created to
service the LBaaS VIP port.

Also, this fix enables L2 Agent running in DVR
mode, to add-in OVS rules to enable packets to
be routed to such LBaaS VIP Ports which are
resident on DVR routed interfaces.

Therefore, with this fix both East-West and
North-South traffic will be serviced by DVR
for LBaas VIP Ports.

DocImpact

Authored-by: Swaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Co-Authored-By: Vivekanandan Narasimhan <vivekanandan.narasimhan@hp.com>
Change-Id: I698b971d50721fb0512a11569f7d3139d0d456f3
Closes-Bug: #1356464

10 years agoMerge "Refactor type_tunnel/gre/vxlan to reduce duplicate code"
Jenkins [Tue, 26 Aug 2014 10:51:06 +0000 (10:51 +0000)]
Merge "Refactor type_tunnel/gre/vxlan to reduce duplicate code"

10 years agoMerge "ext-gw update on dvr router improperly handled by l3-agent"
Jenkins [Tue, 26 Aug 2014 09:05:15 +0000 (09:05 +0000)]
Merge "ext-gw update on dvr router improperly handled by l3-agent"

10 years agoMerge "Use oslo.db create_engine instead of SQLAlchemy"
Jenkins [Tue, 26 Aug 2014 09:03:32 +0000 (09:03 +0000)]
Merge "Use oslo.db create_engine instead of SQLAlchemy"

10 years agoMerge "Log exceptions inside spawned functions"
Jenkins [Tue, 26 Aug 2014 09:03:18 +0000 (09:03 +0000)]
Merge "Log exceptions inside spawned functions"

10 years agoMerge "Removing sorted() function from assertEqual()"
Jenkins [Tue, 26 Aug 2014 09:03:04 +0000 (09:03 +0000)]
Merge "Removing sorted() function from assertEqual()"

10 years agoMerge "Do not assume order of parameters in OVSBridge.add_flow call"
Jenkins [Tue, 26 Aug 2014 09:02:49 +0000 (09:02 +0000)]
Merge "Do not assume order of parameters in OVSBridge.add_flow call"

10 years agoMerge "Ignore http_proxy while connecting to test WSGI server"
Jenkins [Tue, 26 Aug 2014 08:37:34 +0000 (08:37 +0000)]
Merge "Ignore http_proxy while connecting to test WSGI server"

10 years agoMerge "Add ipv6 forwarding for router namespaces"
Jenkins [Tue, 26 Aug 2014 08:33:20 +0000 (08:33 +0000)]
Merge "Add ipv6 forwarding for router namespaces"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 26 Aug 2014 06:04:57 +0000 (06:04 +0000)]
Imported Translations from Transifex

Change-Id: I33e552ddc0707c370475be79d9883eecaced8fdb

10 years agoMerge "Fix for floatingip-delete not removing fip_gw port"
Jenkins [Tue, 26 Aug 2014 05:15:57 +0000 (05:15 +0000)]
Merge "Fix for floatingip-delete not removing fip_gw port"

10 years agoMerge "Implement ip_lib.device_exists_with_ip_mac"
Jenkins [Tue, 26 Aug 2014 05:13:05 +0000 (05:13 +0000)]
Merge "Implement ip_lib.device_exists_with_ip_mac"

10 years agoext-gw update on dvr router improperly handled by l3-agent
Michael Smith [Mon, 25 Aug 2014 17:33:40 +0000 (10:33 -0700)]
ext-gw update on dvr router improperly handled by l3-agent

The recently added external_gateway method does not check
the agent mode or host binding before adding an external
gateway to a particular node/agent.  This fix adds the
required checks in the update path.

Change-Id: Idbb76eea1faec1c5d6b7615d23d74760cc327bb2
Closes-bug: #1356734

10 years agoMerge "Add specific docs build option to tox"
Jenkins [Tue, 26 Aug 2014 02:21:16 +0000 (02:21 +0000)]
Merge "Add specific docs build option to tox"

10 years agoFix for floatingip-delete not removing fip_gw port
Swaminathan Vasudevan [Thu, 31 Jul 2014 21:57:08 +0000 (14:57 -0700)]
Fix for floatingip-delete not removing fip_gw port

fip_agent_gateway_port is created dynamically on a
compute node where FIP namespace is created. When
floatingip-disassociate is called this 'port' is
deleted.

But when we call floatingip-delete this port is
not deleted.

This patch fixes the issue mentioned above.

Closes-Bug: #1351066

Change-Id: I1aa51680394547390546fe362abfae7a5d25425b

10 years agoMerge "Add _store_ip_allocation method"
Jenkins [Mon, 25 Aug 2014 23:19:49 +0000 (23:19 +0000)]
Merge "Add _store_ip_allocation method"

10 years agoIncrease the default poll duration for Cisco n1kv
Saksham Varma [Thu, 14 Aug 2014 21:39:20 +0000 (14:39 -0700)]
Increase the default poll duration for Cisco n1kv

Increase the poll duration for Cisco N1Kv, from 10s to 60s and also
clean up the /etc/neutron/plugins/cisco/cisco_plugins.ini file. The
current poll duration of 10s causes that VSM to unnecessarily taking
frequent CPU cycles, resulting in the failure of other tasks in scale
configurations.

Closes-Bug: 1357030

Change-Id: I95747f35bae5b7157391c1698c0fe84d2126aa10

10 years agoMerge "Minor refactoring of auto_schedule_routers"
Jenkins [Mon, 25 Aug 2014 22:14:58 +0000 (22:14 +0000)]
Merge "Minor refactoring of auto_schedule_routers"

10 years agoMerge "Assign Cisco nw profile to multi-tenants in single request"
Jenkins [Mon, 25 Aug 2014 22:14:44 +0000 (22:14 +0000)]
Merge "Assign Cisco nw profile to multi-tenants in single request"

10 years agoMerge "Arista Layer 3 Sevice Plugin"
Jenkins [Mon, 25 Aug 2014 22:12:54 +0000 (22:12 +0000)]
Merge "Arista Layer 3 Sevice Plugin"

10 years agoMerge "Do not explicitly set mysql_engine"
Jenkins [Mon, 25 Aug 2014 22:12:40 +0000 (22:12 +0000)]
Merge "Do not explicitly set mysql_engine"

10 years agoMerge "Do not log WARN messages about lack of L3 agents for DVR routers"
Jenkins [Mon, 25 Aug 2014 22:12:21 +0000 (22:12 +0000)]
Merge "Do not log WARN messages about lack of L3 agents for DVR routers"

10 years agoMerge "Fix policy rules for adding and removing router interfaces"
Jenkins [Mon, 25 Aug 2014 22:12:06 +0000 (22:12 +0000)]
Merge "Fix policy rules for adding and removing router interfaces"

10 years agoMerge "Updated from global requirements"
Jenkins [Mon, 25 Aug 2014 22:02:10 +0000 (22:02 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Refactor plugin setup helpers out of test.base"
Jenkins [Mon, 25 Aug 2014 19:09:42 +0000 (19:09 +0000)]
Merge "Refactor plugin setup helpers out of test.base"

10 years agoMerge "Use openstack.common.lockutils module for locks in tox functional tests."
Jenkins [Mon, 25 Aug 2014 19:06:45 +0000 (19:06 +0000)]
Merge "Use openstack.common.lockutils module for locks in tox functional tests."

10 years agoChange autogenerate to be unconditional
Jakub Libosvar [Tue, 22 Jul 2014 08:45:52 +0000 (10:45 +0200)]
Change autogenerate to be unconditional

Template for generating db migration scripts are now not run according
to used plugins. Target environment is set to use all available models
but also used plugins are kept for backward compatibility.

Part of this patch is script that will drop unused tables to avoid
generating the drop in future migration scripts.

Change-Id: I90a7d3416de24f2317ccdeb828bb8bd973ee5e61
Closes-bug: #1346638

10 years agoMerge "Raise proper exception in case duplicate ipv6 address is allocated"
Jenkins [Mon, 25 Aug 2014 18:26:11 +0000 (18:26 +0000)]
Merge "Raise proper exception in case duplicate ipv6 address is allocated"

10 years agoAdd template attr. for subnet, router create in Nuage plugin
Chirag Shahani [Fri, 8 Aug 2014 02:04:34 +0000 (19:04 -0700)]
Add template attr. for subnet, router create in Nuage plugin

subnet create and router create commands now gives the ability
to the user to create subnets and routers via neutron cli with
additional attributes nuage_subnet_template and nuage_router_template
respectively. The instantiated subnet and router inherits the properties
of the template that was mentioned in the additional parameters.

Change-Id: Ib73313e840cb35ede89df858baa536aab883efa2
Closes-Bug: #1353112

10 years agoImplement ip_lib.device_exists_with_ip_mac
Assaf Muller [Tue, 5 Aug 2014 20:12:55 +0000 (23:12 +0300)]
Implement ip_lib.device_exists_with_ip_mac

ip_lib.device_exists simply checks that a device is in an
(optional) namespace. This patch adds
ip_lib.device_exists_with_ip_mac, which also verifies that
the device is configured with the given IP and MAC addresses.
The new function is used in functional tests in a patch
further down the dependency chain.

Added functional tests for ip_lib.device_exists,
ip_lib.device_exists_with_ip_mac.

Implements: blueprint l3-high-availability
Change-Id: I1495bcf1f1a88e2eb78df79cccb64121ccf435fb

10 years agoAdd _store_ip_allocation method
rossella [Wed, 20 Aug 2014 10:44:01 +0000 (12:44 +0200)]
Add _store_ip_allocation method

This refactor supports patch [1]
The code to store the IPAllocation is moved to a specific
method _store_ip_allocation

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

Change-Id: I9492dcb9479d6e6dadb79b137a273052d948412b

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 25 Aug 2014 12:53:06 +0000 (12:53 +0000)]
Updated from global requirements

Change-Id: I922b382fa75ecc6a8e14f25914c27e3eb245766e

10 years agoRefactor plugin setup helpers out of test.base
Maru Newby [Tue, 25 Mar 2014 10:54:04 +0000 (03:54 -0700)]
Refactor plugin setup helpers out of test.base

Helper methods for plugin and notification setup were previously
defined on neutron.tests.base.BaseTestCase.  The imports required to
support these helpers were preventing the api tests from consuming
tempest due to configuration conflicts that resulted between neutron
and tempest.  This change moves the helpers to a new module in
tests/unit so that BaseTestCase can be safely used across all types of
tests.

Partially-Implements: blueprint retargetable-functional-testing

Change-Id: I44251db399cd73390a9d1931a7f253662002ba10

10 years agoRaise proper exception in case duplicate ipv6 address is allocated
Eugene Nikanorov [Fri, 22 Aug 2014 12:29:49 +0000 (16:29 +0400)]
Raise proper exception in case duplicate ipv6 address is allocated

In case neutron tries to generate ipv6 address for slaac subnet,
it doesn't check that generated ip is unique and throws DB exception
that results in 500 HTTP error.

The fix throws proper IpAddressInUse exception.

Closes-Bug: #1358731
Change-Id: I66aed81b8d31d1eff6c87a77c4c4a813179ba458

10 years agoDo not explicitly set mysql_engine
Salvatore Orlando [Mon, 25 Aug 2014 11:52:49 +0000 (04:52 -0700)]
Do not explicitly set mysql_engine

Setting the mysql_engine when creating a table is not needed
anymore as this is automatically done by an event listener
added with commit 466e89970f11918a809aafe8a048d138d4664299

Change-Id: I0df978dbf2bb44f17102da3c17fd4e93c9e4df8d
Closes-Bug: #1361176

10 years agoMerge "Refresh rpc_backend values in unit tests to those from oslo.messaging"
Jenkins [Mon, 25 Aug 2014 10:16:16 +0000 (10:16 +0000)]
Merge "Refresh rpc_backend values in unit tests to those from oslo.messaging"

10 years agoMerge "Fix migration set_length_of_description_field_metering"
Jenkins [Mon, 25 Aug 2014 10:13:01 +0000 (10:13 +0000)]
Merge "Fix migration set_length_of_description_field_metering"

10 years agoMerge "Set InnoDB engine for all existing tables"
Jenkins [Mon, 25 Aug 2014 10:12:46 +0000 (10:12 +0000)]
Merge "Set InnoDB engine for all existing tables"

10 years agoMerge "ML2 Type driver refactor part 1"
Jenkins [Mon, 25 Aug 2014 03:33:53 +0000 (03:33 +0000)]
Merge "ML2 Type driver refactor part 1"

10 years agoMerge "Reorder operations in create_vip"
Jenkins [Mon, 25 Aug 2014 03:33:40 +0000 (03:33 +0000)]
Merge "Reorder operations in create_vip"

10 years agoRemoving sorted() function from assertEqual()
Evgeny Fedoruk [Tue, 12 Aug 2014 11:13:24 +0000 (04:13 -0700)]
Removing sorted() function from assertEqual()

Removing unnecessary sorted() function from assertEqual() function
calls in functions used for sorting and pagination testing

Using sorted() breaks sorting tests objective which is to test sorting.
This is causing every unit test using this functions
(_test_list_with_sort, _test_list_with_pagination, _test_list_with_pagination_reverse)
for sorting tests to always succeed

Switched the parameters for assertEqual() function within the fixed code to meet
its signature - assertEqual(self, expected, observed, message='')

Test neutron.tests.unit.vmware.vshield.test_lbaas_plugin.TestLoadbalancerPlugin.test_list_vips
was succeeding because of this bug, although it should fail. It failed after the bug was fix.
Test was fixed.

Change-Id: Ia36b81d9a7fd32cae3b567ac1899b56481eb62ce
Closes-Bug: #1355251

10 years agoAdd hook scripts for the functional infra job
Maru Newby [Sat, 23 Aug 2014 06:21:07 +0000 (23:21 -0700)]
Add hook scripts for the functional infra job

Infra jobs support hooks to customize behavior.  This change adds
scripts that are intended to be called by the neutron-dsvm-functional
jobs as hooks.   Defining hook behavior in-tree instead of directly in
the job definition has the advantage of allowing changes in hook
behavior to be tested before merge.

The gate_hook.sh script added by this change installs a rootwrap
filter to allow functional tests to destroy python processes that
they have spawned.  The tests use the python executable provided by
their tox env, and the default rootwrap configuration does not
support killing processes launched by non-system python executables.

This change will have to merge to master and stable/icehouse before
the supporting infra config change can be merged:

https://review.openstack.org/#/c/116458/

Partial-bug: #1360658
Change-Id: Idcc6195f91fac833c14892f27fb793048ef964b9

10 years agoMerge "Support Stateful and Stateless DHCPv6 by dnsmasq"
Jenkins [Sat, 23 Aug 2014 17:24:24 +0000 (17:24 +0000)]
Merge "Support Stateful and Stateless DHCPv6 by dnsmasq"

10 years agoMerge "Implements securitygroup extension for nuage plugin"
Jenkins [Sat, 23 Aug 2014 07:37:30 +0000 (07:37 +0000)]
Merge "Implements securitygroup extension for nuage plugin"

10 years agoMerge "Send HTTP exceptions in the format expected by neutronclient"
Jenkins [Sat, 23 Aug 2014 01:43:08 +0000 (01:43 +0000)]
Merge "Send HTTP exceptions in the format expected by neutronclient"

10 years agoMerge "Remove invalid or useless initialization in test_type_vxlan"
Jenkins [Fri, 22 Aug 2014 23:22:09 +0000 (23:22 +0000)]
Merge "Remove invalid or useless initialization in test_type_vxlan"

10 years agoML2 Type driver refactor part 1
Arvind Somya [Fri, 15 Aug 2014 21:22:05 +0000 (14:22 -0700)]
ML2 Type driver refactor part 1

This commit moves segment management from the ML2 plugin to
the type manager in preparation for dynamic segment support.

Partially implements: Blueprint ml2-type-driver-refactor

Change-Id: I068b82369250d115ef91680f19e733ed9aa4659b

10 years agoMinor refactoring of auto_schedule_routers
armando-migliaccio [Fri, 15 Aug 2014 22:55:21 +0000 (15:55 -0700)]
Minor refactoring of auto_schedule_routers

The method is more complicated than it needs to be, and it makes it difficult
to target fixes for it.

This is done in preparation of fix for DB lock timeout errors observed while
dealing with DVR routers.

Test coverage is already provided, and more granular coverage is added to
reflect the new structure being introduced.

Partial-bug: #1356121

Change-Id: Ifb7a742b64139f3a5d9b88c3c6261b1b890946f9

10 years agoMerge "Join tables in query for down L3 agents"
Jenkins [Fri, 22 Aug 2014 15:16:13 +0000 (15:16 +0000)]
Merge "Join tables in query for down L3 agents"

10 years agoAdd ipv6 forwarding for router namespaces
Andrey Epifanov [Thu, 21 Aug 2014 14:23:52 +0000 (18:23 +0400)]
Add ipv6 forwarding for router namespaces

Change-Id: I35101e6b32ab84bebb228cf0c43162eda761b17b
Closes-Bug: 1355195

10 years agoRefresh rpc_backend values in unit tests to those from oslo.messaging
Ihar Hrachyshka [Thu, 21 Aug 2014 13:49:24 +0000 (15:49 +0200)]
Refresh rpc_backend values in unit tests to those from oslo.messaging

Though old values are supported via compatibility transport aliases [1],
it's better to stick to those values that are officially supported by
oslo.messaging.

[1]: neutron/common/rpc.py:TRANSPORT_ALIASES

blueprint oslo-messaging

Change-Id: I7bc03e323151cfdda2cb2bc4cd6f5aea9b87a746

10 years agoMerge "NSX: Avoid floating IP status reset"
Jenkins [Fri, 22 Aug 2014 07:13:56 +0000 (07:13 +0000)]
Merge "NSX: Avoid floating IP status reset"

10 years agoVPNaaS: Enable UT cases with newer oslo.messaging
Paul Michali [Tue, 29 Jul 2014 19:18:34 +0000 (15:18 -0400)]
VPNaaS: Enable UT cases with newer oslo.messaging

Now that 1.4.0.0a3 of oslo.messaging has been added to Neutron
requirements, the unit test cases in VPNaaS code can be
uncommented and included in the tests. These tests ensure that
the correct validator is called, when validation is performed.
This adds similar tests to the reference and Cisco VPNaaS
implementation.

Change-Id: I62e3f8f3ec5fcceccd13891b1aa142869e1d88a1
Closes-Bug: 1349829

10 years agoMerge "Fixes Hyper-V issue due to ML2 RPC versioning"
Jenkins [Fri, 22 Aug 2014 02:46:40 +0000 (02:46 +0000)]
Merge "Fixes Hyper-V issue due to ML2 RPC versioning"

10 years agoMerge "A10 Networks LBaaS v1 Driver"
Jenkins [Thu, 21 Aug 2014 21:32:12 +0000 (21:32 +0000)]
Merge "A10 Networks LBaaS v1 Driver"

10 years agoDo not log WARN messages about lack of L3 agents for DVR routers
armando-migliaccio [Thu, 21 Aug 2014 19:51:40 +0000 (12:51 -0700)]
Do not log WARN messages about lack of L3 agents for DVR routers

DVR routers are scheduled only when there is need to: for instance when
there's an external gateway associated with it, or when there are
interfaces attached to subnets on which VM's are actually being deployed.

Therefore, do not log misleading messages that apply only to the
centralized case.

Closes-bug: 1358998

Change-Id: Ica7f0d25fe576f05a9adf8eb8239704f09c0b0ac

10 years agoMerge "Ensure ip6tables are used only if ipv6 is enabled in kernel"
Jenkins [Thu, 21 Aug 2014 21:28:00 +0000 (21:28 +0000)]
Merge "Ensure ip6tables are used only if ipv6 is enabled in kernel"

10 years agoAdd specific docs build option to tox
Thomas Bechtold [Thu, 21 Aug 2014 19:24:51 +0000 (21:24 +0200)]
Add specific docs build option to tox

Add doc venv to align with other OpenStack projects (such as keystone,
heat and nova) who are using 'docs' for there doc builds.

Change-Id: I0094130224ec2667cdd76f497edf595f09a86d12

10 years agoFix policy rules for adding and removing router interfaces
Elena Ezhova [Thu, 21 Aug 2014 14:36:42 +0000 (18:36 +0400)]
Fix policy rules for adding and removing router interfaces

Currently "add_router_interface" and "remove_router_interface"
policy rules have the "update_router" prefix and thus are never
enforced. Removing the prefix activates the rules.

Also moved some rules, so that all router-related rules are
now grouped together.

Closes-Bug: 1356678
Change-Id: Ib6cc45f2c6d0c7ae394274d6196262529b9fd855

10 years agoRefactor type_tunnel/gre/vxlan to reduce duplicate code
Cedric Brandily [Fri, 1 Aug 2014 08:17:12 +0000 (10:17 +0200)]
Refactor type_tunnel/gre/vxlan to reduce duplicate code

gre and vxlan type drivers have similar implementation for multiple
methods. This change abstracts these methods and move them to
TunnelTypeDriver.

sync_allocations method is not shared between gre and vxlan type drivers
because they use different strategies and the targeted one is unclear.

Change-Id: I717b70eb718f7ae82f1bc0c81543b0c438e8bddd

10 years agoJoin tables in query for down L3 agents
Kevin Benton [Tue, 19 Aug 2014 22:15:09 +0000 (15:15 -0700)]
Join tables in query for down L3 agents

Join the agent table together with the L3 agent scheduler
table. This fixes an issue where the query would return
all admin_state_up L3 agents with router bindings when
any agent in the database was dead (missed heartbeats)
instead of just returning the dead L3 agents with bindings.

Closes-Bug: #1359460
Change-Id: I29215f81be7e3513155faaad015e24dbf1a1ad5d

10 years agoRename range to avoid shadowing the builtin
Carl Baldwin [Tue, 19 Aug 2014 03:58:22 +0000 (03:58 +0000)]
Rename range to avoid shadowing the builtin

This refactor supports a patch I was reviewing [1].  I thought it
better to apply this consistently in this file as a separate refactor
so that that patch could be done cleaner.

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

Change-Id: Ida58758504e868dc731e97d7bce53d4849998723

10 years agoMerge "corrects the typos in l3_router_plugin's comments"
Jenkins [Thu, 21 Aug 2014 06:58:44 +0000 (06:58 +0000)]
Merge "corrects the typos in l3_router_plugin's comments"

10 years agoMerge "Expand arp_responder help text"
Jenkins [Thu, 21 Aug 2014 04:41:24 +0000 (04:41 +0000)]
Merge "Expand arp_responder help text"

10 years agoFixes Hyper-V issue due to ML2 RPC versioning
Alessandro Pilotti [Wed, 20 Aug 2014 22:48:34 +0000 (01:48 +0300)]
Fixes Hyper-V issue due to ML2 RPC versioning

The ML2 RPC version 1.1 breaks the hyper-v agent and
consequentially the RPC version in the Hyper-V agent needs
to be set to 1.1 to match the ML2 RPC base API version.

Change-Id: Idc4ae8d7dcff4331aca148a8f2a7a2b01679b3a8
Closes-Bug: #1353697

10 years agoA10 Networks LBaaS v1 Driver
Doug Wiegley [Tue, 12 Aug 2014 23:34:30 +0000 (17:34 -0600)]
A10 Networks LBaaS v1 Driver

Change-Id: I32438c33ea28031c0d600e2a9266580e52dfbf54
Implements: blueprint a10networks-lbaas-driver

10 years agoAssign Cisco nw profile to multi-tenants in single request
Aaron-Zhang231 [Sat, 15 Feb 2014 13:54:53 +0000 (05:54 -0800)]
Assign Cisco nw profile to multi-tenants in single request

Currently with Cisco N1kv plugin, user can assign cisco network
profile to only one tenant in a request. So user has to send
multiple requests to assign a cisco network profile to multiple
tenants.
This fix is going to add the support to assign to multiple tenants
in a single request

This fix has corresponding changes in neutron, python-neutronclient
and horizon. All the changes should be committed at the same time

Change-Id: I42ffbd17a80f741d9cf1094dc79b588444bd9d4b
Implements: blueprint cisco-network-profile-multi-tenants-support

10 years agoMerge "Fix bigswitch setup.cfg lines"
Jenkins [Wed, 20 Aug 2014 17:39:02 +0000 (17:39 +0000)]
Merge "Fix bigswitch setup.cfg lines"

10 years agoRemove unused network parameter from _allocate_ips_for_port
Carl Baldwin [Tue, 19 Aug 2014 05:07:47 +0000 (05:07 +0000)]
Remove unused network parameter from _allocate_ips_for_port

I found this in the context of a patch that I was reviewing [1].  I
found that patch left a few loose ends and so I thought it would be
better to remove the parameter as a separate refactor so that it can
be carefully reviewed.  The other patch [1] should be rebased to this
one.

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

Change-Id: I75115fa46ea3340ef0f13feb28ad2cdb0387fed7

10 years agocorrects the typos in l3_router_plugin's comments
Prasoon Telang [Wed, 20 Aug 2014 09:01:29 +0000 (14:31 +0530)]
corrects the typos in l3_router_plugin's comments

there were some typos in the docstring of the function
create_floatingip(). This patch corrects them

Change-Id: I869567d5470a27ff037feeabfc1057b8e2da38b7
Closes-Bug: #1359113

10 years agoSupport Stateful and Stateless DHCPv6 by dnsmasq
Xu Han Peng [Fri, 11 Jul 2014 07:30:00 +0000 (15:30 +0800)]
Support Stateful and Stateless DHCPv6 by dnsmasq

* This patch adds support for subnets created with 'ipv6_address_mode'
  set to 'dhcpv6-stateful' or 'dhcpv6-stateless' by dnsmasq.
* If no dnsmasq process for subnet's network is launched, Neutron
  will launch new dnsmasq process on subnet's dhcp port in 'qdhcp-'
  namespace. If previous dnsmasq process is already launched,
  restart dnsmasq with new configuration.
* Neutron will update dnsmasq process and restart it when subnet
  gets updated.
* This patch enforces the version check of dnsmasq. dhcp-agent will
  fail to start if version of dnsmasq<2.63.

DocImpact
UpgradeImpact
Blueprint dnsmasq-ipv6-dhcpv6-stateful
Blueprint dnsmasq-ipv6-dhcpv6-stateless

Change-Id: I30e9950bbc5a89f01ccb9c561471f155a9fd1d11

10 years agoImplements securitygroup extension for nuage plugin
Divya ChanneGowda [Tue, 15 Jul 2014 21:33:30 +0000 (14:33 -0700)]
Implements securitygroup extension for nuage plugin

In Nuage VSP, the scope of vport-tag(Neutron securitygroup equivalent) is either
per router or per subnet whereas securitygroup scope in Neutron is per tenant.
Because of this, the mapping between neutron and VSP resource always happens at
the port create or update time, such that port's router/subnet is known and
thus sg attachment point in VSP is known.
On port-update --security-group sg1, if this is the first port getting attached
to that security-group, corresponding vport-tag(for sg) and rules( for sg rules)
are created on VSP. Subsequent port-update for the same sg1 will just update the
port to vport-tag binding. When security-group and security-group-rules are
deleted on neutron, corresponding vport-tag and rules are deleted on the VSP.

Implements: blueprint securitygroup-ext-for-nuage-plugin

Change-Id: If6f7f16ad727ae9394008fb81b56c785c2404c8f

10 years agoFix bigswitch setup.cfg lines
Kris Lindgren [Wed, 20 Aug 2014 01:33:22 +0000 (19:33 -0600)]
Fix bigswitch setup.cfg lines

Bigswitch was not correctly creating the bigswitch/ssl/ca_certs and
host_certs directories when running the setup.py install step.  This
makes it difficult to correctly package the plugin because it has
missing files/directories.

Fixes bug 1358982

Change-Id: I78c6e96887340ea90494ed9e109b3b7fda6653c9

10 years agoArista Layer 3 Sevice Plugin
Sukhdev [Wed, 13 Aug 2014 23:37:58 +0000 (16:37 -0700)]
Arista Layer 3 Sevice Plugin

This sevice plugin implements routing functions on Arista HW.

Change-Id: Ide411540254db015167111defee7d8c6c1c27347
Implements: blueprint arista-l3-service-plugin

10 years agoMerge "SecurityGroupRuleExists should point out rule id inseand of group id"
Jenkins [Tue, 19 Aug 2014 21:50:02 +0000 (21:50 +0000)]
Merge "SecurityGroupRuleExists should point out rule id inseand of group id"

10 years agoEnsure ip6tables are used only if ipv6 is enabled in kernel
Jakub Libosvar [Thu, 7 Aug 2014 08:35:07 +0000 (10:35 +0200)]
Ensure ip6tables are used only if ipv6 is enabled in kernel

On systems where ipv6 module is not loaded in kernel we need to avoid
usage of ip6tables. This patch reads
/proc/sys/net/ipv6/conf/default/disable_ipv6 file and if ipv6 is
disabled then ip6tables are not used in IptablesManager

Closes-Bug: #1352893

Change-Id: I07e5851aa25eb98b7a97dff86b9850475df85f64

10 years agoRemove invalid or useless initialization in test_type_vxlan
Cedric Brandily [Fri, 1 Aug 2014 08:04:42 +0000 (10:04 +0200)]
Remove invalid or useless initialization in test_type_vxlan

In test_type_vxlan, vni_ranges option is overriden with an invalid and unused
value, vxlan_group is overrriden but never used.

Change-Id: Ie1ce1d7a8ef54692d122276e371ec5efc2e68d9c

10 years agoMerge "Remove INACTIVE status from FWaaS"
Jenkins [Tue, 19 Aug 2014 10:11:58 +0000 (10:11 +0000)]
Merge "Remove INACTIVE status from FWaaS"

10 years agoMerge "Skip FWaaS config mismatch check if RPC method is unsupported"
Jenkins [Tue, 19 Aug 2014 08:12:42 +0000 (08:12 +0000)]
Merge "Skip FWaaS config mismatch check if RPC method is unsupported"

10 years agoFix migration set_length_of_description_field_metering
Ann Kamyshnikova [Tue, 22 Jul 2014 15:04:00 +0000 (19:04 +0400)]
Fix migration set_length_of_description_field_metering

If PostgreSQL version is less than 9.1.13 migration
set_length_of_description_field_metering fails as there is no
special 'create if not exist' expression. This change add special
function for this case.

Closes-bug: #1348138

Change-Id: Ibe4f370fe400072abd281bd2313261790335eae2

10 years agoSet InnoDB engine for all existing tables
Ann Kamyshnikova [Thu, 24 Jul 2014 10:33:02 +0000 (14:33 +0400)]
Set InnoDB engine for all existing tables

Added the method in heal script that checks if mysql_engine
parameter is needed to be changed and if it is neseccary do this.
Also this change adds migation that set 'mysql_engine' to InnoDB
for all tables that were added into the database after healing.

Closes-bug: #1346966

Change-Id: Ia4d9038b99b2559d37272a17f5819a9dedd53f72

10 years agoUse oslo.db create_engine instead of SQLAlchemy
Ihar Hrachyshka [Fri, 11 Jul 2014 12:34:26 +0000 (14:34 +0200)]
Use oslo.db create_engine instead of SQLAlchemy

oslo.db may set additional options to engines that we may be interested in.

blueprint enable-mysql-connector

Closes-Bug: #1350942
Change-Id: I6f67bb430c50ddacb2d53398de75fb5f494964a0

10 years agoReorder operations in create_vip
Eugene Nikanorov [Wed, 13 Aug 2014 11:10:45 +0000 (15:10 +0400)]
Reorder operations in create_vip

Previously VIP's port creation was moved outside the transaction
to avoid deadlocks related to rpc calls.
It led to small chance of VIP being fetched by rpc code with
port being still None.

This patch reorders VIP association with the pool so it's done
only after port has been created.

This patch also leaves small possibility of uncaught exception in
case of pool being concurrently deleted in the process of VIP creation

Change-Id: I584558aecc92db4d19fb72b1d006868b840a4d8c
Closes-Bug: #1356227

10 years agoMerge "Replace nullable from primary keys in tz_network_bindings with default"
Jenkins [Mon, 18 Aug 2014 15:05:44 +0000 (15:05 +0000)]
Merge "Replace nullable from primary keys in tz_network_bindings with default"

10 years agoSend HTTP exceptions in the format expected by neutronclient
Elena Ezhova [Tue, 12 Aug 2014 15:43:09 +0000 (19:43 +0400)]
Send HTTP exceptions in the format expected by neutronclient

Neutron client for the v2 API expects exceptions to have 'type',
'message' and 'detail' attributes. That is why they need to be
included in the body of HTTP Exceptions.

Change-Id: I70bd47977e42ad7bac760600329e9440452b74bc
Closes-Bug: 1355902