]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoRemove all mostly untranslated PO files
Andreas Jaeger [Thu, 22 May 2014 16:48:04 +0000 (18:48 +0200)]
Remove all mostly untranslated PO files

We now only import PO files that are at least 75 % translated,
so we can delete now all other PO files. The patch only
removes the mostly untranslated files. Once a file becomes mostly
translated, the bot will import it again.

This removes all languages besides en_US.

Change-Id: If1700477e01b8ccf515c140597f47caf2b81c803
Closes-Bug: #1317794

10 years agoMerge "Metaclass Python 3.x Compatibility"
Jenkins [Thu, 22 May 2014 15:42:59 +0000 (15:42 +0000)]
Merge "Metaclass Python 3.x Compatibility"

10 years agoMerge "NSX: get rid of the last Nicira/NVP bits"
Jenkins [Thu, 22 May 2014 15:25:04 +0000 (15:25 +0000)]
Merge "NSX: get rid of the last Nicira/NVP bits"

10 years agoMerge "Do not defer IPTables apply in firewall path"
Jenkins [Thu, 22 May 2014 14:39:47 +0000 (14:39 +0000)]
Merge "Do not defer IPTables apply in firewall path"

10 years agoNSX: get rid of the last Nicira/NVP bits
armando-migliaccio [Tue, 20 May 2014 21:21:36 +0000 (14:21 -0700)]
NSX: get rid of the last Nicira/NVP bits

These were kept for bw compatibility in Icehouse, but
these are removed in Juno.

The king is dead, long live the king!

DocImpact
Blueprint: nicira-plugin-renaming

Change-Id: I49d19fec90ba191ed5b895fac8a884070f52119e

10 years agoMerge "NSX: Do not extend fault map for network gateway ext"
Jenkins [Wed, 21 May 2014 23:16:47 +0000 (23:16 +0000)]
Merge "NSX: Do not extend fault map for network gateway ext"

10 years agoMerge "NSX: Do a single query for all gateway devices"
Jenkins [Wed, 21 May 2014 23:16:39 +0000 (23:16 +0000)]
Merge "NSX: Do a single query for all gateway devices"

10 years agoMake pid file locking non-blocking
Ryan Moe [Fri, 2 May 2014 20:08:45 +0000 (13:08 -0700)]
Make pid file locking non-blocking

fcntl.flock will block indefinitely if another process holds an exclusive
lock. A non-blocking flock operation will raise an error when a lock already
exists so we can fail immediately.

Closes-bug: 1315507
Change-Id: Icf97b1f8643157719b3d28ac2c0c1576a5069697

10 years agoDo not defer IPTables apply in firewall path
Rajesh Mohan [Wed, 21 May 2014 02:41:26 +0000 (19:41 -0700)]
Do not defer IPTables apply in firewall path

By default, iptables apply is deferred in L3 agent. For
external gateways, iptables is applied immediately (to
enable NAT for floating IP). Similarly, when firewall
is created/updated/deleted, iptable rules are applies
immediately.

Change-Id: I4f652a030ae23a71a2e20af2e8ef0ad5b882b80e
Closes-Bug: #1320775

10 years agoMetaclass Python 3.x Compatibility
Steven Gonzales [Mon, 12 May 2014 14:51:13 +0000 (07:51 -0700)]
Metaclass Python 3.x Compatibility

According to the OpenStack style guide
(http://docs.openstack.org/developer/hacking/),
for Python 3.x compatibility use "six.add_metaclass"
instead of " __metaclass__."

Closes-Bug: #1236648
Change-Id: I2f507a90ee08cc05bd764549002a4656c187b6fc

10 years agoMerge "Add missing translation support"
Jenkins [Wed, 21 May 2014 17:48:56 +0000 (17:48 +0000)]
Merge "Add missing translation support"

10 years agoMerge "Remove hard dependency on novaclient"
Jenkins [Wed, 21 May 2014 13:59:17 +0000 (13:59 +0000)]
Merge "Remove hard dependency on novaclient"

10 years agoMerge "Restore GARP by default for floating IPs"
Jenkins [Wed, 21 May 2014 13:58:52 +0000 (13:58 +0000)]
Merge "Restore GARP by default for floating IPs"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 21 May 2014 04:48:07 +0000 (04:48 +0000)]
Merge "Imported Translations from Transifex"

10 years agoRemove hard dependency on novaclient
Terry Wilson [Tue, 20 May 2014 15:58:32 +0000 (10:58 -0500)]
Remove hard dependency on novaclient

The nova notification patch introduces a hard dependency on
novaclient when it is a runtime-configurable dependency. The
import from novaclient should be conditional on the
appropriate nova notification options being enabled in the
config.

Change-Id: I2ef4bfa4d53afc7e8c800ad8e2a8737e117af238
Closes-Bug: #1321352

10 years agoProvide way to reserve dhcp port during failovers
Ed Bak [Fri, 7 Mar 2014 17:16:15 +0000 (17:16 +0000)]
Provide way to reserve dhcp port during failovers

This change provides a way to save the dhcp port when failing
over a network from one dhcp agent to another.  When a
dhcp-agent-network-remove is issued, the dhcp port device_id is
marked as reserved which causes it to not be deleted. When a
subsequent dhcp-agent-network-add is issued, the reserved port
is used and the device_id is corrected.  This is desirable
in order to maintain the dhcp port ip address so that dns doesn't
get impacted. Unit test added.

Change-Id: I531d7ffab074b01adfe186d2c3df43ca978359cd
Closes-Bug: #1288923

10 years agoMerge "Implement local ARP responder onto OVS agent"
Jenkins [Tue, 20 May 2014 14:41:56 +0000 (14:41 +0000)]
Merge "Implement local ARP responder onto OVS agent"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 20 May 2014 06:54:41 +0000 (06:54 +0000)]
Imported Translations from Transifex

Change-Id: I270dd8e25975d51b012976c669a2ea7fb626b22d

10 years agoMerge "Ensure tenant owns devices when creating a gateway"
Jenkins [Mon, 19 May 2014 22:54:44 +0000 (22:54 +0000)]
Merge "Ensure tenant owns devices when creating a gateway"

10 years agoMerge "Adding tenant-id while creating Radware ADC service"
Jenkins [Mon, 19 May 2014 22:49:20 +0000 (22:49 +0000)]
Merge "Adding tenant-id while creating Radware ADC service"

10 years agoMerge "Allow vlan type usage for OpenDaylight ml2"
Jenkins [Mon, 19 May 2014 22:47:07 +0000 (22:47 +0000)]
Merge "Allow vlan type usage for OpenDaylight ml2"

10 years agoMerge "Fix typos in ovs_neutron_agent.py"
Jenkins [Mon, 19 May 2014 22:23:59 +0000 (22:23 +0000)]
Merge "Fix typos in ovs_neutron_agent.py"

10 years agoMerge "NSX: do not raise on missing router during migration step"
Jenkins [Mon, 19 May 2014 22:05:35 +0000 (22:05 +0000)]
Merge "NSX: do not raise on missing router during migration step"

10 years agoImplement local ARP responder onto OVS agent
Édouard Thuleau [Mon, 6 Jan 2014 12:58:39 +0000 (13:58 +0100)]
Implement local ARP responder onto OVS agent

With ML2 plugin and l2-pop mechanism driver, it's possible to locally
answer to the ARP request of the VM and avoid ARP broadcasting emulation
on overlay which is costly.

When this functionality is enabled, the OVS flows logic evolves to [1].
This functionality was introduce in 2.1 OVS branch [2].

A README is added to describe l2-pop mechanism driver and the agents
particularities.

[1] https://wiki.openstack.org/wiki/Ovs-flow-logic#OVS_flows_logic_with_local_ARP_responder
[2] http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=f6c8a6b163af343c66aea54953553d84863835f7

DocImpact: New OVS agent flag 'arp_responder' set to false by default
Closes-Bug: #1237427
Change-Id: Ic28610faf2df6566d8d876fcd7aed333647970e2

10 years agoFix typos in ovs_neutron_agent.py
Chuck [Sat, 17 May 2014 20:06:56 +0000 (13:06 -0700)]
Fix typos in ovs_neutron_agent.py

Comments, doc strings, and log messages fixed

Closes-Bug: 1320547
Change-Id: I1cea722ef1839826bdfb12ff15226b97d2f217f9

10 years agoMerge "NSX: fix error when creating VM ports on subnets without dhcp"
Jenkins [Mon, 19 May 2014 18:39:02 +0000 (18:39 +0000)]
Merge "NSX: fix error when creating VM ports on subnets without dhcp"

10 years agoAllow vlan type usage for OpenDaylight ml2
Sam Hague [Fri, 2 May 2014 18:08:09 +0000 (14:08 -0400)]
Allow vlan type usage for OpenDaylight ml2

The initial OpenDaylight integration with Openstack did not support
vlan isolation so it was not included as a valid type. This change
adds the vlan type as allowed.

Also modified tests to include vlan as supported in the
check_segment().

DocImpact:
Use of VLANs with ML2 and the OpenDaylight mechanism driver
requires OpenDaylight Helium or newer to be installed.

Closes-Bug: #1315475
Change-Id: I52e3c9bfdc93b8786c58954beca105e7498e3f40

10 years agoMerge "Unit test cases for quota_db.py"
Jenkins [Mon, 19 May 2014 15:52:05 +0000 (15:52 +0000)]
Merge "Unit test cases for quota_db.py"

10 years agoNSX: do not raise on missing router during migration step
armando-migliaccio [Mon, 28 Apr 2014 21:18:06 +0000 (14:18 -0700)]
NSX: do not raise on missing router during migration step

Return None for missing router rather raising NotFound exception;
this is what the client code was expected to handle in the first
place.

Closes-bug: 1313918

Change-Id: I573770a69d0170b027fc990c29aaa87b1fc8eccc

10 years agoNSX: fix error when creating VM ports on subnets without dhcp
armando-migliaccio [Tue, 6 May 2014 01:39:55 +0000 (18:39 -0700)]
NSX: fix error when creating VM ports on subnets without dhcp

The error was caused by a missing LSN port (which is created when
the subnet is setup with dhcp enabled). Therefore, check the port
is in place before proceeding with the setup.

Change-Id: I658ead0c324a24ad3f061844ecac13cd3359d341
Closes-bug: 1316365

10 years agoAdd missing translation support
Gary Kotton [Thu, 1 May 2014 13:10:57 +0000 (06:10 -0700)]
Add missing translation support

Update a number of files to add missing translation support.

The patch adds a new hacking check - N320. This ensures that
all log messages, except debug ones, have translations.

A '# noqa' indicates that the validation will not be done on
the specific log message. This should be used in cases where
the translations do not need to be done, for example, the log
message is logging raw data.

Change-Id: I3e1fdd04d87b09dff50950b5e85f5cacfb29afdc
Closes-bug: #1314994

10 years agoMerge "Fix issubclass() hook behavior in PluginInterface"
Jenkins [Mon, 19 May 2014 10:10:53 +0000 (10:10 +0000)]
Merge "Fix issubclass() hook behavior in PluginInterface"

10 years agoMerge "LBaaS VIP doesn't work after delete and re-add"
Jenkins [Mon, 19 May 2014 10:10:33 +0000 (10:10 +0000)]
Merge "LBaaS VIP doesn't work after delete and re-add"

10 years agoMerge "Add mailmap entry"
Jenkins [Mon, 19 May 2014 09:54:08 +0000 (09:54 +0000)]
Merge "Add mailmap entry"

10 years agoRemove unused parameter
shihanzhang [Sat, 17 May 2014 09:07:33 +0000 (17:07 +0800)]
Remove unused parameter

Remove parameter agent_ip of _add_fdb_flow() and _del_fdb_flow()
Change-Id: I2df05026944bcfc446ce5a951df6696a95c2c663

10 years agoMerge "OVS lib defer apply doesn't handle concurrency"
Jenkins [Sat, 17 May 2014 16:14:30 +0000 (16:14 +0000)]
Merge "OVS lib defer apply doesn't handle concurrency"

10 years agoMerge "Corrected the syntax of port_update call to NVSD agent"
Jenkins [Sat, 17 May 2014 09:29:46 +0000 (09:29 +0000)]
Merge "Corrected the syntax of port_update call to NVSD agent"

10 years agoMerge "Performance improvement of router routes operations"
Jenkins [Sat, 17 May 2014 09:13:58 +0000 (09:13 +0000)]
Merge "Performance improvement of router routes operations"

10 years agoNSX: Do a single query for all gateway devices
Salvatore Orlando [Fri, 16 May 2014 15:12:18 +0000 (08:12 -0700)]
NSX: Do a single query for all gateway devices

When creating a network gateway, do a single query for all
gateway devices, rather than a distinct query for each device.

Change-Id: I9e66539eb36ae75d3dcdd8a9073d2a2f69447e98
Closes-Bug: 1320278

10 years agoAdd mailmap entry
Morgan Fainberg [Wed, 7 May 2014 19:10:48 +0000 (12:10 -0700)]
Add mailmap entry

Add mailmap entry for my email address

Change-Id: Ia46c28c86ef3f440556b1b027d2bf0a7f3e721c5

10 years agoNSX: Do not extend fault map for network gateway ext
Salvatore Orlando [Wed, 14 May 2014 14:23:55 +0000 (07:23 -0700)]
NSX: Do not extend fault map for network gateway ext

Most of the exceptions defined for this extension already extend
an exception-mapped class. This patch ensures this is true for
every exception and then removes the fault map extension code.

Change-Id: Ifdd9b6d3892cff2d076bdab3a2a1252923e3f85d
Closes-Bug: 1319423

10 years agoEnsure tenant owns devices when creating a gateway
Salvatore Orlando [Wed, 14 May 2014 22:15:05 +0000 (15:15 -0700)]
Ensure tenant owns devices when creating a gateway

This patch adds an ownership check in the create_gateway method.
This kind of check can hardly be enforced leveraging the policy engine.

Change-Id: Iffdc9c570d688f824374281b37efd23761883d26
Closes-Bug: 1319583

10 years agoMerge "Improve ODL ML2 Exception Handling"
Jenkins [Wed, 14 May 2014 21:17:44 +0000 (21:17 +0000)]
Merge "Improve ODL ML2 Exception Handling"

10 years agoMerge "Perform policy checks only once on list responses"
Jenkins [Wed, 14 May 2014 20:52:47 +0000 (20:52 +0000)]
Merge "Perform policy checks only once on list responses"

10 years agoMerge "Upgrade failure for DB2 at ml2_binding_vif_details"
Jenkins [Wed, 14 May 2014 16:07:02 +0000 (16:07 +0000)]
Merge "Upgrade failure for DB2 at ml2_binding_vif_details"

10 years agoCorrected the syntax of port_update call to NVSD agent
kedar kulkarni [Tue, 13 May 2014 06:31:52 +0000 (12:01 +0530)]
Corrected the syntax of port_update call to NVSD agent

The parameters passed to the agent rpc port_update call in
NVSD plugin were wrong. It is corrected now.

Change-Id: I9ec8f74695b6ca813ffad9e33502d9a2e0bd1f92
Closes-Bug: 1318909

10 years agoMerge "NSX: pass the right argument during metadata setup"
Jenkins [Wed, 14 May 2014 00:45:32 +0000 (00:45 +0000)]
Merge "NSX: pass the right argument during metadata setup"

10 years agoFix issubclass() hook behavior in PluginInterface
Roman Podoliaka [Wed, 16 Apr 2014 10:59:33 +0000 (13:59 +0300)]
Fix issubclass() hook behavior in PluginInterface

Currently, PluginInterface provides an issubclass() hook that returns
True for issubclass(A, B) call, if all abstract methods of B (stored
in B.__abstractmethods__) can be found in the A.__mro__ tuple of
classes. But there is an edge case, when B doesn't have any abstract
methods, which leads to issubclass(A, B) call returning True even if
A and B are not related all.

E.g. issubclass(NeutronPluginPLUMgridV2, NsxPlugin) returns True,
while these two are different core plugins. And it gets even more
trickier when superclasses are involved: e.g. SecurityGroupDbMixin is
a superclass of NsxPlugin, so depending on the fact whether the
python module with NsxPlugin class is imported or not,
issubclass(NeutronPluginPLUMgridV2, SecurityGroupDbMixin) will return
either False or True accordingly.

Closes-Bug: #1308489

Change-Id: I92711a00a19b89729ccdba9cbd8a2e7a2d2868ed

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Mon, 12 May 2014 06:54:01 +0000 (06:54 +0000)]
Imported Translations from Transifex

Change-Id: Id03cc0a2d92654f617cd99465f81c5523a016c96

10 years agoMerge "Allow DHCPv6 solicit from VM"
Jenkins [Mon, 12 May 2014 06:05:25 +0000 (06:05 +0000)]
Merge "Allow DHCPv6 solicit from VM"

10 years agoLBaaS VIP doesn't work after delete and re-add
LipingMao [Wed, 2 Apr 2014 07:34:31 +0000 (07:34 +0000)]
LBaaS VIP doesn't work after delete and re-add

When delete and re-add the same vip, we need to send gratuitous ARP
to flush the ARP cache in the Router.

Change-Id: Id97088abb95f4433a100abdae8c8726b3be42ed2
Closes-Bug: 1301165

10 years agoOVS lib defer apply doesn't handle concurrency
Édouard Thuleau [Mon, 3 Mar 2014 17:08:33 +0000 (18:08 +0100)]
OVS lib defer apply doesn't handle concurrency

The OVS lib deferred apply methods use a dict to save flows to add,
modify or delete when deffered apply is switched off.
If another thread adds, modifies or deletes flows on that dict during
another process called deffered_apply_off, its flows could be ignored.

This fix stash reference flows list and point the flows list to a new
cleared flows list. Then, it applies flows from the stashed flows list.

Closes-bug: #1263866
Change-Id: Ia3c6ce181e1599d1474da7eb944feff7d84f1d73

10 years agoMerge "ML2 VxlanTypeDriver: Synchronize of VxlanAllocation table"
Jenkins [Sat, 10 May 2014 09:42:00 +0000 (09:42 +0000)]
Merge "ML2 VxlanTypeDriver: Synchronize of VxlanAllocation table"

10 years agoMerge "Make plugin deallocation check optional"
Jenkins [Sat, 10 May 2014 07:15:52 +0000 (07:15 +0000)]
Merge "Make plugin deallocation check optional"

10 years agoMerge "eswitch_neutron_agent: Whitespace fixes in comments"
Jenkins [Sat, 10 May 2014 02:57:16 +0000 (02:57 +0000)]
Merge "eswitch_neutron_agent: Whitespace fixes in comments"

10 years agoMerge "Updated from global requirements"
Jenkins [Fri, 9 May 2014 22:46:23 +0000 (22:46 +0000)]
Merge "Updated from global requirements"

10 years agoMake plugin deallocation check optional
Maru Newby [Fri, 9 May 2014 22:24:45 +0000 (22:24 +0000)]
Make plugin deallocation check optional

The fix for memory leakage in the related bug added a check for plugin
deallocation that performed a call to gc.collect() after every test.
This had the side-effect of increasing test execution time by ~50%, so
this patch makes the check optional via an environment variable
(OS_CHECK_PLUGIN_DEALLOCATION).

It may make sense to create a periodic job that runs with the check
enabled, but otherwise the check can be used by developers for
debugging purposes.

Change-Id: I9ebe663abbc4e4ff3a62d807d5a3230c2ecccd07
Related-Bug: #1234857

10 years agoMerge "Add support to dynamically upload drivers in PLUMgrid plugin"
Jenkins [Fri, 9 May 2014 21:22:55 +0000 (21:22 +0000)]
Merge "Add support to dynamically upload drivers in PLUMgrid plugin"

10 years agoMerge "Ensure core plugin deallocation after every test"
Jenkins [Fri, 9 May 2014 21:22:47 +0000 (21:22 +0000)]
Merge "Ensure core plugin deallocation after every test"

10 years agoMerge "Big Switch: Check source_address attribute exists"
Jenkins [Fri, 9 May 2014 19:02:05 +0000 (19:02 +0000)]
Merge "Big Switch: Check source_address attribute exists"

10 years agoRestore GARP by default for floating IPs
Salvatore Orlando [Fri, 9 May 2014 10:05:46 +0000 (03:05 -0700)]
Restore GARP by default for floating IPs

Restore the default value of the send_arp_for_ha configuration
parameter to 3. This parameter was set to 0 by default to
prevent kernel crashes due to bug 1273386.

Change-Id: Idbdc6ff687734776ede45127878af6ad9b8b3ca1
Closes-Bug: 1317834

10 years agoEnsure core plugin deallocation after every test
Maru Newby [Wed, 7 May 2014 22:41:40 +0000 (22:41 +0000)]
Ensure core plugin deallocation after every test

The unit tests were previously consuming an excessive amount of memory
(4GB+) due to plugin instances persisting in memory.  Deallocation was
not possible where a combination of circular references and mocking
was involved.  This patch ensures that only NeutronManager holds a
plugin reference and that all other references are instances of
weakref.proxy.  Residual memory footprint for tox executed on a
12-core machine has been reduced to ~1.3GB.  Plugin deallocation is
validated at the end of each test to prevent regressions.

This change also includes fixes to unit tests that depended on plugin
instances persisting across tests.

Partial-Bug: #1234857
Change-Id: Ia1f868c2d206eb72ef77d290d054f3c48ab58c94

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 9 May 2014 02:24:03 +0000 (02:24 +0000)]
Updated from global requirements

Change-Id: I724ef5f13fd7444ea053bd29fbefda2f73897353

10 years agoMerge "Revert "Big Switch: Check source_address attribute exists""
Jenkins [Fri, 9 May 2014 02:22:49 +0000 (02:22 +0000)]
Merge "Revert "Big Switch: Check source_address attribute exists""

10 years agoMerge "NSX: ensure that no LSN is created on external networks"
Jenkins [Fri, 9 May 2014 02:22:41 +0000 (02:22 +0000)]
Merge "NSX: ensure that no LSN is created on external networks"

10 years agoMerge "Revert "Disable debug messages when running unit tests""
Jenkins [Fri, 9 May 2014 00:01:23 +0000 (00:01 +0000)]
Merge "Revert "Disable debug messages when running unit tests""

10 years agoMerge "Make VPNaaS 'InUse' exception more clear"
Jenkins [Fri, 9 May 2014 00:01:15 +0000 (00:01 +0000)]
Merge "Make VPNaaS 'InUse' exception more clear"

10 years agoBig Switch: Check source_address attribute exists
Kevin Benton [Thu, 8 May 2014 23:33:06 +0000 (16:33 -0700)]
Big Switch: Check source_address attribute exists

Check that the source_address attribute exists on
HTTPSConnection objects before referencing it since
it's not present on python 2.6 deployments. If it
does not exist, create a socket connection without
specifying the source.

Closes-Bug: #1316382
Change-Id: Ica10d23cc6de81ae56f711937f208c7321c77f36

10 years agoRevert "Big Switch: Check source_address attribute exists"
Kevin Benton [Thu, 8 May 2014 22:47:31 +0000 (15:47 -0700)]
Revert "Big Switch: Check source_address attribute exists"

This reverts commit 0dde14c0cd6ffea8ebff715342852ef17a9c0b70.

This fix only addressed part of the problem. The socket call
in python 2.6 does not accept an extra source address arg
either.

Change-Id: I4df4f66e9db0da1a8923ee37e918718f3bcf26ee
Partial-Bug: #1316382

10 years agoMerge "Drop service* tables only if they exist"
Jenkins [Thu, 8 May 2014 18:13:58 +0000 (18:13 +0000)]
Merge "Drop service* tables only if they exist"

10 years agoMerge "Remove duplicate module-rgx line in .pylintrc"
Jenkins [Thu, 8 May 2014 17:39:27 +0000 (17:39 +0000)]
Merge "Remove duplicate module-rgx line in .pylintrc"

10 years agoMerge "Reference new get_engine() method from wsgi.py"
Jenkins [Thu, 8 May 2014 17:29:23 +0000 (17:29 +0000)]
Merge "Reference new get_engine() method from wsgi.py"

10 years agoMerge "lbaas on a network without gateway"
Jenkins [Thu, 8 May 2014 16:58:31 +0000 (16:58 +0000)]
Merge "lbaas on a network without gateway"

10 years agoMerge "Fix H302 violations"
Jenkins [Thu, 8 May 2014 16:54:08 +0000 (16:54 +0000)]
Merge "Fix H302 violations"

10 years agoMerge "Remove explicit dependency on amqplib"
Jenkins [Thu, 8 May 2014 14:03:48 +0000 (14:03 +0000)]
Merge "Remove explicit dependency on amqplib"

10 years agoMerge "Start ping listener also for postgresql"
Jenkins [Thu, 8 May 2014 13:37:27 +0000 (13:37 +0000)]
Merge "Start ping listener also for postgresql"

10 years agoML2 VxlanTypeDriver: Synchronize of VxlanAllocation table
Eugene Nikanorov [Thu, 8 May 2014 11:19:02 +0000 (15:19 +0400)]
ML2 VxlanTypeDriver: Synchronize of VxlanAllocation table

At neutron startup VxlanTypeDriver syncs tunnel range from conf
to DB. In case multiple servers deployment restarting several
servers at the same time could lead to DB exceptions being thrown.
Need to synchronize between neutron servers by locking VxlanAllocation
table.

Change-Id: Idf9908f039070b9194612484603f592f1a8d74b8
Closes-Bug: #1307295

10 years agoStart ping listener also for postgresql
Salvatore Orlando [Thu, 8 May 2014 08:37:17 +0000 (01:37 -0700)]
Start ping listener also for postgresql

Make use of the automatic connection disposal for
PostgreSQL as well.

oslo-incubator commit: 4a591eaafe035fa3fd508c910f057bfa8ff51005

Change-Id: I6e6adb612968639dbc8deae31e5409aac44e340e
Closes-Bug: 1288438

10 years agoMerge "Database exception causes UnboundLocalError in linuxbridge-agent"
Jenkins [Thu, 8 May 2014 07:43:43 +0000 (07:43 +0000)]
Merge "Database exception causes UnboundLocalError in linuxbridge-agent"

10 years agoMerge "L3 RPC loop could delete a router on concurrent update"
Jenkins [Wed, 7 May 2014 15:32:39 +0000 (15:32 +0000)]
Merge "L3 RPC loop could delete a router on concurrent update"

10 years agoNSX: ensure that no LSN is created on external networks
armando-migliaccio [Tue, 6 May 2014 21:00:26 +0000 (14:00 -0700)]
NSX: ensure that no LSN is created on external networks

Logical Service Nodes (LSN) are those that provide dhcp
and metadata services to networks when the NSX plugin is
used without the openstack dhcp and metadata proxy
agents. External networks do not work with Neutron's
dhcp and metadata services, therefore there is no need
to provision a LSN in this case.

Added UT to avoid regression.

Closes-bug: #1316795

Change-Id: I3dab0c9cbecdd9296466c991d02d590d6bd5bd49

10 years agoMake VPNaaS 'InUse' exception more clear
Eugene Nikanorov [Tue, 6 May 2014 11:35:04 +0000 (15:35 +0400)]
Make VPNaaS 'InUse' exception more clear

In case IpSecPolicy or IKEPolicy is updated while VPN connection that uses it
is already established, IPsecPolicyInUse or IKEPolicuInUse is raised.
Need to clarify their messages to emphasize that policies can't be updated
because they are used by established connection.

Change-Id: I259f9b8bcff7f8ec13ac630285f6e881c6653309
Closes-Bug: #1315809

10 years agoRemove explicit dependency on amqplib
Dirk Mueller [Mon, 5 May 2014 15:45:43 +0000 (17:45 +0200)]
Remove explicit dependency on amqplib

kombu already depends on amqp or amqplib depending on its
version, and no explicit access to amqplib exists in neutron code.

Closes-Bug: #1317094
Change-Id: I5cf189d7173b732cba6df3f9b6aff1d2bb85cdfe

10 years agoRevert "Disable debug messages when running unit tests"
Ihar Hrachyshka [Wed, 7 May 2014 12:51:14 +0000 (14:51 +0200)]
Revert "Disable debug messages when running unit tests"

This reverts commit 56edda0d1840da1ccfcd7c35df397251ddb779db.

Another patch (commit-id: df96a03e6c74f1fceb4525900bca885307907b79) to
fix the same issue with less intrusive consequences was already merged
into master. There's still benefit to have debug logs if this does not
make gate jobs fail, so revert to previous setting value.

Related-Bug: 1316610
Change-Id: I9b57369027e1e43bed1bde4d971dee9fb7a26a47

10 years agoMerge "Allow test_l3_agent unit test to run individually"
Jenkins [Wed, 7 May 2014 05:48:55 +0000 (05:48 +0000)]
Merge "Allow test_l3_agent unit test to run individually"

10 years agoMerge "Disable debug messages when running unit tests"
Jenkins [Wed, 7 May 2014 05:36:13 +0000 (05:36 +0000)]
Merge "Disable debug messages when running unit tests"

10 years agoMerge "Big Switch: Check source_address attribute exists"
Jenkins [Wed, 7 May 2014 05:36:05 +0000 (05:36 +0000)]
Merge "Big Switch: Check source_address attribute exists"

10 years agoeswitch_neutron_agent: Whitespace fixes in comments
YAMAMOTO Takashi [Wed, 7 May 2014 03:45:32 +0000 (12:45 +0900)]
eswitch_neutron_agent: Whitespace fixes in comments

Change-Id: I81ac1e6240c28f1544ff9be61761a5c58135557c

10 years agoUpgrade failure for DB2 at ml2_binding_vif_details
Xuhan Peng [Thu, 24 Apr 2014 02:58:32 +0000 (10:58 +0800)]
Upgrade failure for DB2 at ml2_binding_vif_details

50d5ba354c23_ml2_binding_vif_details fails during upgrade
when DB2 is used as the DB backend of neutron because
Boolean type is not supported by DB2.

This fix uses "1" instead of "true" in sql when db2 is engine.
This fix also changes context creation to op.execute.

Change-Id: I82d2141007894342c634f2c5e62344e20d876d8f
Closes-Bug: 1311589

10 years agoRemove duplicate module-rgx line in .pylintrc
Adam Harwell [Mon, 5 May 2014 22:37:11 +0000 (17:37 -0500)]
Remove duplicate module-rgx line in .pylintrc

The correct neutron configuration will no longer be overwritten by
the old quantum configuration.

Change-Id: I4923ad4e35a5053966edb307587c72c0b684d149
Closes-Bug: 1316334

10 years agoDisable debug messages when running unit tests
Ihar Hrachyshka [Tue, 6 May 2014 13:52:35 +0000 (15:52 +0200)]
Disable debug messages when running unit tests

Some runs started to fail due to large sub_unit.log files. We should
reduce their size. The easy way to achieve this is to disable INFO
messages that are filling our logs.

Change-Id: I6b3d3a4498593b6b5635d7eded4f9f88c84e5da0
Closes-Bug: 1316610

10 years agoPerform policy checks only once on list responses
Salvatore Orlando [Mon, 7 Apr 2014 21:26:00 +0000 (14:26 -0700)]
Perform policy checks only once on list responses

The policy engine is currently being called for every attribute
of every resource to be returned by a list response. This is
harming the API performance; moreover such a high number of checks
is also unnecessary.

This patch therefore slightly changes the API logic so that list
response first determine the list of attributes which should be
returned querying the policy engine and then use this list for
all resource items to be returned.

To this aim a few methods in base.py needed to be refactored.
This patch also removes the routine check_if_exists from policy.py
and the related PolicyNotFound exception.

Finally, this patch also removes unnecessary admin_or_owner rules
when applied to attributes. This kind of rule indeed has no effect
anyway because of Neutron's ownership checks. The rules were removed
because this change won't allow anymore for having attribute-level
policies whose evaluation result depends on the resource value.

Implements blueprint faster-list-responses

Change-Id: I21b8273add5d5984f512ad94af5a99cf0b0a5d93

10 years agoAllow DHCPv6 solicit from VM
Xuhan Peng [Tue, 6 May 2014 10:05:00 +0000 (18:05 +0800)]
Allow DHCPv6 solicit from VM

DHCPv6 solicit UDP package is currently dropped because
there is no security group rule to allow it like IPv4.

This fix allows UDP DHCPv6 solicit from client port 546 to
server port 547. This fix also drops DHCP reply from VM.

Change-Id: I4941d401576e2c8bad37859d2cba227afde9e764
Closes-Bug: 1316515

10 years agoFix importing module in test_netscaler_driver
Jakub Libosvar [Tue, 6 May 2014 08:56:31 +0000 (10:56 +0200)]
Fix importing module in test_netscaler_driver

During H302 was introduced new bug importing package instead of module.
This patch is reverting back change on this file from
https://review.openstack.org/#/c/89628/5

Closes-Bug: #1316486
Change-Id: I7830fba6687655b133073ace75f32004e72ad650

10 years agoBig Switch: Check source_address attribute exists
Kevin Benton [Tue, 6 May 2014 01:57:46 +0000 (18:57 -0700)]
Big Switch: Check source_address attribute exists

Check that the source_address attribute exists on
HTTPSConnection objects before referencing it since
it's not present on python 2.6 deployments.

Closes-Bug: #1316382
Change-Id: Id82e70f124cba73c33737099027b5c61aea713bb

10 years agoL3 RPC loop could delete a router on concurrent update
Attila Fazekas [Sun, 4 May 2014 17:54:37 +0000 (19:54 +0200)]
L3 RPC loop could delete a router on concurrent update

routers_updated does not acquire any lock just updates
a set for future rpc loop processing.

The self.updated_routers can be changed by concurrent update
notification. If this change happens at the time around the
self.plugin_rpc.get_routers call, the additional routers
- by mistake - is considered as admin_state_up=false routers, which
 are safe to delete.

Creating a local copy of the updated_routers and preserve
the fresh updated_routers entries for the next _rpc_loop
operations.

Change-Id: Icc7377f9c29e248c3b34562465e859b15ecc2ec3
Closes-Bug: #1315467
Partial-Bug: #1253896

10 years agoAdding tenant-id while creating Radware ADC service
Evgeny Fedoruk [Mon, 5 May 2014 09:34:27 +0000 (02:34 -0700)]
Adding tenant-id while creating Radware ADC service

Adding tenant_id as a parameter when creating Radware ADC service

Changing unit tests to test the udated REST call resource
with tenant as a parameter

Change-Id: I7a3e9bfb492e847195031bb72ef15dae8769e91f
Closes-Bug: #1315815

10 years agoMerge "Fix H302 violations in plugins package"
Jenkins [Mon, 5 May 2014 09:32:57 +0000 (09:32 +0000)]
Merge "Fix H302 violations in plugins package"

10 years agoMerge "Fix H302 violations in unit tests"
Jenkins [Mon, 5 May 2014 08:29:01 +0000 (08:29 +0000)]
Merge "Fix H302 violations in unit tests"

10 years agoMerge "Optimize querying for security groups"
Jenkins [Mon, 5 May 2014 03:41:30 +0000 (03:41 +0000)]
Merge "Optimize querying for security groups"