]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "ML2: Incorrect commented cisco mechanism driver name"
Jenkins [Thu, 28 May 2015 20:41:10 +0000 (20:41 +0000)]
Merge "ML2: Incorrect commented cisco mechanism driver name"

9 years agoMerge "Do not assume order of security group rules"
Jenkins [Thu, 28 May 2015 20:26:00 +0000 (20:26 +0000)]
Merge "Do not assume order of security group rules"

9 years agoMerge "Fix PYTHONHASHSEED bugs in test_security_groups_rpc"
Jenkins [Thu, 28 May 2015 16:49:19 +0000 (16:49 +0000)]
Merge "Fix PYTHONHASHSEED bugs in test_security_groups_rpc"

9 years agoDo not assume order of security group rules
Cedric Brandily [Wed, 27 May 2015 18:30:28 +0000 (20:30 +0200)]
Do not assume order of security group rules

This fixes the unit tests[1] that breaks with a randomized
PYTHONHASHSEED (see the bug report).

The test assumed that the security_group_rules_for_devices method from
neutron.agent.securitygroups_rpc returned security group rules in a
particular order. Found with PYTHONHASHSEED=2.

The fix refactors the test case to handle unsorted security group rules.

[1] neutron.tests.unit.plugins.ml2.test_security_group.\
    TestMl2SGServerRpcCallBack.\
    test_security_group_rules_for_devices_ipv4_ingress_addr_pair

Partial-bug: #1348818

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.

Change-Id: I1b2bd4100c19004f12822c414aefc86aae9849db

9 years agoML2: Incorrect commented cisco mechanism driver name
Rich Curran [Thu, 28 May 2015 15:32:21 +0000 (11:32 -0400)]
ML2: Incorrect commented cisco mechanism driver name

The ml2_conf.ini example for the cisco mechanism driver is incorrect.
Update to remove confusion.

Change-Id: I0d3aff31a3bc78ef5ee042ff1f37dbb6e1459635
Closes-Bug: 1459723

9 years agoFix PYTHONHASHSEED bugs in test_security_groups_rpc
Cedric Brandily [Thu, 28 May 2015 07:07:23 +0000 (09:07 +0200)]
Fix PYTHONHASHSEED bugs in test_security_groups_rpc

This fixes the test_security_group_member/rule_updated unit tests[1]
that breaks with a randomized PYTHONHASHSEED (see the bug report).

The test assumed that several dictionaries had elements in a
particular order. Found with PYTHONHASHSEED=2.

The fix refactors the test case by injecting values using the same
ordering[2].

[1] neutron.tests.unit.agent.test_securitygroups_rpc.\
   TestSecurityGroupAgentWithOVSIptables

[2] https://github.com/openstack/neutron/blob/\
   e8364a72e62d83e5a76bec1d7aa76ecfe2ed53ac/\
   neutron/tests/unit/agent/test_securitygroups_rpc.py#L1630-L1635

Partial-bug: #1348818

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.

Change-Id: I5077764045a34d1be0e85bb4b80f3655e87692cc

9 years agoMerge "OVS_LIB support API for setting fail mode 'standalone'"
Jenkins [Thu, 28 May 2015 02:58:22 +0000 (02:58 +0000)]
Merge "OVS_LIB support API for setting fail mode 'standalone'"

9 years agoMerge "Add RFE submission guidelines"
Jenkins [Thu, 28 May 2015 02:01:08 +0000 (02:01 +0000)]
Merge "Add RFE submission guidelines"

9 years agoAdd RFE submission guidelines
armando-migliaccio [Wed, 27 May 2015 22:40:06 +0000 (15:40 -0700)]
Add RFE submission guidelines

Change-Id: I864c8638a92f5f94e6f059a477ffb56de274ef1c

9 years agoMerge "Flesh out the new RFE process and set deadlines for it's use"
Jenkins [Thu, 28 May 2015 00:36:38 +0000 (00:36 +0000)]
Merge "Flesh out the new RFE process and set deadlines for it's use"

9 years agoMerge "Introduce the Lieutenant system into Neutron"
Jenkins [Thu, 28 May 2015 00:36:26 +0000 (00:36 +0000)]
Merge "Introduce the Lieutenant system into Neutron"

9 years agoMerge "Remove time formatting in agent clock error"
Jenkins [Thu, 28 May 2015 00:04:34 +0000 (00:04 +0000)]
Merge "Remove time formatting in agent clock error"

9 years agoRemove time formatting in agent clock error
Kevin Benton [Wed, 27 May 2015 21:52:06 +0000 (14:52 -0700)]
Remove time formatting in agent clock error

This removes time formatting that may be hiding timezone
issues that are leading to a delta being calculated between
the agent and the server even when it shows none. It also
adds logging of the difference so we can see how far off it
thinks they are.

Example message:
during the registration of Open vSwitch agent has a timestamp:
2015-05-19T18:15:27Z. This differs from the current server
timestamp: 2015-05-19T18:15:27Z by more than the threshold agent
downtime: 75.

Note that the timestamps are exactly the same after formatting.

Change-Id: Ibfc30444b7a167fb18ae9051a775266236d4ecce
Related-Bug: #1456760

9 years agoFlesh out the new RFE process and set deadlines for it's use
Kyle Mestery [Wed, 27 May 2015 17:26:00 +0000 (17:26 +0000)]
Flesh out the new RFE process and set deadlines for it's use

The new RFE process is great in concept, but as was discovered in the
first neutron-drivers meeting where we discussed these, there exist
some rough edges. Specifically around deadlines and the conversion to
using RFEs, the gray area was very obvious. This patch attempts to put
a stake in the ground for when we transition fully to this new model,
including distinct timelines.

Given that we will need to work with people during the transition,
what is proposed is a way to let us do that while not blocking existing
specs and work.

Change-Id: Ife50f65caf4b13405ad60dd4be3d347aa31ef3a7

9 years agoDo not assume order of dictionary elements in init_l3
Cedric Brandily [Wed, 27 May 2015 17:57:04 +0000 (19:57 +0200)]
Do not assume order of dictionary elements in init_l3

This fixes the test_interface unit tests[1] that breaks with a
randomized PYTHONHASHSEED (see the bug report).

The test assumed that the init_l3 method from
neutron.agent.linux.interface had dictionary elements in a particular
order. Found with PYTHONHASHSEED=2.

The fix refactors the test case to handle unsorted dictionaries in
init_l3.

[1] neutron.tests.unit.agent.linux.test_interface.TestABCDriver

Partial-bug: #1348818

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.

Change-Id: I1948593b4d7a0069ef060512942b548c74a6b369

9 years agoIntroduce the Lieutenant system into Neutron
Kyle Mestery [Fri, 24 Apr 2015 16:24:39 +0000 (16:24 +0000)]
Introduce the Lieutenant system into Neutron

As Neutron has grown, the need to continually evolve the way we land
code has changed. As the project has grown, it's become obvious we
need to subdivide responsibilites and merge rights across the
repository. The advanced services split [1] was one way in which we did
this, and it's proven effective. Plugin decomposition was another [2].
As a next step to evolve things, this changes the core reviewer
paradigm into a system of Lieutenants, all reporting to the PTL in the
project. The Lieutenants will be able to maintain their own core
review team. The idea of "super cores" will fade away. And we begin to
see the benefits of a layered, structured approach to managing
Neutron.

This proposal makes an attempt to comment on existing core reviewers.
While the idea of existing core reviewers being labeled as "supercores"
has been floated, the reality is a bit more nuanced than that, and I've
taken steps to address that with this patch. It should be noted that like
all things in Neutron governance, the system is based on a mutual trust.

[1] http://specs.openstack.org/openstack/neutron-specs/specs/kilo/services-split.html
[2] http://specs.openstack.org/openstack/neutron-specs/specs/kilo/core-vendor-decomposition.html

Change-Id: Ia4060066a300e851172c0fd7a2910ce53a6c649e

9 years agoMerge "Skip external tables for neutron-db-manage --autogenerate"
Jenkins [Wed, 27 May 2015 17:22:32 +0000 (17:22 +0000)]
Merge "Skip external tables for neutron-db-manage --autogenerate"

9 years agoMerge "Do not assume order of convert_kvp_list_to_dict method responses"
Jenkins [Wed, 27 May 2015 14:45:32 +0000 (14:45 +0000)]
Merge "Do not assume order of convert_kvp_list_to_dict method responses"

9 years agoMerge "Add port-security extension API test cases"
Jenkins [Wed, 27 May 2015 14:41:46 +0000 (14:41 +0000)]
Merge "Add port-security extension API test cases"

9 years agoMerge "Do not assume order of iptables_firewall method responses"
Jenkins [Wed, 27 May 2015 13:15:21 +0000 (13:15 +0000)]
Merge "Do not assume order of iptables_firewall method responses"

9 years agoDo not assume order of convert_kvp_list_to_dict method responses
Cedric Brandily [Wed, 27 May 2015 12:54:35 +0000 (14:54 +0200)]
Do not assume order of convert_kvp_list_to_dict method responses

This fixes the test_attributes unit tests[1] that breaks with a
randomized PYTHONHASHSEED (see the bug report).

The test assumed that the convert_kvp_list_to_dict method from
neutron.api.v2.attributes returned elements in a particular
order. Found with PYTHONHASHSEED=1.

The fix refactors the test case to handle unsorted responses from
convert_kvp_list_to_dict.

[1] neutron.tests.unit.api.v2.test_attributes.TestConvertKvp

Partial-bug: #1348818

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.

Change-Id: I864904db1428b88c482ad17a69b33e876a8d042c

9 years agoDo not assume order of iptables_firewall method responses
Cedric Brandily [Tue, 26 May 2015 17:54:22 +0000 (19:54 +0200)]
Do not assume order of iptables_firewall method responses

This fixes the iptables_firewall group unit tests[1] that breaks with
a randomized PYTHONHASHSEED (see the bug report).

The test assumed that the _get_remote_sg_ids and
_determine_remote_sgs_to_remove methods from
neutron.agent.linux.iptables_firewall returned elements in a particular
order. Found with PYTHONHASHSEED=1.

The fix refactors the test case to handle unsorted responses from
_get_remote_sg_ids and _determine_remote_sgs_to_remove.

[1] neutron.tests.unit.agent.linux.test_iptables_firewall:
 test_prepare_port_filter_with_new_members
 test_prepare_port_filter_with_sg_no_member
 test_remove_port_filter_with_destroy_ipset_chain

Partial-bug: #1348818

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.

Change-Id: I19e51452a2bde0721559df746047239f68614336

9 years agoDo not assume order of get_sync_data_metering response elements
Cedric Brandily [Tue, 26 May 2015 22:23:09 +0000 (00:23 +0200)]
Do not assume order of get_sync_data_metering response elements

This fixes the test_add_metering_label_rpc_call[1] unit tests that breaks
with a randomized PYTHONHASHSEED (see the bug report).

The test assumed that the get_sync_data_metering[2] had response
elements in a particular order. Found with PYTHONHASHSEED=1.

The fix refactors the test_add_metering_label_rpc_call test case to handle
an unsorted get_sync_data_metering response. The fix defines the class
UnorderedList[3] which is equal to any permutation of itself.

Partial-bug: #1348818

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.

[1] neutron.tests.unit.services.metering.test_metering_plugin:
 TestMeteringPluginL3AgentScheduler
 TestMeteringPluginL3AgentSchedulerServicePlugin
[2] neutron.services.metering.metering_plugin.MeteringPlugin
[3] neutron.tests.tools

Change-Id: I5d42b827bc72dcacd38eaa2377ce16c47a9e7dbb

9 years agoMerge "Remove unnecessary brackets"
Jenkins [Tue, 26 May 2015 21:33:33 +0000 (21:33 +0000)]
Merge "Remove unnecessary brackets"

9 years agoMerge "OVS-DVR: Suppress a confusing error log about csnat port"
Jenkins [Tue, 26 May 2015 21:29:52 +0000 (21:29 +0000)]
Merge "OVS-DVR: Suppress a confusing error log about csnat port"

9 years agoOVS_LIB support API for setting fail mode 'standalone'
Gal Sagie [Tue, 26 May 2015 16:16:34 +0000 (19:16 +0300)]
OVS_LIB support API for setting fail mode 'standalone'

The current API only support setting a bridge fail mode
to secure, this patch allow the user to set it to 'standalone'
as well

Change-Id: If7e6532dc7f8527c35834a37144ea4386fe1b861
Closes-Bug: #1458924

9 years agoMerge "VMware: update supported plugins"
Jenkins [Tue, 26 May 2015 16:22:13 +0000 (16:22 +0000)]
Merge "VMware: update supported plugins"

9 years agoMerge "Force order of dhcp.needs_resync_reasons dictionary elements"
Jenkins [Tue, 26 May 2015 16:13:13 +0000 (16:13 +0000)]
Merge "Force order of dhcp.needs_resync_reasons dictionary elements"

9 years agoMerge "Add callback prior to deleting a subnet"
Jenkins [Tue, 26 May 2015 16:13:02 +0000 (16:13 +0000)]
Merge "Add callback prior to deleting a subnet"

9 years agoMerge "OVS-agent: Separate ovs-ofctl using code as a driver"
Jenkins [Tue, 26 May 2015 15:57:25 +0000 (15:57 +0000)]
Merge "OVS-agent: Separate ovs-ofctl using code as a driver"

9 years agoForce order of dhcp.needs_resync_reasons dictionary elements
Cedric Brandily [Tue, 26 May 2015 13:14:11 +0000 (13:14 +0000)]
Force order of dhcp.needs_resync_reasons dictionary elements

This fixes the test_periodoc_resync_helper unit test that breaks with
a randomized PYTHONHASHSEED (see the bug report).

The test assumed that the dhcp.needs_resync_reasons dictionary from
neutron.agent.dhcp.agent had elements in a particular order. Found with
PYTHONHASHSEED=2.

The fix refactors the test case to force a sorted dhcp.needs_resync_reasons
dictionary.

Partial-bug: #1348818

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.

Change-Id: Ia7fc2c3e605d92d8497d44e28054bdda613cebf2

9 years agoMerge "Register ibm-db-alembic import for DB2 migrations"
Jenkins [Tue, 26 May 2015 09:42:24 +0000 (09:42 +0000)]
Merge "Register ibm-db-alembic import for DB2 migrations"

9 years agoMerge "Reduce prefix and suffix length in ipsets"
Jenkins [Tue, 26 May 2015 09:42:12 +0000 (09:42 +0000)]
Merge "Reduce prefix and suffix length in ipsets"

9 years agoMerge "Ensure mac address added to iptables is always in unix format"
Jenkins [Tue, 26 May 2015 09:42:00 +0000 (09:42 +0000)]
Merge "Ensure mac address added to iptables is always in unix format"

9 years agoSkip external tables for neutron-db-manage --autogenerate
Henry Gessau [Mon, 25 May 2015 22:00:58 +0000 (18:00 -0400)]
Skip external tables for neutron-db-manage --autogenerate

DB tables that do not have models in the neutron tree cause
neutron-db-manage --autogenerate to create commands to drop the
tables. This fix hooks into alembic's environment with a include_object
callback that ignores external tables.

We already had a list of external tables for use by the migration tests,
so re-use them for --autogenerate.

Partial-bug: #1458682

Change-Id: I2c0bc73f72840c401c578e87d8178a79f05aad82

9 years agoMerge "Support for concurrent full-stack tests"
Jenkins [Mon, 25 May 2015 15:52:14 +0000 (15:52 +0000)]
Merge "Support for concurrent full-stack tests"

9 years agoAdd callback prior to deleting a subnet
John Schwarz [Thu, 16 Apr 2015 09:01:26 +0000 (12:01 +0300)]
Add callback prior to deleting a subnet

When using LBaaS and trying to delete a subnet, neutron has no way of
knowing if the subnet is associated to some pool. As a result, the
subnet is deleted but the pool remains associated to the (now
nonexistent) subnet_id.  This patch lays the ground-work for adding a
check in LBaaS' side to prevent such cases.

Related-Bug: #1413817
Change-Id: I3d5e231b67c72ffd919c92d65b57da56c63e053c

9 years agoOVS-agent: Separate ovs-ofctl using code as a driver
YAMAMOTO Takashi [Mon, 2 Mar 2015 04:14:48 +0000 (13:14 +0900)]
OVS-agent: Separate ovs-ofctl using code as a driver

This is a preparation to introduce another Ryu-based implementation.
The aim is to replace this with the new Ryu-based implementation
eventually.

Add a config option for OVS-agent which selects the implementation.
Currently, the only available choice is 'ovs-ofctl'.

Also, this commit simplifies DVR logics by reducing duplications
and makes some of DVR UTs actually check the flows rather than just
"add_flow is called".

Partially-Implements: blueprint ovs-ofctl-to-python
Change-Id: Ie1224f8a1c17268cd7d1c474ed82fdfb8852eaa8

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Mon, 25 May 2015 06:15:25 +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: If91cdcd85d6fad9b9d37aea367aa11c83ff4b343

9 years agoRemove unnecessary brackets
Gary Kotton [Mon, 25 May 2015 04:19:51 +0000 (21:19 -0700)]
Remove unnecessary brackets

TrivialFix

Change-Id: I9bd552110785c09b3eaa8762a8141446e51ea02a

9 years agoEnsure mac address added to iptables is always in unix format
Anand Shanmugam [Sat, 23 May 2015 08:22:23 +0000 (01:22 -0700)]
Ensure mac address added to iptables is always in unix format

When a allowed address pair entry is added with a mac format
other than unix format the ovs-vs agent keeps on restarting as
it is not able to save the proper iptables due to the error
"Error while processing VIF ports". This fix makes sure
that the mac address sent to the iptables firewall is always
in the unix format

Change-Id: I86bbf3cb2adf9b998190e472691c01d068ebab9c
Closes-Bug: #1457971

9 years agoMerge "ovs-agent: prevent ARP requests with faked IP addresses"
Jenkins [Sat, 23 May 2015 07:34:29 +0000 (07:34 +0000)]
Merge "ovs-agent: prevent ARP requests with faked IP addresses"

9 years agoMerge "Remove use of contextlib.nested"
Jenkins [Sat, 23 May 2015 05:34:57 +0000 (05:34 +0000)]
Merge "Remove use of contextlib.nested"

9 years agoMerge "IPAM reference driver"
Jenkins [Sat, 23 May 2015 03:35:38 +0000 (03:35 +0000)]
Merge "IPAM reference driver"

9 years agoMerge "Use namespace names in NetcatTester"
Jenkins [Sat, 23 May 2015 03:02:55 +0000 (03:02 +0000)]
Merge "Use namespace names in NetcatTester"

9 years agoMerge "OVS-DVR: Improve an error log about csnat port"
Jenkins [Fri, 22 May 2015 23:41:47 +0000 (23:41 +0000)]
Merge "OVS-DVR: Improve an error log about csnat port"

9 years agoMerge "Non-json body on POST 500's"
Jenkins [Thu, 21 May 2015 23:03:20 +0000 (23:03 +0000)]
Merge "Non-json body on POST 500's"

9 years agoRemove use of contextlib.nested
ankitagrawal [Thu, 14 May 2015 11:08:36 +0000 (04:08 -0700)]
Remove use of contextlib.nested

Removed use of contextlib.nested call from codebase, as it has been
deprecated since Python 2.7.

There are also known issues with contextlib.nested that were addressed
by the native support for multiple "with" variables. For instance, if
the first object is created but the second one throws an exception,
the first object's __exit__ is never called. For more information see
https://docs.python.org/2/library/contextlib.html#contextlib.nested
contextlib.nested is also not compatible with Python 3.

Multi-patch set for easier chunks. This one addresses the
neutron/plugins/ml2 directory.

Line continuation markers (e.g. '\') had to be used or syntax
errors were thrown. While using parentheses is the preferred way
for multiple line statements, but in case of long with statements
backslashes are acceptable.

Partial-Bug: 1428424
Change-Id: I7bbe4cec511125b4b2c954aa93e2d9ff6871b9e0

9 years agoMerge "Python 3: use six.string_types instead of basestring"
Jenkins [Thu, 21 May 2015 19:25:10 +0000 (19:25 +0000)]
Merge "Python 3: use six.string_types instead of basestring"

9 years agoMerge "Adding loadbalanacerv2 device owner constant to neutron constants"
Jenkins [Thu, 21 May 2015 17:59:16 +0000 (17:59 +0000)]
Merge "Adding loadbalanacerv2 device owner constant to neutron constants"

9 years agoMerge "VMware NSXV: update configuration file"
Jenkins [Thu, 21 May 2015 17:44:15 +0000 (17:44 +0000)]
Merge "VMware NSXV: update configuration file"

9 years agoMerge "Block subnet create when a network hosts subnets allocated from different...
Jenkins [Thu, 21 May 2015 17:23:57 +0000 (17:23 +0000)]
Merge "Block subnet create when a network hosts subnets allocated from different pools"

9 years agoMerge "Match order of iptables arguments to iptables-save"
Jenkins [Thu, 21 May 2015 17:14:21 +0000 (17:14 +0000)]
Merge "Match order of iptables arguments to iptables-save"

9 years agoMerge "Remove middleware oslo-incubator module"
Jenkins [Thu, 21 May 2015 17:10:05 +0000 (17:10 +0000)]
Merge "Remove middleware oslo-incubator module"

9 years agoMerge "Reuse caller's session in ML2 DB methods"
Jenkins [Thu, 21 May 2015 17:04:28 +0000 (17:04 +0000)]
Merge "Reuse caller's session in ML2 DB methods"

9 years agoMerge "Centralized register_OVS_agent in tests"
Jenkins [Thu, 21 May 2015 16:09:27 +0000 (16:09 +0000)]
Merge "Centralized register_OVS_agent in tests"

9 years agoMerge "Fix minor errors in the Vyatta L3 Plugin:"
Jenkins [Thu, 21 May 2015 16:09:14 +0000 (16:09 +0000)]
Merge "Fix minor errors in the Vyatta L3 Plugin:"

9 years agoMerge "Refactor initialize() of sriov mech driver"
Jenkins [Thu, 21 May 2015 13:21:29 +0000 (13:21 +0000)]
Merge "Refactor initialize() of sriov mech driver"

9 years agoAdding loadbalanacerv2 device owner constant to neutron constants
Anand Shanmugam [Thu, 21 May 2015 09:03:33 +0000 (02:03 -0700)]
Adding loadbalanacerv2 device owner constant to neutron constants

The neutron constants doesn't have the constant for device owner
lbaasv2. This fix adds the constant. This is needed for the bug 1430394
as we need to check the device owner when the port is to be deleted.
Partial-Bug: #1430394

Change-Id: I222a9f44c5ed6c879feb2fb9e04047ae8f2c7745

9 years agoPython 3: use six.string_types instead of basestring
Cyril Roelandt [Wed, 20 May 2015 13:09:13 +0000 (15:09 +0200)]
Python 3: use six.string_types instead of basestring

In Python 3, there is no "basestring". In Python 3, "six.string_types" is
"basestring", and "str" in Python 3.

Change-Id: Ic22e932cbf3c4b75cd424f4b41428da869f197cf
Blueprint: neutron-python3

9 years agoMerge "Catch ObjectDeletedError and skip port or subnet removal"
Jenkins [Thu, 21 May 2015 01:08:41 +0000 (01:08 +0000)]
Merge "Catch ObjectDeletedError and skip port or subnet removal"

9 years agoMerge "Python 3: Use six.moves.range"
Jenkins [Thu, 21 May 2015 00:48:16 +0000 (00:48 +0000)]
Merge "Python 3: Use six.moves.range"

9 years agoFix minor errors in the Vyatta L3 Plugin:
Sripriya [Thu, 21 May 2015 00:24:16 +0000 (17:24 -0700)]
Fix minor errors in the Vyatta L3 Plugin:

update management_network to management_network_id in vrouter.ini
Fix copyright header to refer to Brocade in vrouter_neutron_plugin.py
Fix neutron.service_plugins brocade_vyatta_l3 entry in setup.cfg

Change-Id: Ib9eb4a825454d99607deca61ceeb7acb43a9b248
Closes-Bug: #1457235

9 years agoMerge "Use convenience method from db api to create nested transaction"
Jenkins [Wed, 20 May 2015 22:12:09 +0000 (22:12 +0000)]
Merge "Use convenience method from db api to create nested transaction"

9 years agoRemove middleware oslo-incubator module
Ihar Hrachyshka [Wed, 20 May 2015 21:17:19 +0000 (23:17 +0200)]
Remove middleware oslo-incubator module

The module was used during Kilo cycle to provide backwards compatibility
for users that upgrade to the release without updating their
api-paste.ini. We have issued the deprecation warning for a cycle now,
so we should be ok to just drop the compatibility layer.

Note that the change may require a notion in release notes to make sure
everyone is notified, even if they don't look through their logs.

DocImpact

Change-Id: I41693f4613b5a69a01a33e54f90e82177f42e1af

9 years agoMatch order of iptables arguments to iptables-save
Kevin Benton [Sat, 16 May 2015 02:44:16 +0000 (19:44 -0700)]
Match order of iptables arguments to iptables-save

The way we were forming our iptables rules was not matching
the output of iptables-save. This caused the logic that preserves
counters to miss many of the rules.

This patch corrects the order for the comments and the allowed address
pairs to match the output order of iptables-save.

Closes-Bug: #1456823
Change-Id: I34c2249d0865485578767865c82414e1d813d563

9 years agoVMware NSXV: update configuration file
Gary Kotton [Fri, 15 May 2015 15:12:54 +0000 (08:12 -0700)]
VMware NSXV: update configuration file

Update the configuration file to show the variables for configuring
the Edge username and password. This is very useful for administrators
when they wish to debug issues.

Change-Id: I7340b3b408a6edaf9b4b307909631e628befe921

9 years agoMerge "Add unit tests for ML2 DVR port binding and fix PortContext inconsistencies"
Jenkins [Tue, 19 May 2015 21:38:42 +0000 (21:38 +0000)]
Merge "Add unit tests for ML2 DVR port binding and fix PortContext inconsistencies"

9 years agoMerge "Take Daemon stdin/stdout/stderr args as file objects"
Jenkins [Tue, 19 May 2015 20:20:47 +0000 (20:20 +0000)]
Merge "Take Daemon stdin/stdout/stderr args as file objects"

9 years agoIPAM reference driver
Salvatore Orlando [Fri, 16 Jan 2015 18:00:42 +0000 (10:00 -0800)]
IPAM reference driver

An alternate pluggable IPAM implementation from the built-in one
in db_base_plugin_v2.
Modifies IPAM interface to allow passing context to driver and
introduces new interface method 'associate_neutron_subnet'.

Implements blueprint reference-ipam-driver

Change-Id: I2e1e9fc7994bf1157bcd34b7ea500eb30c61d9ab

9 years agoMerge "Optimize IptablesManager._find_last_entry"
Jenkins [Tue, 19 May 2015 15:39:35 +0000 (15:39 +0000)]
Merge "Optimize IptablesManager._find_last_entry"

9 years agoPython 3: Use six.moves.range
Adrien Vergé [Tue, 19 May 2015 09:05:27 +0000 (11:05 +0200)]
Python 3: Use six.moves.range

The function `xrange` was renamed to `range` in Python 3.

* Remove `xrange` occurences so that Python 3 tests can pass. Use
  `six.moves.range` instead to get the right function in both cases.
* Generalize the use of the efficient `range` (ex-`xrange`) in
  critical sections (when iterating over large lists).
* Simplify code.
* Add a hacking check to prevent future usage of `xrange`.

Change-Id: I080acaaa1d4753619fbbb76dddba6d946d84e73f
Partially implements: blueprint neutron-python3

9 years agoovs-agent: prevent ARP requests with faked IP addresses
Darragh O'Reilly [Mon, 18 May 2015 20:49:05 +0000 (20:49 +0000)]
ovs-agent: prevent ARP requests with faked IP addresses

This patch extends the existing ARP protection to ensure
that ARP requests also have valid IP addresses.

Closes-Bug: 1456333

Change-Id: I0b2ba21611c9fd9e304bce8cfb00259db1dceaa2

9 years agoUse convenience method from db api to create nested transaction
Eugene Nikanorov [Thu, 19 Mar 2015 00:59:48 +0000 (04:59 +0400)]
Use convenience method from db api to create nested transaction

Instead of dealing with conditional nesting, use method that
creates nested transaction if possible.

Change-Id: Icb1fbd5d35dcbecce54426b9ef1e1be18b706d8b

9 years agoRemove a unused Context class
Salvatore Orlando [Mon, 18 May 2015 21:51:05 +0000 (14:51 -0700)]
Remove a unused Context class

This class in neutron.tests.unit.plugins.opencontrail.test_contrail.plugin
is not used anywhere and has no future development purpose.

Change-Id: Ibf149c5392b97f2aa33ccfc97c8ad6377f34bfee

9 years agoMerge "ml2: remove stale _filter_nets_l3 in get_networks"
Jenkins [Sat, 16 May 2015 18:00:42 +0000 (18:00 +0000)]
Merge "ml2: remove stale _filter_nets_l3 in get_networks"

9 years agoUse namespace names in NetcatTester
Cedric Brandily [Fri, 15 May 2015 16:10:09 +0000 (18:10 +0200)]
Use namespace names in NetcatTester

Currently NetcatTester requests namespace IPWrapper instances as
client/server_namespace arguments but functional tests commonly use
namespace names as arguments not IPWrapper instances (because IPWrapper
is cheap to instantiate) and NetcatTester needs only namespace names.

This change requests names as NetcatTester client/server_namespace
arguments in order to simplify NetcatTester and its use.

Change-Id: Ic4a297efdeaef00e70892d1c871ce1c9174055b8

9 years agoOptimize IptablesManager._find_last_entry
Assaf Muller [Fri, 15 May 2015 21:58:13 +0000 (17:58 -0400)]
Optimize IptablesManager._find_last_entry

As it turns out calling .strip() thousands of times can be expensive.
I'll defer to security groups and iptables experts to try and find ways
to call the method less often, cache the results, or any other clever
trick.

Moving strip to the return statement speeds up the method by more than
x2.

Change-Id: I7522c6db50c76274bef93e0f0ea6a78d508b7fbe
Related-Bug: #1455675

9 years agoMerge "Replace ci.o.o links with docs.o.o/infra"
Jenkins [Fri, 15 May 2015 12:09:05 +0000 (12:09 +0000)]
Merge "Replace ci.o.o links with docs.o.o/infra"

9 years agoTake Daemon stdin/stdout/stderr args as file objects
Angus Lees [Tue, 21 Apr 2015 01:04:33 +0000 (11:04 +1000)]
Take Daemon stdin/stdout/stderr args as file objects

Previously Daemon constructor took stdin/stdout/stderr as
paths (defaulting to '/dev/null') and opened them as regular files.
This greatly limits the type of filehandles supported (no pipes, for
example), and doesn't allow simple things like reusing existing fds.

This change switches to accepting file objects rather than strings,
and uses a sentinal value to represent the previous "open /dev/null"
default behaviour.

Change-Id: I51b36ce912194abd89ed46fad9943802f271444a

9 years agoMerge "Don't pass namespace name in disable_isolated_metadata_proxy"
Jenkins [Fri, 15 May 2015 06:45:53 +0000 (06:45 +0000)]
Merge "Don't pass namespace name in disable_isolated_metadata_proxy"

9 years agoSupport for concurrent full-stack tests
John Schwarz [Thu, 7 May 2015 12:22:41 +0000 (15:22 +0300)]
Support for concurrent full-stack tests

This patch introduces the last step of complete test separation for
full-stack tests - separate rabbitmq queues - in the form of rabbitmq
virtual hosts.

* This patch also renames EnvironmentFixture to FullstackFixture, for
  clarity.

Change-Id: I24776e3970a73fdd3271023da7967f2c7261621b
Closes-bug: #1452737

9 years agoOVS-DVR: Suppress a confusing error log about csnat port
YAMAMOTO Takashi [Fri, 15 May 2015 02:33:51 +0000 (11:33 +0900)]
OVS-DVR: Suppress a confusing error log about csnat port

Complain only when the port was seen on a different subnet.

Change-Id: If4a310da06f9b0076a9f62926a16b574a8c109ce

9 years agoOVS-DVR: Improve an error log about csnat port
YAMAMOTO Takashi [Fri, 24 Apr 2015 04:49:02 +0000 (13:49 +0900)]
OVS-DVR: Improve an error log about csnat port

Use a single LOG.error per message rather than per lines.
Also, print both of old and new subnets.

Change-Id: I162d3d178fec8b84b66fdfd5a037c2d858c47e30

9 years agoReplace ci.o.o links with docs.o.o/infra
Jeremy Stanley [Thu, 14 May 2015 21:38:20 +0000 (21:38 +0000)]
Replace ci.o.o links with docs.o.o/infra

The http://ci.openstack.org/ documentation site has been deprecated,
replaced by redirects to corresponding paths within
http://docs.openstack.org/infra/ where other Project Infrastructure
documentation already resides.

Change-Id: I5b7d2d6699084cce38a4d1a84ebfc42f8a53624e

9 years agoMerge "Deprecate quota_items, register resources upon REST initialization"
Jenkins [Thu, 14 May 2015 20:56:54 +0000 (20:56 +0000)]
Merge "Deprecate quota_items, register resources upon REST initialization"

9 years agoMerge "SystemExit is ok for child processes"
Jenkins [Thu, 14 May 2015 20:43:48 +0000 (20:43 +0000)]
Merge "SystemExit is ok for child processes"

9 years agoMerge "Add client id option support to dhcp agent"
Jenkins [Thu, 14 May 2015 20:09:26 +0000 (20:09 +0000)]
Merge "Add client id option support to dhcp agent"

9 years agoMerge "Append @randtoken to L3 agent namespaces in full stack tests"
Jenkins [Thu, 14 May 2015 19:17:03 +0000 (19:17 +0000)]
Merge "Append @randtoken to L3 agent namespaces in full stack tests"

9 years agoMerge "Remove use of contextlib.nested"
Jenkins [Thu, 14 May 2015 19:04:55 +0000 (19:04 +0000)]
Merge "Remove use of contextlib.nested"

9 years agoRefactor initialize() of sriov mech driver
Jakub Libosvar [Tue, 5 May 2015 12:32:21 +0000 (14:32 +0200)]
Refactor initialize() of sriov mech driver

This patch rewrites checking correctness of supported_pci_vendor_devs
config value from C-style to Python-style. Patch also adds some tests
for wrong values passed.

Change-Id: I90855d665ab8d42c4dd26b91d2e8b63feef122f4

9 years agoCentralized register_OVS_agent in tests
Assaf Muller [Wed, 29 Apr 2015 17:23:57 +0000 (13:23 -0400)]
Centralized register_OVS_agent in tests

This will allow the helper to be used for new DVR and l2pop
unit tests.

Change-Id: Iabf2e94c2b2d91f68fe016695fc56831c1aa13e1

9 years agoDon't pass namespace name in disable_isolated_metadata_proxy
Oleg Bondarev [Thu, 14 May 2015 12:03:54 +0000 (15:03 +0300)]
Don't pass namespace name in disable_isolated_metadata_proxy

It's not always possible/convenient to get namespace name
when need to disable some process (like metadata process for stale
router, see related bug). Since namespace name is not required
for process manager to disable process we can remove this parameter
from disable_isolated_metadata_proxy()

Change-Id: I0e0da01d9640aa9920f41989804fc6f320c1c1eb
Related-Bug: #1455042

9 years agoMerge "Randomize tunnel id query to avoid contention"
Jenkins [Thu, 14 May 2015 10:18:09 +0000 (10:18 +0000)]
Merge "Randomize tunnel id query to avoid contention"

9 years agoAdd client id option support to dhcp agent
Moshe Levi [Wed, 22 Apr 2015 11:17:28 +0000 (14:17 +0300)]
Add client id option support to dhcp agent

According to the dnsmasq man client id option should be
written to dhcp-hostsfile and not to the dhcp-optsfile.
Also this patch update the dhcp_release command to take
into account the client id when releasing old leases.

Closes-Bug: #1447105

Change-Id: I6f11b12040ad4e00ae871be45edda3b52b4ee0da

9 years agoRemove use of contextlib.nested
ankitagrawal [Thu, 14 May 2015 09:06:39 +0000 (02:06 -0700)]
Remove use of contextlib.nested

Removed use of contextlib.nested call from codebase, as it has been
deprecated since Python 2.7.

There are also known issues with contextlib.nested that were addressed
by the native support for multiple "with" variables. For instance, if
the first object is created but the second one throws an exception,
the first object's __exit__ is never called. For more information see
https://docs.python.org/2/library/contextlib.html#contextlib.nested
contextlib.nested is also not compatible with Python 3.

Multi-patch set for easier chunks. This one addresses the
neutron/tests/unit/agent/test_securitygroups_rpc.py tests.

Line continuation markers (e.g. '\') had to be used or syntax
errors were thrown. While using parentheses is the preferred way
for multiple line statements, but in case of long with statements
backslashes are acceptable.

Partial-Bug: 1428424
Change-Id: Ia66b98423b14fc7d1bbf6d8a673a49f798d328fa

9 years agoMerge "Extenuate register_dhcp_agent code duplication in tests"
Jenkins [Thu, 14 May 2015 05:00:14 +0000 (05:00 +0000)]
Merge "Extenuate register_dhcp_agent code duplication in tests"

9 years agoMerge "Remove skip of service-type management API test"
Jenkins [Thu, 14 May 2015 04:55:10 +0000 (04:55 +0000)]
Merge "Remove skip of service-type management API test"

9 years agoMerge "Allow updating port 'binding:host_id' be None"
Jenkins [Thu, 14 May 2015 03:45:59 +0000 (03:45 +0000)]
Merge "Allow updating port 'binding:host_id' be None"

9 years agoMerge "Add capability to wait for IPv6 address in ip_lib"
Jenkins [Thu, 14 May 2015 03:26:06 +0000 (03:26 +0000)]
Merge "Add capability to wait for IPv6 address in ip_lib"