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

9 years agoMerge "enable E713 in pep8 tests"
Jenkins [Sun, 26 Oct 2014 08:35:41 +0000 (08:35 +0000)]
Merge "enable E713 in pep8 tests"

9 years agoMerge "Updated from global requirements"
Jenkins [Sun, 26 Oct 2014 08:35:26 +0000 (08:35 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "NSX: Make conn_idle_timeout configurable"
Jenkins [Sun, 26 Oct 2014 08:02:53 +0000 (08:02 +0000)]
Merge "NSX: Make conn_idle_timeout configurable"

9 years agoFix 'Length too long' error in neutron-dsvm-functional tests
Numan Siddique [Sat, 25 Oct 2014 10:59:52 +0000 (16:29 +0530)]
Fix 'Length too long' error in neutron-dsvm-functional tests

testr is occasionally failing with 'Length too long' for
neutron-dsvm-functional test cases.

The issue is seen when the size of the testr log file size goes into MBs.

(Please see the bug comments for the details on the testr logs)

This patch fixes the issue by disabling debug logs in the tests.

Change-Id: I48fc9d14f6886f86761038ee4d106fbbe59b6890
Closes-bug: #1382579

9 years agoMerge "Set vif_details to reflect enable_security_group"
Jenkins [Sat, 25 Oct 2014 02:10:40 +0000 (02:10 +0000)]
Merge "Set vif_details to reflect enable_security_group"

9 years agoRemove use_namespaces from RouterInfo Property
Carl Baldwin [Fri, 17 Oct 2014 04:13:49 +0000 (04:13 +0000)]
Remove use_namespaces from RouterInfo Property

The use_namespaces property is a property of the agent, not the
router.  The router doesn't need to know if namespaces are in use by
the agent.

Change-Id: I50a1069fc654eeaafaa4098d926ae9e96e5d400f

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 24 Oct 2014 16:15:05 +0000 (16:15 +0000)]
Updated from global requirements

Change-Id: Ia4292097571c0cb3d291071c90b229650e5e4c70

9 years agoRemove XML support
Mark McClain [Mon, 13 Oct 2014 20:38:43 +0000 (20:38 +0000)]
Remove XML support

XML support in Neutron has always been a second class feature to the
JSON API and broken for many extensions and outputs. The XML API been marked as
deprecated for the Icehouse and Juno release and is ready for removal in
Kilo.

Change-Id: I611aa9382ba3bfb08b2970c63e83b0fdd3d2e8a4
Closes-Bug: #1380787

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

The change removes the shadowed loop variables and enables F402 checking

Change-Id: I015797feec463ffb0b5e97229a6ec2c9a41df9de
Partial-Bug: 1329017

9 years agoMerge "Big Switch: Switch to TLSv1 in server manager"
Jenkins [Thu, 23 Oct 2014 21:20:45 +0000 (21:20 +0000)]
Merge "Big Switch: Switch to TLSv1 in server manager"

9 years agoenable E713 in pep8 tests
Mark McClain [Thu, 12 Jun 2014 00:53:18 +0000 (20:53 -0400)]
enable E713 in pep8 tests

This change update the code style to enable the E713 check (test for membership
should be â€˜not in’)

Partial-Bug: 1329017

Change-Id: I96f8b734db5964ef46d0911cb5f6e0b8c33c3119

9 years agoMerge "Remove duplicate import of constants module"
Jenkins [Thu, 23 Oct 2014 20:19:28 +0000 (20:19 +0000)]
Merge "Remove duplicate import of constants module"

9 years agoMerge "Ensure ofagent unit tests handles random hashseeds"
Jenkins [Thu, 23 Oct 2014 20:16:40 +0000 (20:16 +0000)]
Merge "Ensure ofagent unit tests handles random hashseeds"

9 years agoMerge "Move disabling of metadata and ipv6_ra to _destroy_router_namespace"
Jenkins [Thu, 23 Oct 2014 11:55:44 +0000 (11:55 +0000)]
Merge "Move disabling of metadata and ipv6_ra to _destroy_router_namespace"

9 years ago_update_router_db: don't hold open transactions
Kevin Benton [Thu, 16 Oct 2014 08:49:19 +0000 (01:49 -0700)]
_update_router_db: don't hold open transactions

This patch prevents the L3 _update_router_db method from
starting a transaction before calling the gateway interface
removal functions. With these port changes now occuring
outside of the L3 DB transaction, a failure to update the
router DB information will not rollback the port deletion
operation.

The 'VPN in use' check had to be moved inside of the DB deletion
transaction now that there isn't an enclosing transaction to undo
the delete when an 'in use' error is raised.

===Details===

The router update db method starts a transaction and calls
the gateway update method with the transaction held open.
This becomes a problem when the update results in an
interface removal which uses a port table lock.

Because the delete_port caller is still holding open a
transaction, other sessions are blocked from getting an
SQL lock on the same tables when delete_port starts
performing RPC notifications, external controller calls,
etc. During those external calls, eventlet will
yield and another thread may try to get a lock on the
port table, causing the infamous mysql/eventlet deadlock.

This separation of L2/L3 transactions is similiar to change
I3ae7bb269df9b9dcef94f48f13f1bde1e4106a80 in nature. Even
though there is a loss in the atomic behavior of the interface
removal operation, it was arguably incorrect to begin with.
The restoration of port DB records during a rollback after some
other failure doesn't undo the backend operations (e.g. REST calls)
that happened during the original deletion. So, having a delete
rollback without corresponding 'create_port' calls to the backend
causes a loss in consistency.

Closes-Bug: #1377241
Change-Id: I5fdb6b24bf2fb80ac5e36a742aa7056db72c8c7d

9 years agoBig Switch: Switch to TLSv1 in server manager
Kevin Benton [Wed, 22 Oct 2014 20:04:03 +0000 (13:04 -0700)]
Big Switch: Switch to TLSv1 in server manager

Switch to TLSv1 for the connections to the backend
controllers. The default SSLv3 is no longer considered
secure.

TLSv1 was chosen over .1 or .2 because the .1 and .2 weren't
added until python 2.7.9 so TLSv1 is the only compatible option
for py26.

Closes-Bug: #1384487
Change-Id: I68bd72fc4d90a102003d9ce48c47a4a6a3dd6e03

9 years agoMerge "Work toward Python 3.4 support and testing"
Jenkins [Wed, 22 Oct 2014 19:52:57 +0000 (19:52 +0000)]
Merge "Work toward Python 3.4 support and testing"

9 years agoOnly resync DHCP for a particular network when their is a failure
Terry Wilson [Thu, 16 Oct 2014 01:56:17 +0000 (20:56 -0500)]
Only resync DHCP for a particular network when their is a failure

The previous implementation will loop through and restart the dhcp
process for all active networks any time there is an exception calling
a dhcp driver function. This allows a tenant who can create an exception
to cause every dhcp process to restart. On systems with lots of networks
this can easily take longer than the default resync timeout leading to a
system that becomes unresponsive because of the load continually restarting
causes.

This patch restarts only dhcp processes related to the network on which
operations are failing. It should be noted that if there was some kind
of missed notification for a subnet update, the previous implementation
may have incidentally fixed it by restarting everything on the off
chance that something else caused an exception, but obviously relying
on that would be a bad idea as exceptions should be, well, exceptional.

Closes-bug: #1384402

Change-Id: I0b348a1657a7eb3a595f9bf6b217716a37ce38c6

9 years agoMerge "Remove superfluous except/re-raise"
Jenkins [Wed, 22 Oct 2014 16:35:14 +0000 (16:35 +0000)]
Merge "Remove superfluous except/re-raise"

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

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

Change-Id: I58db0476c810aa901463b07c42182eef0adb5114

9 years agoMerge "Fix race condition on processing DVR floating IPs"
Jenkins [Wed, 22 Oct 2014 05:55:29 +0000 (05:55 +0000)]
Merge "Fix race condition on processing DVR floating IPs"

9 years agoMerge "Remove redundant initialization and check from DVR RPC mixin"
Jenkins [Wed, 22 Oct 2014 02:49:03 +0000 (02:49 +0000)]
Merge "Remove redundant initialization and check from DVR RPC mixin"

9 years agoMerge "Improve performance of security group DB query"
Jenkins [Wed, 22 Oct 2014 01:50:00 +0000 (01:50 +0000)]
Merge "Improve performance of security group DB query"

9 years agoMerge "Cisco N1kv: Fix update network profile for add tenants"
Jenkins [Wed, 22 Oct 2014 00:29:30 +0000 (00:29 +0000)]
Merge "Cisco N1kv: Fix update network profile for add tenants"

9 years agoMerge "Moves the HA resource creations outside of transaction"
Jenkins [Wed, 22 Oct 2014 00:29:13 +0000 (00:29 +0000)]
Merge "Moves the HA resource creations outside of transaction"

9 years agoMerge "Updated from global requirements"
Jenkins [Wed, 22 Oct 2014 00:25:07 +0000 (00:25 +0000)]
Merge "Updated from global requirements"

9 years agoHyper-V: Remove useless use of "else" clause on for loop
Angus Lees [Thu, 21 Aug 2014 04:08:07 +0000 (14:08 +1000)]
Hyper-V: Remove useless use of "else" clause on for loop

"else" on for loops is only important if the loop contains a "break"
statement.  Without a "break", the else block is _always_ executed and
it is clearer just to omit "else".

This change also enables the corresponding pylint warning, now that the
only offending case has been fixed.

Change-Id: Ibe8761cb40a7d2d564aa718d62c9f383b5ad711e

9 years agoEnable no-name-in-module pylint check
Angus Lees [Tue, 21 Oct 2014 22:24:21 +0000 (09:24 +1100)]
Enable no-name-in-module pylint check

Add _MovedItems (from six.moves) to pylintrc ignored-modules, and adjust
one import of sqlalchemy.orm.properties.RelationshipProperty.

s.o.p.RelationshipProperty is created at import-time in a rather
exciting manner - rearranging the import in this way forces the
import-time code to be executed and seems sufficient to satisfy the
pylint static check.

Change-Id: Ic99dc2b7dfac75930a5c446ae899eaae09ee6174

9 years agoMove disabling of metadata and ipv6_ra to _destroy_router_namespace
Carl Baldwin [Mon, 20 Oct 2014 21:48:42 +0000 (21:48 +0000)]
Move disabling of metadata and ipv6_ra to _destroy_router_namespace

I noticed that disable_ipv6_ra is called from the wrong place and that
in some cases it was called with a bogus router_id because the code
made an incorrect assumption about the context.  In other case, it was
never called because _destroy_router_namespace was being called
directly.  This patch moves the disabling of metadata and ipv6_ra in
to _destroy_router_namespace to ensure they get called correctly and
avoid duplication.

Change-Id: Ia76a5ff4200df072b60481f2ee49286b78ece6c4
Closes-Bug: #1383495

9 years agoMerge "Check for VPN Objects when deleting interfaces"
Jenkins [Tue, 21 Oct 2014 17:37:57 +0000 (17:37 +0000)]
Merge "Check for VPN Objects when deleting interfaces"

9 years agoMerge "Modify docstring on send_delete_port_request in N1kv plugin"
Jenkins [Tue, 21 Oct 2014 17:37:37 +0000 (17:37 +0000)]
Merge "Modify docstring on send_delete_port_request in N1kv plugin"

9 years agoMerge "mock.assert_called_once() is not a valid method"
Jenkins [Tue, 21 Oct 2014 17:33:19 +0000 (17:33 +0000)]
Merge "mock.assert_called_once() is not a valid method"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 21 Oct 2014 12:11:19 +0000 (12:11 +0000)]
Updated from global requirements

Change-Id: Idcbd730f5c781d21ea75e7bfb15959c8f517980f

9 years agoMerge "Updated cache module and its dependencies"
Jenkins [Tue, 21 Oct 2014 10:22:56 +0000 (10:22 +0000)]
Merge "Updated cache module and its dependencies"

9 years agoRemove duplicate import of constants module
Angus Lees [Mon, 25 Aug 2014 02:14:29 +0000 (12:14 +1000)]
Remove duplicate import of constants module

.. and enable corresponding pylint check now the only offending instance
is fixed.

Change-Id: I35a12ace46c872446b8c87d0aacce45e94d71bae

9 years agoMerge "Updated service.py and its dependencies"
Jenkins [Tue, 21 Oct 2014 00:32:42 +0000 (00:32 +0000)]
Merge "Updated service.py and its dependencies"

9 years agotox.ini: Avoid using bash where unnecessary
YAMAMOTO Takashi [Fri, 17 Oct 2014 03:30:38 +0000 (12:30 +0900)]
tox.ini: Avoid using bash where unnecessary

Switch to sh, which is hopefully more ubiquitously available than bash.

A recent change (commit 085a35d657cf0fa41a402f2af66c4beaa0f60db2)
introduced bash dependency for "tox -e pep8".  It broke my environment,
where bash is not available.  This change aims to restore it.
As far as I undestand, the change in question doesn't actually need
the specific shell dialect.  So switch to sh, which is expected to be
available for any POSIX-like systems, would improve the situation.

Closes-Bug: #1382327
Change-Id: Ie023d2265d9949a3e3721f03e865e4acfb460de2

9 years agol2population_rpc: docstring improvements
YAMAMOTO Takashi [Fri, 17 Oct 2014 02:55:38 +0000 (11:55 +0900)]
l2population_rpc: docstring improvements

Closes-Bug: #1382319
Change-Id: I72284fbcb16ea2d94898adf357f226775a20d02a

9 years agoMerge "Empty files should not contain copyright or license"
Jenkins [Mon, 20 Oct 2014 23:13:52 +0000 (23:13 +0000)]
Merge "Empty files should not contain copyright or license"

9 years agoFix race condition on processing DVR floating IPs
rajeev [Mon, 13 Oct 2014 20:25:36 +0000 (16:25 -0400)]
Fix race condition on processing DVR floating IPs

Fip namespace and agent gateway port can be shared by multiple dvr routers.
This change uses a set as the control variable for these shared resources
and ensures that Test and Set operation on the control variable are
performed atomically so that race conditions do not occur among
multiple threads processing floating IPs.
Limitation: The scope of this change is limited to addressing the race
condition described in the bug report. It may not address other issues
such as pre-existing issue with handling of DVR floatingips on agent
restart.

closes-bug: #1381238

Change-Id: I6dc2b7bad6e8ddbaa86c1f7a1e2028aeacc3afef

9 years agoMerge "ofagent: Ignore unknown l2pop entry removals"
Jenkins [Mon, 20 Oct 2014 17:17:37 +0000 (17:17 +0000)]
Merge "ofagent: Ignore unknown l2pop entry removals"

9 years agoMerge "Compare subnet length as well when deleting DHCP entry"
Jenkins [Mon, 20 Oct 2014 17:13:06 +0000 (17:13 +0000)]
Merge "Compare subnet length as well when deleting DHCP entry"

9 years agoMerge "Drop sslutils and versionutils modules"
Jenkins [Mon, 20 Oct 2014 17:09:16 +0000 (17:09 +0000)]
Merge "Drop sslutils and versionutils modules"

9 years agoMerge "ofagent: Drop log level of tenant-triggerable events"
Jenkins [Mon, 20 Oct 2014 17:04:45 +0000 (17:04 +0000)]
Merge "ofagent: Drop log level of tenant-triggerable events"

9 years agoMerge "Updated fileutils and its dependencies"
Jenkins [Mon, 20 Oct 2014 15:54:12 +0000 (15:54 +0000)]
Merge "Updated fileutils and its dependencies"

9 years agoMerge "Reduce security group db calls to neutron server"
Jenkins [Mon, 20 Oct 2014 15:49:58 +0000 (15:49 +0000)]
Merge "Reduce security group db calls to neutron server"

9 years agoMerge "VPNaaS Cisco unit test clean-up"
Jenkins [Mon, 20 Oct 2014 15:45:38 +0000 (15:45 +0000)]
Merge "VPNaaS Cisco unit test clean-up"

9 years agoMerge "l3_agent: avoid name conflict with context"
Jenkins [Mon, 20 Oct 2014 15:43:37 +0000 (15:43 +0000)]
Merge "l3_agent: avoid name conflict with context"

9 years agoMerge "Schema enhancement to support MultiSegment Network"
Jenkins [Mon, 20 Oct 2014 15:30:54 +0000 (15:30 +0000)]
Merge "Schema enhancement to support MultiSegment Network"

9 years agoMerge "Refactor _make_subnet_dict to avoid issuing unnecessary queries"
Jenkins [Mon, 20 Oct 2014 14:25:43 +0000 (14:25 +0000)]
Merge "Refactor _make_subnet_dict to avoid issuing unnecessary queries"

9 years agoEnsure test_agent_manager handles random hashseeds
Sam Betts [Mon, 20 Oct 2014 09:59:13 +0000 (10:59 +0100)]
Ensure test_agent_manager handles random hashseeds

Several tests in test_agent_manager.py fail when tox is run using the
hashseed 2701526934, this is down to the nature of using dictionaries
and sets in Python causing some function calls and function arguments
to be out of order. This patch fixes this by either specifying that
assert_has_calls does not need to assert the order, just that the calls
were made, or by letting the unit test get affected in the same way as
the code, e.g. add variables to a dict so they are ordered by the python
hashing algorithms in the same way as they would be in the real code.

Change-Id: If83d1f33c187eab45c2a65fd50fd70cce011c9e7
Partial-Bug: 1348818

9 years agoEnsure ofagent unit tests handles random hashseeds
Bradley Jones [Mon, 20 Oct 2014 11:34:55 +0000 (12:34 +0100)]
Ensure ofagent unit tests handles random hashseeds

Several tests in test_ofa_neutron_agent.py and test_ofa_flows.py fail when
running the unit tests with hashseed 2701526934.

This patch fixes the failing unit tests by specifying that assert_has_calls does
not need to assert any order.

Change-Id: I48d6601130f7de1f6eeb7333a17eddd82e7acbdf
Partial-Bug: 1348818

9 years agoMerge "Optimize query in _select_dhcp_ips_for_network_ids"
Jenkins [Mon, 20 Oct 2014 10:27:29 +0000 (10:27 +0000)]
Merge "Optimize query in _select_dhcp_ips_for_network_ids"

9 years agoMerge "Only fetch port_id from SG binding table"
Jenkins [Mon, 20 Oct 2014 08:48:57 +0000 (08:48 +0000)]
Merge "Only fetch port_id from SG binding table"

9 years agoMoves the HA resource creations outside of transaction
Sylvain Afchain [Fri, 26 Sep 2014 13:49:43 +0000 (13:49 +0000)]
Moves the HA resource creations outside of transaction

Currently the HA resources are created in the
_create_router_db which includes calls to
the plugin and generates RPC calls. Even if the
resource creations are outside of any transaction
from the _create_router_db point of view, this
method is  called in a transaction from the
create_router method.
This patch moves the resource creations to the
create_router method outside the transaction.
The failures are handled as previously with
a try/expect.

Change-Id: If8fcfd012f8e992175e49bbefb2ae667881a620a
Closes-bug: #1374461

9 years agoModify docstring on send_delete_port_request in N1kv plugin
Peng Xiao [Mon, 20 Oct 2014 06:16:36 +0000 (14:16 +0800)]
Modify docstring on send_delete_port_request in N1kv plugin

N1kv plugin: Modify docstring on _send_delete_port_request method

Change-Id: I64d34878ffd8f6db703e4c1d9849032fef9bae96
Closes-Bug: #1381277

9 years agoEmpty files should not contain copyright or license
Weidong Shao [Thu, 21 Aug 2014 20:10:47 +0000 (20:10 +0000)]
Empty files should not contain copyright or license

Per instruction from
http://docs.openstack.org/developer/hacking/#openstack-licensing

Enable hacking check H104 in this CL.

Change-Id: I435b9d91877499ebe1e33435f06794164a0ecc34
Partial-Bug: #1262424

9 years agoRemove superfluous except/re-raise
Angus Lees [Mon, 20 Oct 2014 00:19:02 +0000 (11:19 +1100)]
Remove superfluous except/re-raise

This exception code catches all exceptions, and then always raises them
again.

More interestingly, it uses excutils.save_and_reraise_exception
incorrectly (outside a `with` statement), which triggers the pylint test
designed to catch exactly this.

Change-Id: Iab9d69944cbae5257682ac65ff2b8fba3ef7017e

9 years agoSchema enhancement to support MultiSegment Network
Romil Gupta [Mon, 30 Jun 2014 12:35:08 +0000 (05:35 -0700)]
Schema enhancement to support MultiSegment Network

Description:
Currently, there is nothing in the schema that ensures segments
for a network are returned in the same order they were specified
when the network was created, or even in a deterministic order.

Solution:
We need to add another field named 'segment_index' in
'ml2_network_segment' table containing a numeric position index.
With segment_index field we can retrieve the segments in the
order in which user created.

This patch set also fixes ML2 invalid unit test case in
test_create_network_multiprovider().

Closes-Bug: #1224978
Closes-Bug: #1377346

Change-Id: I560c34c6fe1c5425469ccdf9b8b4905c123d496d

9 years agoRemove redundant initialization and check from DVR RPC mixin
armando-migliaccio [Wed, 15 Oct 2014 06:25:58 +0000 (23:25 -0700)]
Remove redundant initialization and check from DVR RPC mixin

The initialization, as well as the recurrent checks on whether the agent
is able to handle DVR requests, are not necessary; this is because the
dvr_agent is going to be set at the time the L2 agent starts receiving
RPC messages.

Change-Id: I9caad965d0ff507e2ed93d6432997ad86139ac04

9 years agoMerge "DB: Only ask for MAC instead of entire port"
Jenkins [Sat, 18 Oct 2014 09:35:31 +0000 (09:35 +0000)]
Merge "DB: Only ask for MAC instead of entire port"

9 years agoMerge "openvswitch: Remove no longer used options"
Jenkins [Sat, 18 Oct 2014 09:02:02 +0000 (09:02 +0000)]
Merge "openvswitch: Remove no longer used options"

9 years agoMerge "Add pylint tox environment and disable all existing warnings"
Jenkins [Sat, 18 Oct 2014 08:57:58 +0000 (08:57 +0000)]
Merge "Add pylint tox environment and disable all existing warnings"

9 years agoImprove performance of security group DB query
Kevin Benton [Wed, 24 Sep 2014 12:23:32 +0000 (05:23 -0700)]
Improve performance of security group DB query

The _select_ips_for_remote_group method was joining the
IP allocation, port, allowed address pair, and security group tables
together in a single query. Additionally, it was loading all of
the port columns and using none of them. This resulted in a
very expensive query with no benefit.

This patch eliminates the unnecessary use of the port table by joining
the IP allocation table directly to the security groups and allowed
address pairs tables. In local testing of the method, this sped it up
by an order of magnitude.

Closes-Bug: #1373851
Change-Id: I12899413004838d2d22b691f1e2f3b18f7ec2c27