]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoMerge "Replace internal oslo_policy mock with public fixture"
Jenkins [Mon, 2 Nov 2015 16:55:37 +0000 (16:55 +0000)]
Merge "Replace internal oslo_policy mock with public fixture"

8 years agoMerge "Per-branch HEAD files for conflict management"
Jenkins [Mon, 2 Nov 2015 16:07:25 +0000 (16:07 +0000)]
Merge "Per-branch HEAD files for conflict management"

8 years agoPer-branch HEAD files for conflict management
AKamyshnikova [Thu, 8 Oct 2015 15:18:21 +0000 (18:18 +0300)]
Per-branch HEAD files for conflict management

We have pep8 check for validation revisions, but it allows
outdated changes go into merge queue. To prevent this added
CONTRACT_HEAD, EXPAND_HEAD files.

Closes-bug: #1505701

Change-Id: Ie4b727e55a0b1ecb12e915a0037094a928d8f975

8 years agoMerge "Adds base in-tree functional testing of the dhcp agent (OVS)"
Jenkins [Mon, 2 Nov 2015 12:46:41 +0000 (12:46 +0000)]
Merge "Adds base in-tree functional testing of the dhcp agent (OVS)"

8 years agoReplace internal oslo_policy mock with public fixture
Kevin Benton [Thu, 8 Oct 2015 20:00:23 +0000 (13:00 -0700)]
Replace internal oslo_policy mock with public fixture

This replaces a mock on an internal oslo_policy http class
with a public fixture they provide.

Related-Bug: #1503890
Change-Id: Ifa445b699f71379c7922960375a5e1d25f873f91

8 years agoMerge "DHCP agent: log when reloading allocations for a new VM port"
Jenkins [Mon, 2 Nov 2015 09:55:26 +0000 (09:55 +0000)]
Merge "DHCP agent: log when reloading allocations for a new VM port"

8 years agoMerge "IPSet Manager: make code more pythonic"
Jenkins [Mon, 2 Nov 2015 09:48:51 +0000 (09:48 +0000)]
Merge "IPSet Manager: make code more pythonic"

8 years agoMerge "Decompose ML2 mechanism driver for Mellanox"
Jenkins [Mon, 2 Nov 2015 09:03:10 +0000 (09:03 +0000)]
Merge "Decompose ML2 mechanism driver for Mellanox"

8 years agoMerge "Optimize get_bridge_for_tap_device"
Jenkins [Mon, 2 Nov 2015 07:22:59 +0000 (07:22 +0000)]
Merge "Optimize get_bridge_for_tap_device"

8 years agoMerge "Use oslo_config new type PortOpt for port options"
Jenkins [Mon, 2 Nov 2015 07:07:44 +0000 (07:07 +0000)]
Merge "Use oslo_config new type PortOpt for port options"

8 years agoMerge "Removes the use of mutables as default args"
Jenkins [Mon, 2 Nov 2015 07:05:28 +0000 (07:05 +0000)]
Merge "Removes the use of mutables as default args"

8 years agoMerge "Don't update metadata_proxy if metadata is not enabled"
Jenkins [Mon, 2 Nov 2015 04:54:43 +0000 (04:54 +0000)]
Merge "Don't update metadata_proxy if metadata is not enabled"

8 years agoIPSet Manager: make code more pythonic
Gary Kotton [Sun, 1 Nov 2015 12:29:13 +0000 (04:29 -0800)]
IPSet Manager: make code more pythonic

Remove unnecessary brackets.

TrivialFix

Change-Id: I34e29a9911be9731bc9f4b2d7f3b055e4b85a438

8 years agoMerge "Remove deprecated nova_* options"
Jenkins [Sun, 1 Nov 2015 09:43:32 +0000 (09:43 +0000)]
Merge "Remove deprecated nova_* options"

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Sun, 1 Nov 2015 06:12:31 +0000 (06:12 +0000)]
Imported Translations from Zanata

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

Change-Id: I1cec4c9071a03288cd1cf33b19c42c95785b4fb4

8 years agoMerge "Fixed a bunch of typos throughout Neutron"
Jenkins [Sat, 31 Oct 2015 23:34:05 +0000 (23:34 +0000)]
Merge "Fixed a bunch of typos throughout Neutron"

8 years agoRemove deprecated nova_* options
Cedric Brandily [Thu, 22 Oct 2015 21:15:18 +0000 (23:15 +0200)]
Remove deprecated nova_* options

Neutron nova_* options have been deprecated in Kilo in favour of options
in [nova] section.

This change removes these options in order to simplify code, clarify
configuration and avoid a warning in unittests.

DocImpact
UpgradeImpact
Closes-Bug: #1509092
Related-Bug: #1403686
Change-Id: I950f72ad7d7d41cfa006f8c7105934301cd56faa

8 years agoMerge "Decompose ML2 mechanism driver for OVSvApp"
Jenkins [Sat, 31 Oct 2015 08:36:12 +0000 (08:36 +0000)]
Merge "Decompose ML2 mechanism driver for OVSvApp"

8 years agoFixed a bunch of typos throughout Neutron
Brandon Palm [Wed, 28 Oct 2015 19:51:25 +0000 (14:51 -0500)]
Fixed a bunch of typos throughout Neutron

Went through all of the docstrings in Neutron and did
some cleanup.  I'm sure there are bunch more that I have missed.

Change-Id: Ib29d2de1c580880c89ed4fd069e1515d0977a3e7

8 years agoDecompose ML2 mechanism driver for Mellanox
Cedric Brandily [Thu, 29 Oct 2015 14:30:17 +0000 (23:30 +0900)]
Decompose ML2 mechanism driver for Mellanox

This change removes Mellanox ML2 mechanism driver after its definition in
networking-mlnx.

DocImpact
Closes-Bug: #1511234
Change-Id: Ie48ac22d8e7477c22ad1d48aa0c44153a01eb242

8 years agoMerge "Add text for deprecated parameter"
Jenkins [Fri, 30 Oct 2015 03:43:31 +0000 (03:43 +0000)]
Merge "Add text for deprecated parameter"

8 years agoAdd text for deprecated parameter
Nate Johnston [Thu, 29 Oct 2015 05:17:17 +0000 (01:17 -0400)]
Add text for deprecated parameter

Add information for "max_fixed_ips_per_port" option that the
option is deprecated and will be removed in the N release.

Co-Authored-By: Takanori Miyagishi <miyagishi.t@jp.fujitsu.com>
Change-Id: I9aa876c371e7b6cff2068dc641c5e4b5ebda8001
Closes-Bug: #1503088

8 years agoClarify with example mentioning gratuitous whitespace changes
Carl Baldwin [Fri, 23 Oct 2015 21:04:39 +0000 (21:04 +0000)]
Clarify with example mentioning gratuitous whitespace changes

Maybe I'm just too picky but I usually call this stuff out in reviews
even if I decide to +2 the patch set.

Change-Id: I5a2667d44203147e112f5a1d7573105478d805f7

8 years agoRemoves the use of mutables as default args
Gary Kotton [Thu, 29 Oct 2015 14:40:05 +0000 (07:40 -0700)]
Removes the use of mutables as default args

Passing mutable objects as default args is a known Python pitfall.
We'd better avoid this. This commit changes mutable default args with
None, then use 'arg = arg or {}', 'arg = arg or []'. For unit code which
doesn't use the args , just set with None. This commit also adds hacking
check.

This code was taken from commit 0bea84ac20fe498bd08f7212a0017196c8cb0812
in Nova.

Change-Id: I36d07cade687690dc02a8f6cc3d70f5d00caf112
Co-Authored-By: ChangBo Guo(gcb) <glongwave@gmail.com>
8 years agoDecompose ML2 mechanism driver for OVSvApp
Cedric Brandily [Thu, 29 Oct 2015 05:38:23 +0000 (14:38 +0900)]
Decompose ML2 mechanism driver for OVSvApp

This change removes OVSvApp ML2 mechanism driver after its definition in
networking-vsphere.

DocImpact
Closes-Bug: #1511198
Depends-On: Ib7b2852f3d4dc35a837a425366c5bf0135725a74
Change-Id: I5e310f0596f3ea206800ac9d4daca1c292a234f1

8 years agoFix usage of mutable object as default value
Gary Kotton [Thu, 29 Oct 2015 13:48:48 +0000 (06:48 -0700)]
Fix usage of mutable object as default value

Commit 0a300a2277a583fe28b00db2571982928c752554 added a bad parameter.
Please see http://docs.python-guide.org/en/latest/writing/gotchas/

Change-Id: I0550c4c86774f8761287c596350f7461fec05fe4

8 years agoMerge "Optimize interface_exists_on_bridge"
Jenkins [Thu, 29 Oct 2015 09:00:07 +0000 (09:00 +0000)]
Merge "Optimize interface_exists_on_bridge"

8 years agoMerge "Log end of router updates for PD and delete branches"
Jenkins [Thu, 29 Oct 2015 08:59:53 +0000 (08:59 +0000)]
Merge "Log end of router updates for PD and delete branches"

8 years agoMerge "Make the Neutron Stadium documentation toplevel"
Jenkins [Thu, 29 Oct 2015 07:36:49 +0000 (07:36 +0000)]
Merge "Make the Neutron Stadium documentation toplevel"

8 years agoMerge "Add notes about stable merge requirements for sub-projects"
Jenkins [Thu, 29 Oct 2015 06:39:53 +0000 (06:39 +0000)]
Merge "Add notes about stable merge requirements for sub-projects"

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Thu, 29 Oct 2015 06:37:28 +0000 (06:37 +0000)]
Merge "Imported Translations from Zanata"

8 years agoMerge "Updated from global requirements"
Jenkins [Thu, 29 Oct 2015 06:18:09 +0000 (06:18 +0000)]
Merge "Updated from global requirements"

8 years agoMake the Neutron Stadium documentation toplevel
Kyle Mestery [Thu, 29 Oct 2015 05:29:44 +0000 (14:29 +0900)]
Make the Neutron Stadium documentation toplevel

This commits moves the Neutron Stadium documentation to the toplevel
portion of the documentation tree.

Change-Id: I0ec585975c453a9dd08d22293bb68dbc775802e6
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoAdd notes about stable merge requirements for sub-projects
Kyle Mestery [Thu, 29 Oct 2015 01:00:24 +0000 (10:00 +0900)]
Add notes about stable merge requirements for sub-projects

It was pointed out the requirements around what is allowed to be merged
into stable Neutron sub-projects wasn't clear. This attempts to make
that a bit more refined so those who choose to participate in the Neutron
Stadium know these requirements.

Change-Id: I6d472f4d9458ce311199ded89dc2a81759d1efa5
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoFix incorrect capitilization of PyPI
Kyle Mestery [Thu, 29 Oct 2015 00:40:10 +0000 (09:40 +0900)]
Fix incorrect capitilization of PyPI

Change-Id: I2cadc925e3a78241f3dd44acb440427f816b7ff9
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 28 Oct 2015 22:07:28 +0000 (22:07 +0000)]
Updated from global requirements

Change-Id: I7a0550f47b885618c53bbea777680c58b4c8ab13

8 years agoLog end of router updates for PD and delete branches
Ryan Moats [Wed, 28 Oct 2015 16:01:28 +0000 (11:01 -0500)]
Log end of router updates for PD and delete branches

These execution branches call continue directly without
logging the end of the router update.  This leads to
confusion about when the last router update finishes if
it is a delete or a PD update.

Change-Id: Id82e7374aa9336e0adea3042238f30f716208373
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
Closes-bug: #1511004

8 years agoDon't update metadata_proxy if metadata is not enabled
Hong Hui Xiao [Wed, 28 Oct 2015 09:57:43 +0000 (05:57 -0400)]
Don't update metadata_proxy if metadata is not enabled

When enable_metadata_proxy is false, the agent instance will
not have metadata_driver. And agent should avoid using it.

Change-Id: Ia18dc5dea23de49b97c8f225532531eb9232fb51
Closes-Bug: #1510399

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Wed, 28 Oct 2015 06:12:02 +0000 (06:12 +0000)]
Imported Translations from Zanata

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

Change-Id: Ic47890d38487f8e5f566da101da649c34f51d9ee

8 years agoMerge "Log the exception in linuxbridge_neutron_agent as exception"
Jenkins [Wed, 28 Oct 2015 03:30:21 +0000 (03:30 +0000)]
Merge "Log the exception in linuxbridge_neutron_agent as exception"

8 years agoDHCP agent: log when reloading allocations for a new VM port
Neil Jerram [Wed, 2 Sep 2015 14:14:30 +0000 (15:14 +0100)]
DHCP agent: log when reloading allocations for a new VM port

This will help us to see more clearly if failing DHCP for a new VM -
as seen in failures such as the following traceback from [1] - is
caused by DHCP configuration being too slow, as suggested by the
referenced bug.

Traceback (most recent call last):
  File "/home/aqua/tempest/tempest/test.py", line 125, in wrapper
    return f(self, *func_args, **func_kwargs)
  File "/home/aqua/tempest/tempest/scenario/test_server_basic_ops_38.py", line 105, in test_server_basicops
    self.verify_ssh()
  File "/home/aqua/tempest/tempest/scenario/test_server_basic_ops_38.py", line 95, in verify_ssh
    private_key=self.keypair['private_key'])
  File "/home/aqua/tempest/tempest/scenario/manager.py", line 310, in get_remote_client
    linux_client.validate_authentication()
  File "/home/aqua/tempest/tempest/common/utils/linux/remote_client.py", line 55, in validate_authentication
    self.ssh_client.test_connection_auth()
  File "/home/aqua/tempest/tempest/common/ssh.py", line 150, in test_connection_auth
    connection = self._get_ssh_connection()
  File "/home/aqua/tempest/tempest/common/ssh.py", line 87, in _get_ssh_connection
    password=self.password)
tempest.exceptions.SSHTimeout: Connection to the 172.17.205.21 via SSH timed out.
User: cirros, Password: None

[1] http://logs.openstack.org/39/194939/19/check/gate-grenade-dsvm-neutron/82a7e58/

Change-Id: I5d77762bf8d4caa2e6f8b3527a30bf80bac62085
Related-Bug: #1453350

8 years agoMerge "Replace utils.exec for IpNeighComm LinuxBridge drv"
Jenkins [Wed, 28 Oct 2015 02:51:10 +0000 (02:51 +0000)]
Merge "Replace utils.exec for IpNeighComm LinuxBridge drv"

8 years agoLog the exception in linuxbridge_neutron_agent as exception
Hong Hui Xiao [Wed, 21 Oct 2015 14:35:53 +0000 (10:35 -0400)]
Log the exception in linuxbridge_neutron_agent as exception

The log here should be logged as exception. 1) It is more readable.
2) It keeps consistent with the action of its sibling module,
ovs_neutron_agent.

Change-Id: Idf11a617369cbee0dc23c8e56ae9475bb41dcc02
Closes-bug: #1508270

8 years agoReplace utils.exec for IpNeighComm LinuxBridge drv
Lubosz Kosnik [Wed, 21 Oct 2015 13:50:16 +0000 (15:50 +0200)]
Replace utils.exec for IpNeighComm LinuxBridge drv

Replace all execution of "ip neigh" command using
utils.exec for ip_lib.IpNeighCommand.(add,delete)
in LinuxBridge driver

Changed multiple which for one and fixed indentations
Closes-Bug: #1311019

Change-Id: I1389941b7df11c089429f1de61eac6d7ea5d0e54

8 years agoMerge "Fix iptables modules references in rule generation"
Jenkins [Mon, 26 Oct 2015 09:31:46 +0000 (09:31 +0000)]
Merge "Fix iptables modules references in rule generation"

8 years agoOptimize get_bridge_for_tap_device
Cedric Brandily [Mon, 26 Oct 2015 00:50:20 +0000 (09:50 +0900)]
Optimize get_bridge_for_tap_device

Currently get_bridge_for_tap_device[1] iterates over all neutron bridges
and their interfaces.

This change proposes to deduce interface bridge from:

 /sys/class/net/%(interface)s/brif/bridge

which is a symlink to bridge interface path to improve performance.

[1] neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent

Closes-Bug: #1508789
Change-Id: Ia40cd81f47ff082a90d17f58514942ec50553241

8 years agoOptimize interface_exists_on_bridge
Cedric Brandily [Mon, 26 Oct 2015 00:19:26 +0000 (09:19 +0900)]
Optimize interface_exists_on_bridge

Currently interface_exists_on_bridge[1] lists all files in a folder and
searchs for the file associated to the interface.

This change proposes to look for the file existence directly.

[1] neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent

Closes-Bug: #1509890
Change-Id: I23cd1edc92912b35bdc23ba0af2318b86f2cfd48

8 years agoCorrect indentation in linuxbridge_neutron_agent
Cedric Brandily [Sun, 25 Oct 2015 23:27:20 +0000 (08:27 +0900)]
Correct indentation in linuxbridge_neutron_agent

Change-Id: I47b3033b5353c895de72e40fc25c099b7b7a077b

8 years agoUse oslo_config new type PortOpt for port options
ZhiQiang Fan [Thu, 22 Oct 2015 06:12:24 +0000 (00:12 -0600)]
Use oslo_config new type PortOpt for port options

The oslo_config library provides new type PortOpt to validate the
range of port now.

Change-Id: I40792ddcee0f89c47defa726fed24f26c4b88ce2
Depends-On: I9c0e3f44cf93db020933d8d766cedfc2e3f3bb8b

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Sat, 24 Oct 2015 02:08:55 +0000 (02:08 +0000)]
Updated from global requirements

Change-Id: I9c0e3f44cf93db020933d8d766cedfc2e3f3bb8b

8 years agoMerge "Validate ethertype for icmp protocols"
Jenkins [Sat, 24 Oct 2015 01:31:05 +0000 (01:31 +0000)]
Merge "Validate ethertype for icmp protocols"

8 years agoMerge "Support migrating of legacy routers to HA and back"
Jenkins [Sat, 24 Oct 2015 01:05:19 +0000 (01:05 +0000)]
Merge "Support migrating of legacy routers to HA and back"

8 years agoMerge "Add another patch scoping bullet point to effective_neutron"
Jenkins [Fri, 23 Oct 2015 22:04:45 +0000 (22:04 +0000)]
Merge "Add another patch scoping bullet point to effective_neutron"

8 years agoMerge "Enable specific extra_dhcp_opt to be left blank"
Jenkins [Fri, 23 Oct 2015 22:04:32 +0000 (22:04 +0000)]
Merge "Enable specific extra_dhcp_opt to be left blank"

8 years agoMerge "Better tolerate deleted OVS ports in OVS agent"
Jenkins [Fri, 23 Oct 2015 22:00:40 +0000 (22:00 +0000)]
Merge "Better tolerate deleted OVS ports in OVS agent"

8 years agoMerge "get_device_by_ip: don't fail if device was deleted"
Jenkins [Fri, 23 Oct 2015 17:54:29 +0000 (17:54 +0000)]
Merge "get_device_by_ip: don't fail if device was deleted"

8 years agoMerge "Remove deprecated namespace deletion options"
Jenkins [Fri, 23 Oct 2015 15:45:28 +0000 (15:45 +0000)]
Merge "Remove deprecated namespace deletion options"

8 years agoMerge "Fix _restore_local_vlan_map race"
Jenkins [Fri, 23 Oct 2015 15:45:10 +0000 (15:45 +0000)]
Merge "Fix _restore_local_vlan_map race"

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Fri, 23 Oct 2015 12:45:40 +0000 (12:45 +0000)]
Merge "Imported Translations from Zanata"

8 years agoMerge "Use string formatting instead of string replace"
Jenkins [Fri, 23 Oct 2015 09:49:09 +0000 (09:49 +0000)]
Merge "Use string formatting instead of string replace"

8 years agoMerge "Deepcopy port dict in dhcp rpc handler"
Jenkins [Fri, 23 Oct 2015 09:42:17 +0000 (09:42 +0000)]
Merge "Deepcopy port dict in dhcp rpc handler"

8 years agoMerge "Mark for removal deadcode in neutron.common.utils"
Jenkins [Fri, 23 Oct 2015 09:37:18 +0000 (09:37 +0000)]
Merge "Mark for removal deadcode in neutron.common.utils"

8 years agoMerge "Set security group provider rule for icmpv6 RA in DVR"
Jenkins [Fri, 23 Oct 2015 09:32:00 +0000 (09:32 +0000)]
Merge "Set security group provider rule for icmpv6 RA in DVR"

8 years agoMerge "Move test_extend_port_dict_no_port_security to where it belongs to"
Jenkins [Fri, 23 Oct 2015 09:05:14 +0000 (09:05 +0000)]
Merge "Move test_extend_port_dict_no_port_security to where it belongs to"

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Fri, 23 Oct 2015 06:11:57 +0000 (06:11 +0000)]
Imported Translations from Zanata

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

Change-Id: I9b3c875c0dd9c89f61e664be32b73eacb539b8f9

8 years agoMerge "DVR: notify specific agent when deleting floating ip"
Jenkins [Fri, 23 Oct 2015 04:46:25 +0000 (04:46 +0000)]
Merge "DVR: notify specific agent when deleting floating ip"

8 years agoMerge "Remove GBP as a Neutron sub-project"
Jenkins [Fri, 23 Oct 2015 00:58:01 +0000 (00:58 +0000)]
Merge "Remove GBP as a Neutron sub-project"

8 years agoSupport migrating of legacy routers to HA and back
John Schwarz [Mon, 12 Oct 2015 13:54:17 +0000 (16:54 +0300)]
Support migrating of legacy routers to HA and back

This patch adds support for migration of legacy routers to HA and
vice-versa. This patch also:

1. Reverts I4171ab481e3943e0110bd9a300d965bbebe44871, which was used to
   disable such migrations until support was inserted to the codebase.
2. Adds an exception to indicate that such migrations are only available
   on routers that have their admin_state_up set to False.

Closes-Bug: #1365426
DocImpact (Handled in patch 233695)
Change-Id: Ie92f8033f47e1bf9ba6310373b3bfc9833317580

8 years agoUse string formatting instead of string replace
Cedric Brandily [Thu, 22 Oct 2015 21:45:32 +0000 (23:45 +0200)]
Use string formatting instead of string replace

Currently linuxbridge_neutron_agent[1] uses the pattern:

 PLACEHOLDER = "..."
 PATH = PREFIX + PLACEHOLDER + SUFFIX
 ...
 my_path = PATH.replace(PLACEHOLDER, my_value)

which could be replaced by the following which is more common and in
general safer:

 PATH = PREFIX + '%s' + SUFFIX
 ...
 my_path = PATH % my_value)

Change-Id: I2d23b11fa6fb7f31c1abbe36523b75bfc81f5c46

8 years agoMerge "Fix error code when L3 HA + DVR router is created or updated"
Jenkins [Thu, 22 Oct 2015 20:55:14 +0000 (20:55 +0000)]
Merge "Fix error code when L3 HA + DVR router is created or updated"

8 years agoBetter tolerate deleted OVS ports in OVS agent
Paul Ward [Thu, 24 Sep 2015 19:52:28 +0000 (14:52 -0500)]
Better tolerate deleted OVS ports in OVS agent

This change will not force a resync in the case where a virtual machine is
deleted, and therefore its OVS port deleted, in between the time an RPC
call was made to get the devices and where we make the call to correlate
those devices to vif ports.

Change-Id: Ie55eb69ad7ee177f0cf8ee8fc7fc585fbd0d4a22
Closes-Bug: #1499488

8 years agoRemove GBP as a Neutron sub-project
Kyle Mestery [Thu, 22 Oct 2015 19:28:02 +0000 (19:28 +0000)]
Remove GBP as a Neutron sub-project

It was never a sub-project to begin with, so lets get it out of here.

Change-Id: Iabba3cc55c88771d3922050f23289ebdd7cbd44b
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoMerge "Allow to specify branch for creating new migration"
Jenkins [Thu, 22 Oct 2015 19:19:40 +0000 (19:19 +0000)]
Merge "Allow to specify branch for creating new migration"

8 years agoget_device_by_ip: don't fail if device was deleted
John Schwarz [Thu, 15 Oct 2015 14:34:01 +0000 (17:34 +0300)]
get_device_by_ip: don't fail if device was deleted

The function gets a list of all the devices that exists on the machine,
and then iterates on them one at a time in order to find the correct
device which holds the ip specified. However, if one of the devices was
in the mean time deleted, the code will raise an Exception. In the ovs
agent's case, this will cause it to not run at all (requiring a
restart).

Also, changes to a few tests of LinuxBridge were made because
linuxbridge doesn't check that cfg.CONF.VXLAN.local_ip is not empty
before using it (a bug, surely). Since it's out of scope of this patch
to fix this, workarounds were implemented to make sure the tests ignore
the option instead.

Closes-Bug: #1506503
Change-Id: Iad285d7c763b0e8e8f877c6892aadb0043e9a186

8 years agoAllow to specify branch for creating new migration
Yuji [Wed, 16 Sep 2015 02:45:27 +0000 (11:45 +0900)]
Allow to specify branch for creating new migration

Add options to 'neutron-db-manage revision' command for specifying
a branch.

DocImpact

Change-Id: I00b00821839b0d77caaaf26b518c5c0c75e01218
Closes-Bug: 1503342

8 years agoMark for removal deadcode in neutron.common.utils
Bogdan Tabor [Wed, 21 Oct 2015 13:40:14 +0000 (15:40 +0200)]
Mark for removal deadcode in neutron.common.utils

Methods:
 * read_cached_file(filename, cache_info, reload_func=None)
 * find_config_file(options, config_file)
 * get_keystone_url(conf)
are not used withing neutron projects.

Change-Id: Iba3325103f5c24c1822781382f4c8864eb2921c5
Closes-bug: #1508430

8 years agoAdds base in-tree functional testing of the dhcp agent (OVS)
marios [Fri, 21 Nov 2014 12:20:54 +0000 (13:20 +0100)]
Adds base in-tree functional testing of the dhcp agent (OVS)

Adds some utility methods and a couple of base test cases that
can be added to. These first tests exercise the ovs driver (dnsmasq)
and so the code is organised accordingly - OVS specific test cases
are defined in a DHCPAgentOVSTestFramework

Partial-Bug: #1469065
Co-Authored-By: Cedric Brandily <zzelle@gmail.com>
Co-Authored-By: Sergey Belous <sbelous@mirantis.com>
Change-Id: Ic9d5a2f2b8014e4d81f5e5f6fa58b119a86de075

8 years agoMerge "Minor improvement in port_bound operation"
Jenkins [Thu, 22 Oct 2015 14:49:38 +0000 (14:49 +0000)]
Merge "Minor improvement in port_bound operation"

8 years agoMerge "Add effective note on DB exception to be aware of"
Jenkins [Thu, 22 Oct 2015 10:42:45 +0000 (10:42 +0000)]
Merge "Add effective note on DB exception to be aware of"

8 years agoFix _restore_local_vlan_map race
YAMAMOTO Takashi [Wed, 21 Oct 2015 04:54:06 +0000 (13:54 +0900)]
Fix _restore_local_vlan_map race

Local vlan mappings provisioned by _restore_local_vlan_map
might not be cleaned up properly if the corresponding ports are
removed before we enter the main loop.

This commit fixes the problem by making _restore_local_vlan_map
just record local vlan IDs and leave the rest of provisioning logic
to the main loop.

Closes-Bug: #1507776
Change-Id: I84ff6684ae3fda7d839c14b1a7382871f45ce610

8 years agoDVR: notify specific agent when deleting floating ip
Oleg Bondarev [Tue, 6 Oct 2015 12:22:30 +0000 (15:22 +0300)]
DVR: notify specific agent when deleting floating ip

In DVR case we only need to notify the l3 agent on compute node
where associated fixed port is located.

Closes-Bug: #1486828
Change-Id: I644238ca295c4eb6df75a99a8ef6143a801b27cb

8 years agoMerge "Spawn dedicated rpc workers for state reports queue"
Jenkins [Thu, 22 Oct 2015 07:45:04 +0000 (07:45 +0000)]
Merge "Spawn dedicated rpc workers for state reports queue"

8 years agoMove test_extend_port_dict_no_port_security to where it belongs to
YAMAMOTO Takashi [Thu, 22 Oct 2015 04:48:20 +0000 (13:48 +0900)]
Move test_extend_port_dict_no_port_security to where it belongs to

extensions/test_portsecurity doesn't seem like an appropriate
place for tests which examine details of ML2 extension driver.

Change-Id: I56c38a334cba45e204184e5d7d9284dacc29a2e1

8 years agoFix the latest glitches that broke docs generation
armando-migliaccio [Thu, 22 Oct 2015 01:12:22 +0000 (18:12 -0700)]
Fix the latest glitches that broke docs generation

Change-Id: I56fd97e4d590fd67768fefc45aabe429ad169d48

8 years agoAdd effective note on DB exception to be aware of
armando-migliaccio [Thu, 22 Oct 2015 01:10:24 +0000 (18:10 -0700)]
Add effective note on DB exception to be aware of

Change-Id: I249b0dcf8d5ebff3c6b72c0e4deb270f0275d3a4

8 years agoMinor improvement in port_bound operation
armando-migliaccio [Thu, 22 Oct 2015 00:47:47 +0000 (17:47 -0700)]
Minor improvement in port_bound operation

By returning the need for binding, the (no-op) port processing
is skipped in the main sync loop. In fact, the port is already
detected as deleted and avoiding going over it again will save
us one log message, and thus many, many, many, many bytes over
time in logs.openstack.org.

If this is not an improvement, I don't what is.

Related-bug: 1455320

Change-Id: I4ef30bed6a1619f5980c3e61ee23ffb808c2c4f0

8 years agoClarify what gerrit repositories can target neutron-specs
Kyle Mestery [Wed, 21 Oct 2015 17:43:58 +0000 (17:43 +0000)]
Clarify what gerrit repositories can target neutron-specs

It wasn't made clear by the existing documentation that we only want
neutron, neutron-fwaas, neutron-lbaas, and neutron-vpnaas repositories
to target specs at neutron-specs. This makes it 100% crystal clear.

Change-Id: I5b87faa31d71676f1674fd7370535ae6d895b43f
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoMerge "DVR: Notify specific agent when update floatingip"
Jenkins [Wed, 21 Oct 2015 17:31:56 +0000 (17:31 +0000)]
Merge "DVR: Notify specific agent when update floatingip"

8 years agoMerge "Remove deprecated sriov agent_required option"
Jenkins [Wed, 21 Oct 2015 17:31:35 +0000 (17:31 +0000)]
Merge "Remove deprecated sriov agent_required option"

8 years agoMerge "Fix l2pop regression"
Jenkins [Wed, 21 Oct 2015 17:30:03 +0000 (17:30 +0000)]
Merge "Fix l2pop regression"

8 years agoMerge "Set ip_nonlocal_bind in namespace if it exists"
Jenkins [Wed, 21 Oct 2015 17:14:10 +0000 (17:14 +0000)]
Merge "Set ip_nonlocal_bind in namespace if it exists"

8 years agoMerge "ovs: remove several unneeded object attributes from setup_rpc()"
Jenkins [Wed, 21 Oct 2015 17:13:55 +0000 (17:13 +0000)]
Merge "ovs: remove several unneeded object attributes from setup_rpc()"

8 years agoMerge "Remove IBM SDN-VE left-overs"
Jenkins [Wed, 21 Oct 2015 14:36:27 +0000 (14:36 +0000)]
Merge "Remove IBM SDN-VE left-overs"

8 years agoMerge "Don't remove ip addresses if not master"
Jenkins [Wed, 21 Oct 2015 14:32:42 +0000 (14:32 +0000)]
Merge "Don't remove ip addresses if not master"

8 years agoFix error code when L3 HA + DVR router is created or updated
Assaf Muller [Mon, 12 Oct 2015 20:32:12 +0000 (16:32 -0400)]
Fix error code when L3 HA + DVR router is created or updated

Change-Id: I1b9a07aaf6957f062cd8632c7ca8b9d87c4afe20
Closes-Bug: #1505382

8 years agoSpawn dedicated rpc workers for state reports queue
Eugene Nikanorov [Mon, 12 Oct 2015 12:21:02 +0000 (16:21 +0400)]
Spawn dedicated rpc workers for state reports queue

By default spawn one additional rpc worker to process
state report queue.
State report queue will also be processed by regular
rpc workers, but in case these workers are busy with
processing heavy requests, state reports queue will
automatically be consumed by dedicated rpc workers.

This change applies to ML2 plugin only.
Other plugins should implement start_rpc_state_reports_listener
to enable additional rpc workers.

Change-Id: I5f8df6a478f7c82382049274b34b07109eeafbdb
Closes-Bug: #1505217

8 years agoFix l2pop regression
Assaf Muller [Tue, 20 Oct 2015 21:42:57 +0000 (17:42 -0400)]
Fix l2pop regression

Patch https://review.openstack.org/#/c/236970/ introduced an issue
where get_agent_by_host can return a random host (Including L3,
DHCP or metadata agents), not only L2 agents. The caller then
tries to get tunneling_ip, which might not exist on the returned
agent, causing l2pop code to bail out with a WARNING:
'Unable to retrieve the agent ip...'.

The issue was found by manual introspection of the code, and
verified by modifying the l2pop fullstack test to register L3
agents. Both a unit test was added, as well as modifying the
fullstack connectivity test to register L3 agents if l2pop
is enabled.

The code will now check for agents with a tunneling_ip key
in their configurations dict, which is required for l2pop
to work correctly, essentially a form of duck typing.

Change-Id: Ib3072966140b7f6ca954d7847ad9835aa1191998
Closes-Bug: #1508205

8 years agoRemove deprecated sriov agent_required option
Cedric Brandily [Tue, 20 Oct 2015 19:51:09 +0000 (21:51 +0200)]
Remove deprecated sriov agent_required option

The SR-IOV option agent_required has been deprecated in Liberty.

This change removes it and from now agents are mandatory for SR-IOV
mechanism in order to support extended features: QoS, port security.

DocImpact
Closes-Bug: #1508182
Related-Bug: #1488807
Change-Id: I4e6497da6b287531a211084a5208028c84112a83

8 years agoRemove deprecated namespace deletion options
Cedric Brandily [Tue, 20 Oct 2015 21:03:39 +0000 (23:03 +0200)]
Remove deprecated namespace deletion options

dhcp/router_delete_namespaces[1] options have been defined as a
workaround to an iproute2 limitation[1] corrected 2 years ago.

That's why the change removes these options after their deprecation
in Liberty.

[1] in neutron.agent.dhcp/l3.config

DocImpact
Closes-Bug: #1508189
Related-Bug: #1418079
Change-Id: I2a879213c3b095a007a4531f430a33cea9fdf1bd

8 years agoDeepcopy port dict in dhcp rpc handler
Pavel Bondar [Tue, 20 Oct 2015 15:59:16 +0000 (18:59 +0300)]
Deepcopy port dict in dhcp rpc handler

Added deepcopy of port dict in dhcp rpc handler to prevent operating on
changed dict in case of raising retry request.

Change-Id: Ie1816fe819ba77061e71bd61de2fd9ebe4574cef
Related-Bug: #1494351