]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 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 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 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 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 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"

9 years agoMerge "Allow unit tests to be run independently"
Jenkins [Thu, 14 May 2015 02:33:16 +0000 (02:33 +0000)]
Merge "Allow unit tests to be run independently"

9 years agoMerge "setup port filters when sg rules change"
Jenkins [Thu, 14 May 2015 02:33:03 +0000 (02:33 +0000)]
Merge "setup port filters when sg rules change"

9 years agoMerge "Refactor checks for device existence"
Jenkins [Thu, 14 May 2015 02:17:30 +0000 (02:17 +0000)]
Merge "Refactor checks for device existence"

9 years agoAllow updating port 'binding:host_id' be None
shihanzhang [Mon, 11 May 2015 09:22:40 +0000 (17:22 +0800)]
Allow updating port 'binding:host_id' be None

with ml2 plugin, it should allow updating port 'binding:host_id'
be None directly, there is already a bug in nova#1441419.

Change-Id: I93e4c513e40a7cf5740dde6c658e2470788d716a
Closes-Bug: #1453715

9 years agoBlock subnet create when a network hosts subnets allocated from different pools
Ryan Tidwell [Mon, 4 May 2015 22:56:41 +0000 (15:56 -0700)]
Block subnet create when a network hosts subnets allocated from different pools

This change will ensure that all subnets with the same ip_version on a given
network have been allocated from the same subnet pool or no pool. This
provides cleaner subnet overlap detection.

Change-Id: I3c7366c69b10c202c0511126fbee6b3aac36759e
Closes-Bug: #1451559

9 years agoFix neutron tests
Assaf Muller [Wed, 13 May 2015 17:39:20 +0000 (13:39 -0400)]
Fix neutron tests

Tox updated to a new major version and changed some substitute
variables.

Change-Id: Ifd00abed7bf0a68d4d46d12230118022fa2292ef

9 years agoMerge "Consider all address scopes in init_l3"
Jenkins [Wed, 13 May 2015 16:30:39 +0000 (16:30 +0000)]
Merge "Consider all address scopes in init_l3"

9 years agoAllow unit tests to be run independently
Henry Gessau [Tue, 31 Mar 2015 14:54:51 +0000 (10:54 -0400)]
Allow unit tests to be run independently

Add various initializations and imports so that unit tests can be run
independently.

This change fixes the following test cases which could not be run
independently, that is running any individual unit test case by going
in to the py27 venv and running
"unit2 neutron.tests.unit.module.Class.test_case":

 neutron.tests.unit.plugins.ml2.drivers.arista.test_mechanism_arista.*
 neutron.tests.unit.plugins.ml2.drivers.cisco.apic.*
 neutron.tests.unit.plugins.ml2.test_rpc.RpcCallbacksTestCase.*
 neutron.tests.unit.services.l3_router.test_l3_apic.*
 neutron.tests.unit.agent.dhcp.test_agent.TestDhcpAgentEventHandler.*

(Note that these issues are not seen when running tox because the
initializations occur when all test modules are imported for test
discovery.)

Closes-bug: 1438463
Closes-bug: 1454640

Change-Id: I681caa66b51ce9a7bfbee5dfc43d534ba0d51947

9 years agoMerge "Fix routerid constraint migration"
Jenkins [Wed, 13 May 2015 13:40:53 +0000 (13:40 +0000)]
Merge "Fix routerid constraint migration"

9 years agoMerge "Update build hooks."
Jenkins [Wed, 13 May 2015 12:21:51 +0000 (12:21 +0000)]
Merge "Update build hooks."

9 years agoMerge "mlnx MD: mlnx_direct removal"
Jenkins [Wed, 13 May 2015 11:41:11 +0000 (11:41 +0000)]
Merge "mlnx MD: mlnx_direct removal"

9 years agoMerge "ARP spoofing patch: Data structures for rules."
Jenkins [Wed, 13 May 2015 07:33:51 +0000 (07:33 +0000)]
Merge "ARP spoofing patch: Data structures for rules."

9 years agoSystemExit is ok for child processes
Angus Lees [Tue, 21 Apr 2015 01:00:04 +0000 (11:00 +1000)]
SystemExit is ok for child processes

DietTestCase catches SystemExit while running tests, interprets it as a
test failure, and then carry on with the next test (without exiting).
This greatly upsets forked child python processes, which may call exit()
legitimately, and expect that to result in process exit.

This change re-raises the SystemExit if the current process ID is not
the original pid.

Change-Id: Ia39a350b562b2856b5588cd73826afb3d072554f

9 years agoUpdate build hooks.
Robert Collins [Tue, 12 May 2015 19:49:15 +0000 (07:49 +1200)]
Update build hooks.

The pbr setup_hook has not been needed for a while, so remove it.  The
neutron hook has been broken for a while: it places a setup_requires
build dependency on everything in neutron/__init__.py, which is
non-empty, but setup_requires is handled by easy install so we try
very hard to avoid it. Instead, we can use environment markers to
selectively include the win32 dependencies without requiring that
neutron be importable during setup.py execution. This is unusual
in OpenStack and will eventually be moved to a regular
requirements.txt dependency with the same marker - once we've finished
the integration work to make markers work properly in
requirements.txt.

Change-Id: Icdc403a3ccf06daeccf2a907a7bfeafd8dbbb5dd

9 years agoAppend @randtoken to L3 agent namespaces in full stack tests
Carl Baldwin [Tue, 21 Apr 2015 21:36:33 +0000 (21:36 +0000)]
Append @randtoken to L3 agent namespaces in full stack tests

Change-Id: Ib180a5836f653385ec2877c50fbca6f850eff351
Closes-Bug: #1446261

9 years agoMerge "tests: don't allow oslo.config to autodiscover config files"
Jenkins [Tue, 12 May 2015 17:29:41 +0000 (17:29 +0000)]
Merge "tests: don't allow oslo.config to autodiscover config files"

9 years agoMerge "Allow users to run 'tox -epy34'"
Jenkins [Tue, 12 May 2015 16:09:47 +0000 (16:09 +0000)]
Merge "Allow users to run 'tox -epy34'"

9 years agosetup port filters when sg rules change
shihanzhang [Fri, 8 May 2015 00:51:19 +0000 (08:51 +0800)]
setup port filters when sg rules change

when security group rules change, the l2 agents which have the
ports in this security group should reload iptables, this bug
was introduced by patch#118274.

Closes-bug: #1452718
Change-Id: Idb1577128be5d8812024467f599166bc131d57ea

9 years agoMerge "l2pop UT: Reduce code duplication in migration tests"
Jenkins [Tue, 12 May 2015 11:44:30 +0000 (11:44 +0000)]
Merge "l2pop UT: Reduce code duplication in migration tests"

9 years agoMerge "Make it clear the rfe tag is lower-case"
Jenkins [Tue, 12 May 2015 11:44:17 +0000 (11:44 +0000)]
Merge "Make it clear the rfe tag is lower-case"

9 years agotests: don't allow oslo.config to autodiscover config files
Ihar Hrachyshka [Fri, 10 Apr 2015 09:29:56 +0000 (11:29 +0200)]
tests: don't allow oslo.config to autodiscover config files

oslo.config makes attempts to autodiscover configuration files using
find_config_files() helper. If e.g. /etc/neutron/neutron.conf exists,
and is not readable, the following test failure can be experienced:

oslo_config.cfg.ConfigFilesPermissionDeniedError: Failed to open some
config files: /etc/neutron/neutron.conf

Unit tests must not rely on any external state of the system and run
successfully no matter whether neutron is actually installed on the
system, or not.

Closes-Bug: #1442543
Change-Id: Ic90d8c40b2072fdda152703b84081719936b5f4e

9 years agoMerge "Support BP:ipv6-router in Neutron HA Router"
Jenkins [Tue, 12 May 2015 11:21:26 +0000 (11:21 +0000)]
Merge "Support BP:ipv6-router in Neutron HA Router"

9 years agoMerge "Remove H305 from tox.ini pep8 ignore list"
Jenkins [Tue, 12 May 2015 10:36:38 +0000 (10:36 +0000)]
Merge "Remove H305 from tox.ini pep8 ignore list"

9 years agomlnx MD: mlnx_direct removal
Moshe Levi [Sat, 9 May 2015 15:53:59 +0000 (18:53 +0300)]
mlnx MD: mlnx_direct removal

mlnx_direct is deprecated from Juno release. sriov-nic-switch
with macvtap port is the replacement for it.
This patch removes the mlnx_direct from mlnx MD and
from the supported vif_types.

Closes-Bug: #1453410

Change-Id: I7ee528dc04cdafa27455d5f8fd18c04c858466d8

9 years agoMerge "Two api tests for 'firewall insertion mode' feature"
Jenkins [Tue, 12 May 2015 08:10:32 +0000 (08:10 +0000)]
Merge "Two api tests for 'firewall insertion mode' feature"

9 years agol2pop UT: Reduce code duplication in migration tests
YAMAMOTO Takashi [Mon, 23 Feb 2015 04:37:47 +0000 (13:37 +0900)]
l2pop UT: Reduce code duplication in migration tests

Change-Id: Id5c2a849c242932ecfc243daef1d83f1892cbb0a

9 years agoMerge "Move test_get_user_allocation*returns_none test to a proper class"
Jenkins [Tue, 12 May 2015 01:07:13 +0000 (01:07 +0000)]
Merge "Move test_get_user_allocation*returns_none test to a proper class"

9 years agoAdd unit tests for ML2 DVR port binding and fix PortContext inconsistencies
Robert Kukura [Wed, 1 Apr 2015 21:11:59 +0000 (17:11 -0400)]
Add unit tests for ML2 DVR port binding and fix PortContext inconsistencies

Extends the existing ML2 port binding unit tests to cover the
distributed port bindings used for DVR. Within the test mechanism
driver, bindings are tracked per-host, and additional assertions are
added.

Fixes issues with PortContext attributes that were exposed by these
new tests. Adds new vif_type, original_vif_type, vif_details, and
original_vif_details PortContext attributes, similar to the exising
host, original_host, status, and original_status attributes, to
reflect host-specific details of distributed (or normal) port
bindings. Also fixes original_host and original_status to return None
when in the context of an operation other than an update, and fixes
original_host to reflect the specific host being bound for a
distributed port.

Closes-bug: 1453943
Closes-bug: 1453955
Change-Id: I467db0d48e4b82fdaad8d851e294e639a84a8160

9 years agoMake it clear the rfe tag is lower-case
Carl Baldwin [Mon, 11 May 2015 18:58:34 +0000 (12:58 -0600)]
Make it clear the rfe tag is lower-case

This tripped me up, I tried adding RFE to my bug and was denied.
It seems the tag was added with lower-case letters.  This is fine with
me as it is consistent with most, if not all, other tags in the
project.  If it stays lower-case, we should at least make the quoted
tag in the policy document lower-case.

Change-Id: I9c72a2db2a168b56b1137839f5bfc1d2068d9f0c

9 years agoRemove H305 from tox.ini pep8 ignore list
Jakub Libosvar [Mon, 11 May 2015 14:05:03 +0000 (16:05 +0200)]
Remove H305 from tox.ini pep8 ignore list

H305 is about grouping imports. It seems like we meet the requirement. I
don't think there a reason to keep it.

Change-Id: Ia2ddd467288c3c3aad39aed98eefb532b0e1d280

9 years agoAllow users to run 'tox -epy34'
Cyril Roelandt [Thu, 7 May 2015 13:00:38 +0000 (13:00 +0000)]
Allow users to run 'tox -epy34'

With this commit, it is possible to successfully run 'tox -epy34', even though
only a small amount of tests will actually be run. This is a required step in
making Neutron compatible with Python 3, as described in the 'Porting to Python
3' specification.

This commit:
- fixes some broken imports, while making sure they still work with Python 3;
- updates a call to gettext.install;
- adds a py34 target in tox.ini.

Change-Id: I91cc7a992d05ea85f7004d1c5a45a1c02cbf1c85
Blueprint: neutron-python3

9 years agoDeprecate quota_items, register resources upon REST initialization
Salvatore Orlando [Sat, 9 May 2015 00:03:55 +0000 (17:03 -0700)]
Deprecate quota_items, register resources upon REST initialization

Register 'core' resources when the respective rest controllers are
instantiated, rather than at module load time.

Since in this way there will not be any need to iterate over
quota_items, the option is being deprecated.

This patch does not supply unit tests as the already-existing
routine for registering a resource from quota_items is being
deprecated as well (and was not covered by any unit test beforehand).

DocImpact

Change-Id: Icdb744adfd86d38363239a454ccf04f3c6b9c158
Closes-Bug: #1453322

9 years agoSupport BP:ipv6-router in Neutron HA Router
sridhargaddam [Tue, 14 Apr 2015 08:03:49 +0000 (08:03 +0000)]
Support BP:ipv6-router in Neutron HA Router

blueprint ipv6-router (ChangeID:Iaefa95f788053ded9fc9c7ff6845c3030c6fd6df),
supports an IPv6 Router where the router gateway port has no subnet.

The BP implements the following. If an external network (without any subnet)
is attached to the Neutron router, it reads the ipv6_gateway config parameter
(LLA of upstream router) from l3_agent.ini file and adds a default route that
points to this LLA.  If the ipv6_gateway config value is not configured, it
would configure the gateway interface to accept router advts from upstream
router to build the default route.

For an HA router, we would have to configure keepalived to perform this
operation. This patch extends the functionality to an HA router.

Implements: blueprint ipv6-router
Change-Id: I26dc5ce9e46c74423358aa8a9559bc6c7cbdf85e

9 years agoCatch ObjectDeletedError and skip port or subnet removal
Eugene Nikanorov [Sat, 9 May 2015 18:56:44 +0000 (22:56 +0400)]
Catch ObjectDeletedError and skip port or subnet removal

When network is deleted service ports are deleted in the scope of
delete_network. Service ports could also be deleted by other entities
such as DHCP agent releasing dhcp port.
That could rarely lead to a race condition when port object used in
_delete_ports helper is already deleted causing ObjectDeletedError
exception.
Need to handle it and prevent object deletion in that case.

Change-Id: I531251d3211545c82a5bb7a471b7915da9b763b7
Closes-Bug: #1454408

9 years agoRandomize tunnel id query to avoid contention
Eugene Nikanorov [Sun, 10 May 2015 21:34:35 +0000 (01:34 +0400)]
Randomize tunnel id query to avoid contention

When networks are created rapidly, neutron-servers compete
for segmentation ids which creates too much contention and
may lead to inability to choose available id in hardcoded amount
of attempts (11)
Randomize tunnel id selection so that condition is not hit.

Change-Id: I7068f90fe4927e6e693f8a62cb704213b2da2920
Related-Bug: #1382064
Closes-Bug: #1454434

9 years agoRemove skip of service-type management API test
Henry Gessau [Mon, 20 Apr 2015 18:50:50 +0000 (14:50 -0400)]
Remove skip of service-type management API test

Advanced services split is complete so remove the skip
for the service-type management API test.

(Yes, there is only one placeholder test. More tests
need to be developed.)

Also remove the obsolete 'JSON' suffix from the test
class.

Closes-bug: 1400370

Change-Id: I5b4b8a67b24595568ea13bc400c1f5fce6d40f28

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 10 May 2015 06:15:11 +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: I879a3f7c7b0e970c91ef23b118f09ade99ceffc2

9 years agoAdd capability to wait for IPv6 address in ip_lib
Kevin Benton [Sat, 2 May 2015 12:08:26 +0000 (05:08 -0700)]
Add capability to wait for IPv6 address in ip_lib

When an IPv6 address is added to an interface, it
goes into a tentative state for a couple of seconds
for duplicate address detection. During this time,
use of the address will fail. This is an issue for
functional tests where they may add an address to
an interface and then immediately run a ping and
expect success.

This patch adds a new wait_until_address_ready function
to ip_lib that will poll the interface every 200 ms until
the status transitions off of tentative or until a time limit
is exceeded. If the time limit is exceeded, it will raise an
exception.

It also adds unit tests and updates a functional test to
make use of the new feature.

Change-Id: I2fa51e3f55847f7b5062bec0c1c666f5c11364d5

9 years agoMerge "remove router interface on Arista L3 plugin fails"
Jenkins [Sat, 9 May 2015 14:58:34 +0000 (14:58 +0000)]
Merge "remove router interface on Arista L3 plugin fails"

9 years agoMerge "Fix typos related to IPv6 use-cases"
Jenkins [Sat, 9 May 2015 08:42:31 +0000 (08:42 +0000)]
Merge "Fix typos related to IPv6 use-cases"

9 years agoremove router interface on Arista L3 plugin fails
Sukhdev Kapur [Sat, 9 May 2015 00:19:58 +0000 (17:19 -0700)]
remove router interface on Arista L3 plugin fails

The failure is because of mismatch of the
parameters to _validate_interface_info(). This patch removes
this code as it can be inherited from upstream

Change-Id: I5a92c6d05876e9ab5201e8fac018433eeb5c89e4
Closes-Bug: #1453323

9 years agoMerge "Kill hostname validation for subnet:dns_nameservers"
Jenkins [Fri, 8 May 2015 23:07:38 +0000 (23:07 +0000)]
Merge "Kill hostname validation for subnet:dns_nameservers"

9 years agoMerge "Remove use of contextlib.nested"
Jenkins [Fri, 8 May 2015 22:40:51 +0000 (22:40 +0000)]
Merge "Remove use of contextlib.nested"

9 years agoMerge "lb-agent: ensure tap mtu is the same as physical device"
Jenkins [Fri, 8 May 2015 22:32:45 +0000 (22:32 +0000)]
Merge "lb-agent: ensure tap mtu is the same as physical device"

9 years agoMerge "Update the specs process for Liberty"
Jenkins [Fri, 8 May 2015 22:29:18 +0000 (22:29 +0000)]
Merge "Update the specs process for Liberty"

9 years agoExtenuate register_dhcp_agent code duplication in tests
Assaf Muller [Fri, 1 May 2015 17:29:26 +0000 (13:29 -0400)]
Extenuate register_dhcp_agent code duplication in tests

Non-obvious changes:
* Change helpers.register_agent to use a slimmed down version
  of a plugin that knows how to register an agent. This allows
  the helper to be used with tests that do not register a core
  plugin.

Change-Id: Iefb1af676af6a984b01cdc1e9050541dffb5951a

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 8 May 2015 15:18:39 +0000 (15:18 +0000)]
Merge "Updated from global requirements"

9 years agoFix typos related to IPv6 use-cases
sridhargaddam [Fri, 17 Apr 2015 19:09:06 +0000 (19:09 +0000)]
Fix typos related to IPv6 use-cases

Change-Id: I8ede289ded70d2820a39c13a4cbfdaae570f699c

9 years agoRefactor checks for device existence
Sergey Belous [Thu, 15 Jan 2015 15:19:51 +0000 (18:19 +0300)]
Refactor checks for device existence

The code calling driver.plug() shouldn't check for the device existence,
it's a duplicate and it's an expensive call.
Move check for device existence to base LinuxInterfaceDriver.plug()
to remove code duplication. Make plug_new() abstract instead.

Change-Id: Id118a64012ad10b197ba681ce5f1b2742eb135b4
Closes-Bug:1348703

9 years agoMerge "Limit router gw ports' stateful fixed IPs to one per address family"
Jenkins [Fri, 8 May 2015 10:18:28 +0000 (10:18 +0000)]
Merge "Limit router gw ports' stateful fixed IPs to one per address family"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 7 May 2015 23:32:27 +0000 (23:32 +0000)]
Updated from global requirements

Change-Id: Iecf009725214efa30e42f62d14e4ef920d6ce4a1

9 years agoCheck for missing network in _bind_devices
Kevin Benton [Sun, 3 May 2015 06:10:52 +0000 (23:10 -0700)]
Check for missing network in _bind_devices

_bind_devices was making the assumption that the ports it
was operating had local VLAN map entries for their network.
This wasn't the case when a network was deleted right before
_bind_ports was called because the VLAN was reclaimed.

This patch just checks to see if the the network ID has an entry
in the map. If not, it skips the port. The port will be handled
on the next scan_ports iteration when the agent will discover that
the port is no longer defined on the plugin and it will be placed
in the DEAD vlan.

Change-Id: Ica51d727aceb41848fec0f4edbd16916365941ee
Closes-Bug: #1452903

9 years agoMerge "Fix fetching prevent_arp_spoofing from cfg in neutron-sanity-check"
Jenkins [Thu, 7 May 2015 21:37:26 +0000 (21:37 +0000)]
Merge "Fix fetching prevent_arp_spoofing from cfg in neutron-sanity-check"

9 years agoMerge "VMWare NSXv: Metadata for distributed router"
Jenkins [Thu, 7 May 2015 21:37:14 +0000 (21:37 +0000)]
Merge "VMWare NSXv: Metadata for distributed router"

9 years agoMerge "Add missed actions into policy.json"
Jenkins [Thu, 7 May 2015 21:37:02 +0000 (21:37 +0000)]
Merge "Add missed actions into policy.json"

9 years agoAdd missed actions into policy.json
Yushiro FURUKAWA [Tue, 7 Apr 2015 01:56:55 +0000 (10:56 +0900)]
Add missed actions into policy.json

This patch adds following actions into policy.json.

  1. v2.0/fw/firewall_policies/{firewall_policy_id}/insert_rule
  2. v2.0/fw/firewall_policies/{firewall_policy_id}/remove_rule

Closes-Bug: #1439383
Change-Id: I8051a97852f0f1f21bf266c16a477a5e2fd32062