]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agolinuxbridge-agent: make vxlan unicast check more efficent
Darragh O'Reilly [Mon, 17 Nov 2014 10:20:58 +0000 (10:20 +0000)]
linuxbridge-agent: make vxlan unicast check more efficent

A list with the full range of vxlan VNIs (1 to 2**24) was using
over 300MB of memory. This patch uses xrange instead of range.

Closes-Bug: #1393362
Change-Id: I21ccab758e7911712690fd5e732f64361e809264

9 years agoMerge "switch to oslo.serialization"
Jenkins [Sat, 15 Nov 2014 00:41:56 +0000 (00:41 +0000)]
Merge "switch to oslo.serialization"

9 years agoMerge "Drop neutron.common.rpc.MessagingTimeout"
Jenkins [Fri, 14 Nov 2014 22:03:44 +0000 (22:03 +0000)]
Merge "Drop neutron.common.rpc.MessagingTimeout"

9 years agoenable F811 check for flake8
Mark McClain [Thu, 12 Jun 2014 01:23:53 +0000 (21:23 -0400)]
enable F811 check for flake8

This change incorporates two cleanups that do not change logic:
- Removes the shadowed unused imports by using the proper oslo.config import
mechanism
- duplicate unit tests have been removed
- duplicate unit test names have been corrected to reflect true test
  nature

Change-Id: Iad7a3373c1f787a2078b932c5f40bb718ad76767
Partial-Bug: 1329017

9 years agoMerge "Remove neutron.common.rpc.RemoteError"
Jenkins [Fri, 14 Nov 2014 15:07:14 +0000 (15:07 +0000)]
Merge "Remove neutron.common.rpc.RemoteError"

9 years agoswitch to oslo.serialization
gordon chung [Thu, 9 Oct 2014 18:17:43 +0000 (14:17 -0400)]
switch to oslo.serialization

jsonutils has been moved to the oslo.serialization library. in this
patch we bring in oslo.serialization and switch all references to
the new library.

Closes-Bug: #1385353
Change-Id: I2898c4040abb2f208959049708e7bc093cfbaba7

9 years agoMerge "Resolving some spelling mistakes"
Jenkins [Thu, 13 Nov 2014 23:58:03 +0000 (23:58 +0000)]
Merge "Resolving some spelling mistakes"

9 years agoMerge "Cisco VPNaaS and L3 router plugin integration"
Jenkins [Thu, 13 Nov 2014 23:50:48 +0000 (23:50 +0000)]
Merge "Cisco VPNaaS and L3 router plugin integration"

9 years agoMerge "Remove neutron.common.rpc.RPCException"
Jenkins [Thu, 13 Nov 2014 23:39:03 +0000 (23:39 +0000)]
Merge "Remove neutron.common.rpc.RPCException"

9 years agoMerge "Updated policy module from oslo-incubator"
Jenkins [Thu, 13 Nov 2014 18:56:48 +0000 (18:56 +0000)]
Merge "Updated policy module from oslo-incubator"

9 years agoMerge "Fix missing allowed command in openvswitch xenapi agent"
Jenkins [Thu, 13 Nov 2014 16:05:16 +0000 (16:05 +0000)]
Merge "Fix missing allowed command in openvswitch xenapi agent"

9 years agoMerge "Update default value for agent_required attribute"
Jenkins [Thu, 13 Nov 2014 16:02:06 +0000 (16:02 +0000)]
Merge "Update default value for agent_required attribute"

9 years agoUpdated policy module from oslo-incubator
Elena Ezhova [Thu, 18 Sep 2014 07:53:24 +0000 (11:53 +0400)]
Updated policy module from oslo-incubator

Common policy has not been synced with oslo-incubator for a
long time and is seriously outdated.

This change pulls in fresh code from oslo-incubator which
introduces the Enforcer class to replace the old check function.

Rewrite neutron.policy using naming conventions and approach
that was set in Nova and amend related unit tests.
Remove neutron.common.exceptions.PolicyNotAuthorized and switch
to neutron.openstack.common.policy.PolicyNotAuthorized.
Drop Neutron specific policy_file option since now it is defined
in oslo-incubator policy module.

Change log:
4ca5091 Fixes nits in module policy
262fc82 Correct default rule name for policy.Enforcer
9e8b9f6 Minor fixes in policy module
6c706c5 Delete graduated serialization files
5d40e14 Remove code that moved to oslo.i18n
aebb58f Fix typo to show correct log message
bb410d9 Use MultiStrOpt for policy_dirs
33f44bf Add support for policy configration directories
2b966f9 Fix deletion of cached file for policy enforcer
238e601 Make policy debug logging less verbose
fe3389e Improve help strings
15722f1 Adds a flag to determine whether to reload the rules in policy
5d1f15a Documenting policy.json syntax
fcf517d Update oslo log messages with translation domains
e038d89 Fix policy tests for parallel testing
0da5de6 Allow policy.json resource vs constant check
e4b2334 Replaces use of urlutils with six in policy module
8b2b0b7 Use hacking import_exceptions for gettextutils._
0d8f18b Use urlutils functions instead of urllib/urllib2
12bcdb7 Remove vim header
9ef9fec Use six.string_type instead of basestring
4bfb7a2 Apply six for metaclass
1538c80 ConfigFileNotFoundError with proper argument
33533b0 Keystone user can't perform revoke_token
64bb5e2 Fix wrong argument in openstack common policy
b7edc99 Fix missing argument bug in oslo common policy
3626b6d Fix policy default_rule issue
7bf8ee9 Allow use of hacking 0.6.0 and enable new checks
e4ac367 Fix missing argument bug in oslo common policy
1a2df89 Enable H302 hacking check
7119e29 Enable hacking H404 test.
6d27681 Enable H306 hacking check.
1091b4f Reduce duplicated code related to policies

Closes-Bug: #1288178
Change-Id: I87ee30e2b64ec6b07faa84a231fd5f7eb925d501

9 years agoMerge "fix event_send for re-assign floating ip"
Jenkins [Thu, 13 Nov 2014 05:34:46 +0000 (05:34 +0000)]
Merge "fix event_send for re-assign floating ip"

9 years agoMerge "Fix for FIPs duplicated across hosts for DVR"
Jenkins [Thu, 13 Nov 2014 03:12:01 +0000 (03:12 +0000)]
Merge "Fix for FIPs duplicated across hosts for DVR"

9 years agoResolving some spelling mistakes
Raildo Mascena [Mon, 3 Nov 2014 14:04:23 +0000 (11:04 -0300)]
Resolving some spelling mistakes

Just resolve some spelling mistakes in the comments

Change-Id: I6eed9fbe73d6618b474395c8ca41460cdfbe08d4
Closes-Bug: #1365088

9 years agoFix for FIPs duplicated across hosts for DVR
Michael Smith [Mon, 10 Nov 2014 23:49:14 +0000 (15:49 -0800)]
Fix for FIPs duplicated across hosts for DVR

For DVR, FIPs should be hosted on the single node
which hosts the VM assigned with the fixed_ip of the FIP.
The l3_agent should only take action on the correct FIP per
host by filtering the FIPs based on the 'host' value
of the FIP.

A recent refactor on the l3_agent moved the host filtering logic
from process_router_floating_ip_addresses() to
_get_external_device_interface_name(). The local floating_ips var
was not altered as it was before the refactor.

This resulted in network disruption across multiple hosts
since more than one namespace contained the FIP.  This problem
would only be seen in a mutli-host environment where the same
router hosting FIPs was present on more than one node.

The fix is to return the host filtering logic by adding a
call to get_floating_ips().  In addition, the unit test
test_process_router_dist_floating_ip_add() was modified to
pass two FIPs instead of one.  One FIP matches the host
of the agent, one does not.  Only one should be processed,
not two.

Change-Id: I67b19f6228af392519fff89b13283b43921552bf
Closes-bug: #1389880

9 years agoMerge "Purge use of "PRED and A or B" poor-mans-ternary"
Jenkins [Wed, 12 Nov 2014 16:55:01 +0000 (16:55 +0000)]
Merge "Purge use of "PRED and A or B" poor-mans-ternary"

9 years agoDrop neutron.common.rpc.MessagingTimeout
Russell Bryant [Thu, 6 Nov 2014 23:30:25 +0000 (00:30 +0100)]
Drop neutron.common.rpc.MessagingTimeout

Drop the last neutron.common.rpc exception mapping, MessagingHelper,
which wasn't actually used anywhere anyway.

Part of blueprint drop-rpc-compat.

Change-Id: I43b9b97accff9cc7684146076ba0b5d62302f06e

9 years agoRemove neutron.common.rpc.RemoteError
Russell Bryant [Thu, 6 Nov 2014 23:28:10 +0000 (00:28 +0100)]
Remove neutron.common.rpc.RemoteError

Remove RemoteError from neutron.common.rpc, which was just mapped
directly to oslo.messaging.RemoteError.

Part of blueprint drop-rpc-compat.

Change-Id: Ic4d7ea0adfd68eb56100e32ce0d8e59aa2aae5b1

9 years agoRemove neutron.common.rpc.RPCException
Russell Bryant [Thu, 6 Nov 2014 23:21:10 +0000 (00:21 +0100)]
Remove neutron.common.rpc.RPCException

Remove RPCException, which was just mapped directly to
oslo.messaging.MessagingException for the purposes of minimizing the
impact to the code base when moving from openstack.common.rpc to
oslo.messaging.

Part of blueprint drop-rpc-compat.

Change-Id: Idc5af503f24217fbd2d982c338434c200d025521

9 years agoCisco VPNaaS and L3 router plugin integration
Paul Michali [Wed, 24 Sep 2014 22:22:04 +0000 (18:22 -0400)]
Cisco VPNaaS and L3 router plugin integration

This completes the blueprint effort to integrate the Cisco VPNaaS
drivers with the Cisco L3 router plugin for a VPN solution that
uses an in-band Cisco CSR (versus out-of-band, as is currently).

The VPNaaS service driver is modified to no longer read router
configuration from an INI file, but instead, will query the L3
router plugin for this information. The config loading logic is
removed. The router information is transformed and passed to the
device driver for use by the REST client.

The L3 router plugin now provides two methods to provide the needed
router and hosting device info. In addition, the template and
snippets used to provision the Cisco CSR are modified to have the
needed VPN settings and to change the VRF configuration to the new
style to support VPN REST API calls with VRF info.

The VPNaaS device driver was modified to provide the VRF name as
part of the URI for several VPN REST API calls, as needed for this
solution. The device driver uses the additional VRF and interface
information that is provided by the service driver.

The unit tests were updated to reflect the usage of VRF names, and
the new logic for checking router information.

Change-Id: I6ee17f91a25db7bff3ebbeb8d482de1c31a77035
Implements: blueprint cisco-vpnaas-and-router-integration

9 years agoMerge "Remove openvswitch core plugin entry point"
Jenkins [Tue, 11 Nov 2014 12:03:34 +0000 (12:03 +0000)]
Merge "Remove openvswitch core plugin entry point"

9 years agoMerge "rootwrap config files reference deleted quantum binaries"
Jenkins [Tue, 11 Nov 2014 08:19:01 +0000 (08:19 +0000)]
Merge "rootwrap config files reference deleted quantum binaries"

9 years agoFix missing allowed command in openvswitch xenapi agent
Martins Jakubovics [Wed, 23 Jul 2014 05:24:24 +0000 (08:24 +0300)]
Fix missing allowed command in openvswitch xenapi agent

Add allowed command "ovsdb-client" to ALLOWED_CMDS list.

Change-Id: I274604229f90ba00722b1001cbc7404cd3e8070d
Closes-Bug: #1338447

9 years agoMerge "Enable assignment-from-no-return pylint check"
Jenkins [Tue, 11 Nov 2014 03:31:19 +0000 (03:31 +0000)]
Merge "Enable assignment-from-no-return pylint check"

9 years agofix event_send for re-assign floating ip
lzklibj [Tue, 21 Oct 2014 06:55:53 +0000 (23:55 -0700)]
fix event_send for re-assign floating ip

Neutron can associate a floating ip to a new port
without disassociate from original instance port.
This situation will send network changed event only
for new instance port, and that event object contains
the new instance's id.

In this case nova will update new instance's info
but not original one's in nova's database table
instance_info_caches. For nova can get new instance's
id from the above event. So in table instance_info_caches,
both original instance and new instance will have the
same floating ip in their records. And this make it
possible that, in most situation, after your re-assign
floating ip, run "nova list" will return incorrect info,
multiple instances have a same floating ip, and this may
confuse users.

Nova will sync data in table instance_info_caches, but it
may take dozens of seconds.
The new added code will send network changed event for the
original instance, and this will make nova update instance_
_info_caches table in a few seconds.

Change-Id: If3ee11535f649fc51bf1a52806008c1c5c0e73b6
Closes-Bug: 1381886

9 years agoMerge "NEC plugin: Allow to apply Packet filter on OFC router interface"
Jenkins [Tue, 11 Nov 2014 00:42:40 +0000 (00:42 +0000)]
Merge "NEC plugin: Allow to apply Packet filter on OFC router interface"

9 years agoMerge "Add assertion to test_page_reverse method"
Jenkins [Tue, 11 Nov 2014 00:40:01 +0000 (00:40 +0000)]
Merge "Add assertion to test_page_reverse method"

9 years agoMerge "Remove duplicate ensure_remove_chain method in iptables_manager"
Jenkins [Tue, 11 Nov 2014 00:34:09 +0000 (00:34 +0000)]
Merge "Remove duplicate ensure_remove_chain method in iptables_manager"

9 years agoMerge "SRIOV: Fix Wrong Product ID for Intel NIC example"
Jenkins [Tue, 11 Nov 2014 00:33:55 +0000 (00:33 +0000)]
Merge "SRIOV: Fix Wrong Product ID for Intel NIC example"

9 years agoMerge "Fix L3 HA network creation to allow user to create router"
Jenkins [Tue, 11 Nov 2014 00:25:45 +0000 (00:25 +0000)]
Merge "Fix L3 HA network creation to allow user to create router"

9 years agoMerge "Merge tag '2014.2'"
Jenkins [Mon, 10 Nov 2014 22:25:20 +0000 (22:25 +0000)]
Merge "Merge tag '2014.2'"

9 years agoRemove openvswitch core plugin entry point
Cedric Brandily [Mon, 10 Nov 2014 10:43:09 +0000 (11:43 +0100)]
Remove openvswitch core plugin entry point

The openvswitch core plugin has been removed but not its associated
"neutron.core_plugins" entry point. This change removes it from
setup.cfg.

Change-Id: I79f7c334cdeb0f4d0d68743734f69c0ec8523467
Related-Bug: #1323729
Closes-Bug: #1391326

9 years agorootwrap config files reference deleted quantum binaries
Cedric Brandily [Mon, 10 Nov 2014 17:50:38 +0000 (18:50 +0100)]
rootwrap config files reference deleted quantum binaries

dhcp and l3 rootwrap filter files contain reference to the deleted
binary quantum-ns-metadata-proxy. This change removes these obsolete
filters.

Change-Id: Iad4772752d74a1c0535144b5faf9a1f8ae89f6a3
Closes-Bug: #1391256

9 years agoMerge "Replace "nova" entries in iptables_manager with "neutron""
Jenkins [Mon, 10 Nov 2014 06:12:33 +0000 (06:12 +0000)]
Merge "Replace "nova" entries in iptables_manager with "neutron""

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 10 Nov 2014 06:12:19 +0000 (06:12 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Updated from global requirements"
Jenkins [Mon, 10 Nov 2014 06:12:04 +0000 (06:12 +0000)]
Merge "Updated from global requirements"

9 years agoFix L3 HA network creation to allow user to create router
Sachi King [Sun, 2 Nov 2014 13:35:51 +0000 (00:35 +1100)]
Fix L3 HA network creation to allow user to create router

Update HA Network creation to use an admin context to allow Neutron
to create the tenant-less network required for the HA router when
it does not yet exist and is being created by a non-admin user.

Neutron creates these resources without a tenant so users cannot see
or modify the HA network, ports, etc.  Port creation and association
already use elivated admin contexts to allow their function when
an user attempts to create a HA L3 router.

Change-Id: I36166158a0970b8d08d6702054b11a43fb684281
Closes-Bug: #1388716

9 years agoUpdate default value for agent_required attribute
Irena Berezovsky [Sun, 2 Nov 2014 08:28:00 +0000 (10:28 +0200)]
Update default value for agent_required attribute

Update default value for agent_required under the
section [ml2_sriov] to be aligned with default config value.

Change-Id: I5903dedb2b8dc6bbda7c921ef747ffae358b3c05
Closes-Bug: 1386660

9 years agoMerge "Fix sneaky copypaste typo in ovs agent scheduler test"
Jenkins [Sun, 9 Nov 2014 08:29:42 +0000 (08:29 +0000)]
Merge "Fix sneaky copypaste typo in ovs agent scheduler test"

9 years agoSRIOV: Fix Wrong Product ID for Intel NIC example
Samer Deeb [Tue, 4 Nov 2014 11:58:19 +0000 (13:58 +0200)]
SRIOV: Fix Wrong Product ID for Intel NIC example

Some Examples and default Values of the Product ID for Intel NIC contains
Wrong Product ID that belongs to the PF product,
it should be replaced with the product ID of the VF.

Change-Id: I87291ea0458fa1ef7df1c06e17b7f9071ffb39e0
Closes-Bug: 1387152

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 9 Nov 2014 06:08:09 +0000 (06:08 +0000)]
Imported Translations from Transifex

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

Change-Id: I78ef4cad31e24dd42e1bf64cad4084887044c533

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Sun, 9 Nov 2014 00:39:32 +0000 (00:39 +0000)]
Updated from global requirements

Change-Id: I0e0f708a755dcf45e3ce51141d264d8624ec87ba

9 years agoMerge "Guard against concurrent port removal in DVR"
Jenkins [Sat, 8 Nov 2014 23:35:59 +0000 (23:35 +0000)]
Merge "Guard against concurrent port removal in DVR"

9 years agoMerge "Remove single occurrence of lost-exception warning"
Jenkins [Sat, 8 Nov 2014 23:35:44 +0000 (23:35 +0000)]
Merge "Remove single occurrence of lost-exception warning"

9 years agoMerge "neutron-db-manage finds automatically config file"
Jenkins [Fri, 7 Nov 2014 22:26:29 +0000 (22:26 +0000)]
Merge "neutron-db-manage finds automatically config file"

9 years agoPurge use of "PRED and A or B" poor-mans-ternary
Angus Lees [Thu, 31 Jul 2014 03:30:52 +0000 (13:30 +1000)]
Purge use of "PRED and A or B" poor-mans-ternary

Since python2.6, python has a proper ternary construct "A if PRED else
B".  The older idiom "PRED and A or B" has a hidden trap - when A is
itself false, the result is (unexpectedly) B.

This change removes all cases of the older construct found using a
trivial git grep " and .* or " - except one case in oslo common
code (fixed in oslo upstream).

Change-Id: I24461f4328e188c8983ad574495e11e033ec5ba4

9 years agoMerge "Validate network config (vlan)"
Jenkins [Fri, 7 Nov 2014 13:10:32 +0000 (13:10 +0000)]
Merge "Validate network config (vlan)"

9 years agoMerge "Make L2 DVR Agent start successfully without an active neutron server"
Jenkins [Fri, 7 Nov 2014 13:02:32 +0000 (13:02 +0000)]
Merge "Make L2 DVR Agent start successfully without an active neutron server"

9 years agoMerge "Allow to add router interface to IPv6 SLAAC network"
Jenkins [Thu, 6 Nov 2014 12:56:07 +0000 (12:56 +0000)]
Merge "Allow to add router interface to IPv6 SLAAC network"

9 years agoReplace "nova" entries in iptables_manager with "neutron"
Elena Ezhova [Wed, 5 Nov 2014 10:01:51 +0000 (13:01 +0300)]
Replace "nova" entries in iptables_manager with "neutron"

In iptables_manager docstrings there are still some references to
nova left from nova/network/linux_net.py.
Remove these references and update the docstrings.

Change-Id: I50813e3050f7f117512bde7c2563ce3410939e54
Closes-Bug: #1389601

9 years agoMerge "Remove some duplicate unit tests"
Jenkins [Wed, 5 Nov 2014 14:10:31 +0000 (14:10 +0000)]
Merge "Remove some duplicate unit tests"

9 years agoMerge "Stop ignoring 400 errors returned by ODL"
Jenkins [Sun, 2 Nov 2014 11:15:55 +0000 (11:15 +0000)]
Merge "Stop ignoring 400 errors returned by ODL"

9 years agoMerge "Use stop() method on MessageHandlingServer"
Jenkins [Sun, 2 Nov 2014 11:15:15 +0000 (11:15 +0000)]
Merge "Use stop() method on MessageHandlingServer"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 2 Nov 2014 06:05:13 +0000 (06:05 +0000)]
Imported Translations from Transifex

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

Change-Id: Icd40b3f0556c735637c940072306c52124df2f54

9 years agoRemove duplicate ensure_remove_chain method in iptables_manager
Elena Ezhova [Fri, 31 Oct 2014 16:37:46 +0000 (19:37 +0300)]
Remove duplicate ensure_remove_chain method in iptables_manager

Change-Id: I168eda2fa430446786d4106d6807207f4facbfc3
Closes-Bug: #1388162

9 years agoMerge "ML2 Cisco Nexus MD - not overwriting existing config"
Jenkins [Fri, 31 Oct 2014 14:59:41 +0000 (14:59 +0000)]
Merge "ML2 Cisco Nexus MD - not overwriting existing config"

9 years agoML2: fix file permissions
Gary Kotton [Thu, 30 Oct 2014 13:38:56 +0000 (06:38 -0700)]
ML2: fix file permissions

Commit 36b7ceb050a6805d30cbac4562e109dddf3cba25 changed the
file permissions.

This corrects that.

Change-Id: I6b9cf7aef8f1a45f89c6a923be382789de7287b6

9 years agoMerge "Batch ports from security groups RPC handler"
Jenkins [Fri, 31 Oct 2014 09:43:49 +0000 (09:43 +0000)]
Merge "Batch ports from security groups RPC handler"

9 years agoMerge "Big Switch: Fix SSL version on get_server_cert"
Jenkins [Thu, 30 Oct 2014 07:53:26 +0000 (07:53 +0000)]
Merge "Big Switch: Fix SSL version on get_server_cert"

9 years agoFix sneaky copypaste typo in ovs agent scheduler test
Eugene Nikanorov [Wed, 29 Oct 2014 15:07:33 +0000 (19:07 +0400)]
Fix sneaky copypaste typo in ovs agent scheduler test

Change-Id: I3433e0bcd9834cbf387da42b8e69df9a5127b1bf

9 years agoMerge "Neutron metering does not check overlap ip range"
Jenkins [Thu, 30 Oct 2014 04:22:02 +0000 (04:22 +0000)]
Merge "Neutron metering does not check overlap ip range"

9 years agoMerge "Check for concurrent port binding deletion before binding the port"
Jenkins [Wed, 29 Oct 2014 19:55:03 +0000 (19:55 +0000)]
Merge "Check for concurrent port binding deletion before binding the port"

9 years agoMake L2 DVR Agent start successfully without an active neutron server
Brian Haley [Thu, 25 Sep 2014 01:45:06 +0000 (21:45 -0400)]
Make L2 DVR Agent start successfully without an active neutron server

If the L2 Agent is started before the neutron controller
is available, it will fail to obtain its unique DVR MAC
address, and fall-back to operate in non-DVR mode
permanently.

This fix does two things:
1. Makes the L2 Agent attempt to retry obtaining a DVR MAC
address up to five times on initialization, which should be
enough time for RPC to be successful.  On failure, it will
fall back to non-DVR mode, ensuring that basic switching
continues to be functional.

2. Correctly obtains the current operating mode of the
L2 Agent in _report_state(), instead of only reporting
the configured state.  This operating mode is carried
in 'in_distributed_mode' attribute of agent state, and
is separate from the existing enable_distributed_routing
static config that is already sent.

Change-Id: I5fd9bf4163eafa321c5fca7ffb7901ae289f323b
Closes-bug: #1364215

9 years agoMerge "Detect if iproute2 support SR-IOV commands"
Jenkins [Wed, 29 Oct 2014 14:32:31 +0000 (14:32 +0000)]
Merge "Detect if iproute2 support SR-IOV commands"

9 years agoMerge "tox.ini: Avoid using bash where unnecessary"
Jenkins [Wed, 29 Oct 2014 14:29:31 +0000 (14:29 +0000)]
Merge "tox.ini: Avoid using bash where unnecessary"

9 years agoMerge "Create DHCP port for IPv6 subnet"
Jenkins [Wed, 29 Oct 2014 14:29:16 +0000 (14:29 +0000)]
Merge "Create DHCP port for IPv6 subnet"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 29 Oct 2014 14:24:30 +0000 (14:24 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Rename constant to a more appropriate name"
Jenkins [Wed, 29 Oct 2014 14:24:14 +0000 (14:24 +0000)]
Merge "Rename constant to a more appropriate name"

9 years agoMerge "Only resync DHCP for a particular network when their is a failure"
Jenkins [Wed, 29 Oct 2014 14:16:44 +0000 (14:16 +0000)]
Merge "Only resync DHCP for a particular network when their is a failure"

9 years agoDetect if iproute2 support SR-IOV commands
Irena Berezovsky [Mon, 18 Aug 2014 10:52:36 +0000 (13:52 +0300)]
Detect if iproute2 support SR-IOV commands

Add sanity_check that 'ip link' command supports VF management and
link state changes of VF by parsing 'ip link help' command output.

Co-authored-by: Samer Deeb <samerd@mellanox.com>
Closes bug: 1349302

Change-Id: I5a72a9061a76c39960076f078905371f07069431

9 years agoUse stop() method on MessageHandlingServer
Jakub Libosvar [Wed, 29 Oct 2014 09:02:10 +0000 (10:02 +0100)]
Use stop() method on MessageHandlingServer

MessageHandlingServer has no kill() method. In case neutron server using
rpc workers and is stopped, wrong method is called.

Change-Id: Id4a11f3dca070e684fb9e079139ac09792bc7aad
Closes-Bug: 1387053

9 years agoMerge "l2population_rpc: docstring improvements"
Jenkins [Wed, 29 Oct 2014 07:22:29 +0000 (07:22 +0000)]
Merge "l2population_rpc: docstring improvements"

9 years agoRename constant to a more appropriate name
Kevin Benton [Sat, 18 Oct 2014 07:38:57 +0000 (00:38 -0700)]
Rename constant to a more appropriate name

The DB_MAX_RETRIES implies that a query will be
retried that many times. 'retry' means it happened
once before. In the current code, if DB_MAX_RETRIES
is set to 1, the query won't be retried at all.
If it's set to 0, the query won't even be run.

This constant should actually be called DB_MAX_ATTEMPTS
to indicate that the variable includes the first try.

Change-Id: I13f088ffa38c40db7fd297173e892b4ad5c7fadd

9 years agoBig Switch: Fix SSL version on get_server_cert
Kevin Benton [Wed, 29 Oct 2014 04:39:04 +0000 (21:39 -0700)]
Big Switch: Fix SSL version on get_server_cert

The ssl.get_server_certificate method uses SSLv3 by default.
Support for SSLv3 was dropped on the backend controller in
response to the POODLE vulnerability. This patch fixes it
to use TLSv1 like the wrap_socket method.

Closes-Bug: #1384487
Change-Id: I9cb5f219d327d62168bef2d7dbee22534b2e454e

9 years agoCheck for concurrent port binding deletion before binding the port
Eugene Nikanorov [Sun, 28 Sep 2014 21:02:58 +0000 (01:02 +0400)]
Check for concurrent port binding deletion before binding the port

When agent tries to update port binding (DVR or regular), the port
might have already been deleted via API call.
This is not an error condition but should be handled to avoid traces
in the logs.

Change-Id: Ie9436172151f0ecd5b3e4667328910b09f8ef141
Closes-Bug: #1370570

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 29 Oct 2014 06:06:58 +0000 (06:06 +0000)]
Imported Translations from Transifex

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

Change-Id: I25a1b72a78a94e00b28e5d128b5be591fe565b3c

9 years agoMerge "Use RPC instead of neutron client in metadata agent"
Jenkins [Wed, 29 Oct 2014 04:40:23 +0000 (04:40 +0000)]
Merge "Use RPC instead of neutron client in metadata agent"

9 years agoBatch ports from security groups RPC handler
Kevin Benton [Fri, 26 Sep 2014 16:40:44 +0000 (09:40 -0700)]
Batch ports from security groups RPC handler

The security groups RPC handler calls get_port_from_device
individually for each device in a list it receives. Each
one of these results in a separate SQL query for the security
groups and port details. This becomes very inefficient as the
number of devices on a single node increases.

This patch adds logic to the RPC handler to see if the core
plugin has a method to lookup all of the device IDs at once.
If so, it uses that method, otherwise it continues as normal.

The ML2 plugin is modified to include the batch function, which
uses one SQL query regardless of the number of devices.

Closes-Bug: #1374556
Change-Id: I15d19c22e8c44577db190309b6636a3251a9c66a

9 years agoMerge "Hyper-V: Remove useless use of "else" clause on for loop"
Jenkins [Tue, 28 Oct 2014 23:21:48 +0000 (23:21 +0000)]
Merge "Hyper-V: Remove useless use of "else" clause on for loop"

9 years agoMerge "NSX: allow multiple networks with same vlan on different phy_net"
Jenkins [Tue, 28 Oct 2014 22:34:00 +0000 (22:34 +0000)]
Merge "NSX: allow multiple networks with same vlan on different phy_net"

9 years agoMerge "Add advsvc role to neutron policy file"
Jenkins [Tue, 28 Oct 2014 20:51:46 +0000 (20:51 +0000)]
Merge "Add advsvc role to neutron policy file"

9 years agoAllow to add router interface to IPv6 SLAAC network
sridhargaddam [Tue, 21 Oct 2014 10:08:10 +0000 (10:08 +0000)]
Allow to add router interface to IPv6 SLAAC network

This patch will allow an IPv6 subnet configured with SLAAC
(or dhcpv6-stateless) to be attached to a router interface.

Closes-Bug: #1382076
Change-Id: If0c48a7287a828eef4a0f0b0859d4f898d2937bd

9 years agoML2 Cisco Nexus MD - not overwriting existing config
Abishek Subramanian [Tue, 28 Oct 2014 18:36:32 +0000 (14:36 -0400)]
ML2 Cisco Nexus MD - not overwriting existing config

The Cisco Nexus ML2 MD overwrites any existing switchport
VLAN config such as management VLANs that are preconfigured
in the compute node ToR interfaces.
This bug addresses that issue and ensures the config is not
wiped out.

Closes-Bug: 1330597

Change-Id: Ie2969e5750a179a4940d12db4c9ee6e1ec53b79b

9 years agoReorder operations in (l3_dvr) update floating ip
marios [Wed, 22 Oct 2014 10:11:02 +0000 (13:11 +0300)]
Reorder operations in (l3_dvr) update floating ip

This review overrides update_floatingip (L3_NAT_dbonly_mixin)
in l3_dvr_db (L3_NAT_with_dvr_db_mixin) to reorder the garbage
collection to after the floating ip is updated and rpc called.
This was previously being called in the (already) overridden
_update_fip_assoc.

Since this call is moved, the _update_fip_assoc for l3_dvr_db
is exactly the same as l3_db and is thus removed completely.

This tidy up was created whilst looking at bug 1381617. The
intention was to mitigate the timing issues exposed by [1]
and discussed in the bug report. It seems the problem persists
with more discussion around 'properly fixing' this at [2].

[1] https://review.openstack.org/#/c/102700/
[2] https://review.openstack.org/#/c/130414/4

Change-Id: I24cef57bf394ceeb931ff48fa67f18218c734b00

9 years agoMerge "enable F402 check for flake8"
Jenkins [Tue, 28 Oct 2014 11:53:30 +0000 (11:53 +0000)]
Merge "enable F402 check for flake8"

9 years agoUse RPC instead of neutron client in metadata agent
Oleg Bondarev [Wed, 27 Aug 2014 11:19:18 +0000 (15:19 +0400)]
Use RPC instead of neutron client in metadata agent

RPC is a standard way of interacting between Neutron server and agents
Using neutron client is also  inefficient as it results in unneeded
keystone load and may become a bottleneck at scale

DocImpact
When upgrading, one should upgrade neutron server first,
then metadata agent. However there is a fallback in case
metadata agent fails to get info from server by rpc -
it will return to using neutron client.

Closes-Bug: #1092043

Change-Id: Ib75568643e6062543c0ff8cf80fba1b40b4fe82f

9 years agoAdd assertion to test_page_reverse method
Wlodzimierz Borkowski [Sat, 25 Oct 2014 12:59:24 +0000 (14:59 +0200)]
Add assertion to test_page_reverse method

In neutron/tests/unit/test_api_v2.APIv2TestCase.test_page_reverse
there is no second call to test_case with 'page_reverse': 'False,
because of use assert_called_once_with.
In proposed change before second testcase, reset_mock is called.
Remove also second 'instance' initialization.

Closes-Bug: #1373126
Change-Id: I552b7b47456a1cdfccdeb8d7853ec3395317097a

9 years agoMerge "Ensure test_agent_manager handles random hashseeds"
Jenkins [Tue, 28 Oct 2014 08:56:05 +0000 (08:56 +0000)]
Merge "Ensure test_agent_manager handles random hashseeds"

9 years agoMerge "Enable no-name-in-module pylint check"
Jenkins [Tue, 28 Oct 2014 08:46:01 +0000 (08:46 +0000)]
Merge "Enable no-name-in-module pylint check"

9 years agoMerge "Remove XML support"
Jenkins [Tue, 28 Oct 2014 03:31:48 +0000 (03:31 +0000)]
Merge "Remove XML support"

9 years agoMerge "Fix 'Length too long' error in neutron-dsvm-functional tests"
Jenkins [Tue, 28 Oct 2014 02:05:25 +0000 (02:05 +0000)]
Merge "Fix 'Length too long' error in neutron-dsvm-functional tests"

9 years agoMerge "Adds an option to enable broadcast replies to Dnsmasq"
Jenkins [Mon, 27 Oct 2014 23:46:06 +0000 (23:46 +0000)]
Merge "Adds an option to enable broadcast replies to Dnsmasq"

9 years agoMerge "_update_router_db: don't hold open transactions"
Jenkins [Mon, 27 Oct 2014 16:02:04 +0000 (16:02 +0000)]
Merge "_update_router_db: don't hold open transactions"

9 years agoAdds an option to enable broadcast replies to Dnsmasq
Itzik Brown [Tue, 2 Sep 2014 07:02:22 +0000 (10:02 +0300)]
Adds an option to enable broadcast replies to Dnsmasq

Adds a flag for DHCP agent configuration
to add dhcp-broadcast flag to Dnsmasq process
In order to support virtual network on top of Infiniband
Fabric, there is a requirement to receive DHCP response
via broadcast message (according to IB Spec).

DocImpact
Change-Id: I95329e535bacf14b650a8f37179ecd020b5bfafe
Closes-Bug: #1293953

9 years agoAdd advsvc role to neutron policy file
Kyle Mestery [Wed, 18 Jun 2014 11:04:52 +0000 (11:04 +0000)]
Add advsvc role to neutron policy file

Add in a default "advsvc" user and the logic in the Neutron policy
infrastructure which will allow this user to create/get/update/delete
ports on other tenants networks, as well as view other tenants
networks. This is for the use case of letting advanced services have
a user to put ports on other tenants networks. By default, we do not
define any roles for the policy "context_is_advsvc", but rely on
operators to specify the likely value of "role advsvc".

DocImpact

Closes-Bug: #1331836

Change-Id: I94cb3383eb1fed793934719603f888dbbdbbd85a
Co-Authored-By: Susanne Balle <sleipnir012@gmail.com>
9 years agoNSX: allow multiple networks with same vlan on different phy_net
Aaron Rosen [Mon, 8 Sep 2014 23:07:15 +0000 (16:07 -0700)]
NSX: allow multiple networks with same vlan on different phy_net

Previously, the NSX plugin prevented one from creating multiple networks on
the same vlan even if they were being created on different physical_networks.
This patch corrects this issue and allows this to now occur.

Closes-bug: 1367034

Change-Id: I343449648304328dffdd5ba070491e05686ee22d

9 years agoMerge "Remove use_namespaces from RouterInfo Property"
Jenkins [Mon, 27 Oct 2014 09:49:00 +0000 (09:49 +0000)]
Merge "Remove use_namespaces from RouterInfo Property"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Mon, 27 Oct 2014 06:05:51 +0000 (06:05 +0000)]
Imported Translations from Transifex

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

Change-Id: I1e8aad9a1eb480438c4221b51b46e93485ee2d13