]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoLBaaS: when returning VIP include session_persistence even if None
Oleg Bondarev [Thu, 24 Oct 2013 09:59:10 +0000 (13:59 +0400)]
LBaaS: when returning VIP include session_persistence even if None

Closes-Bug: #1231915
Change-Id: I3dc5e17118995fb49dd381d08c9d92cb60b80abb

10 years agoMerge "Spawn arping in thread to speed-up floating IP"
Jenkins [Wed, 23 Oct 2013 21:23:38 +0000 (21:23 +0000)]
Merge "Spawn arping in thread to speed-up floating IP"

10 years agoMerge "change NetworkVxlanPortRangeError to base NeutronException"
Jenkins [Tue, 22 Oct 2013 19:52:30 +0000 (19:52 +0000)]
Merge "change NetworkVxlanPortRangeError to base NeutronException"

10 years agoMerge "Update send_arp_for_ha default in l3_agent.ini"
Jenkins [Tue, 22 Oct 2013 18:51:56 +0000 (18:51 +0000)]
Merge "Update send_arp_for_ha default in l3_agent.ini"

10 years agoUpdate send_arp_for_ha default in l3_agent.ini
Darragh O'Reilly [Mon, 21 Oct 2013 17:09:28 +0000 (17:09 +0000)]
Update send_arp_for_ha default in l3_agent.ini

The default for send_arp_for_ha was 3 and is now 0.
This patch changes the comment in l3_agent.ini to
show the new default.

Change-Id: I77370350ffee6ad7b94aa7db341c062ebc0b7d89

10 years agochange NetworkVxlanPortRangeError to base NeutronException
Yong Sheng Gong [Mon, 21 Oct 2013 15:34:53 +0000 (23:34 +0800)]
change NetworkVxlanPortRangeError to base NeutronException

Closes-Bug #1242756

Change-Id: I902fa12795cda5ca70defaeb3b6959e3a0824565

10 years agochange seld into self
Yong Sheng Gong [Mon, 21 Oct 2013 15:15:46 +0000 (23:15 +0800)]
change seld into self

Closes-Bug #1242745

Change-Id: If5cc2864dc966eacd4cf30757fd1de15d9992629

10 years agoMerge "Fix lb doesn't remove vxlan int. if no int. map"
Jenkins [Sat, 19 Oct 2013 21:17:33 +0000 (21:17 +0000)]
Merge "Fix lb doesn't remove vxlan int. if no int. map"

10 years agoMerge "Add error log for SystemExit in dhcp-agent"
Jenkins [Sat, 19 Oct 2013 20:04:46 +0000 (20:04 +0000)]
Merge "Add error log for SystemExit in dhcp-agent"

10 years agoMerge "Updated from global requirements"
OpenStack Jenkins [Sat, 19 Oct 2013 19:36:44 +0000 (19:36 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Fix to not send fdb updates when no port changes"
Jenkins [Sat, 19 Oct 2013 19:21:07 +0000 (19:21 +0000)]
Merge "Fix to not send fdb updates when no port changes"

10 years agoUpdated from global requirements
OpenStack Jenkins [Sat, 19 Oct 2013 15:38:27 +0000 (15:38 +0000)]
Updated from global requirements

Change-Id: Ica7315effe308bd739e90f885849fac27a3c542b

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 19 Oct 2013 06:34:33 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: If712213da453f2263b7c5f7fec5bf9f644f5b70a

10 years agoFix to not send fdb updates when no port changes
Sylvain Afchain [Fri, 18 Oct 2013 23:12:58 +0000 (01:12 +0200)]
Fix to not send fdb updates when no port changes

Fixes bug: 1241874
Change-Id: Ibba11db0d7972dfba819347f7cb1397e1d34f218

10 years agoMerge "avoid changing the rule's own action"
Jenkins [Fri, 18 Oct 2013 13:39:49 +0000 (13:39 +0000)]
Merge "avoid changing the rule's own action"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 18 Oct 2013 06:34:11 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: I682bf1fe6796b7bf894dc6e2968fe424b08178ff

10 years agoMerge "Set wsgi logger to use __name__"
Jenkins [Fri, 18 Oct 2013 04:42:51 +0000 (04:42 +0000)]
Merge "Set wsgi logger to use __name__"

10 years agoMerge "Fix L2pop to not send updates for unrelated networks"
Jenkins [Fri, 18 Oct 2013 01:41:19 +0000 (01:41 +0000)]
Merge "Fix L2pop to not send updates for unrelated networks"

10 years agoMerge "nvp:log only in rm router iface if port not found"
Jenkins [Fri, 18 Oct 2013 00:03:33 +0000 (00:03 +0000)]
Merge "nvp:log only in rm router iface if port not found"

10 years agoDetect and process live-migration in Cisco plugin
Baodong Li [Tue, 8 Oct 2013 15:19:32 +0000 (15:19 +0000)]
Detect and process live-migration in Cisco plugin

With Cisco/Nexus plugin, migration is not fully supported. Logic to detect
port binding change needs to be added in update_port(), and provisioning of
nexus switch(es) should be done accordingly

added test code for update_port() in the model layer and the db layer

Closes-Bug: #1229217

Change-Id: I2bd76030711c9d15462e91da9e4c0836a424834f

10 years agoSpawn arping in thread to speed-up floating IP
Brian Haley [Fri, 27 Sep 2013 14:57:40 +0000 (10:57 -0400)]
Spawn arping in thread to speed-up floating IP

Change _send_gratuitous_arp_packet() to spawn a thread to call
arping after a floating IP is assigned.  This way it doesn't
stall _process_routers() from returning quickly due to calling
pool.waitall().

Fixes Bug: 1233391

Change-Id: Id1f5eb75c222ba6a0935a294e3973292f50d0559

10 years agonvp:log only in rm router iface if port not found
Salvatore Orlando [Wed, 16 Oct 2013 22:11:34 +0000 (15:11 -0700)]
nvp:log only in rm router iface if port not found

The code currently raises when it's not able to find the port to be
deleted on the backend. This might happen, for instance, when the
port is manually removed or, in some cases, if port creation failed
in the first place.

There's little sense in raising when a resource to be removed is not
found; therefore this patch replaces the raise statement with a log
statement.

Bug 1240720

Change-Id: Ifa756b07ef41346a44325341c8e0e8994dc64dde

10 years agoavoid changing the rule's own action
Yong Sheng Gong [Thu, 17 Oct 2013 05:54:25 +0000 (13:54 +0800)]
avoid changing the rule's own action

fixes Bug #1240812

When iterating through the rule list, we should not change the rule itself.
So that we can use the rule data for the second router.

Change-Id: I613438507949007bec41416e7f8530693e4d5129

10 years agoFix L2pop to not send updates for unrelated networks
Sylvain Afchain [Wed, 16 Oct 2013 21:28:44 +0000 (23:28 +0200)]
Fix L2pop to not send updates for unrelated networks

With this patch L2 population mechanism driver
sends updates only with ports related to the
network id of the port which is being updated.

Fixes bug: 1240744
Change-Id: If7d51ce26bf0d0837a00da07fe85f48d55e681c6

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 17 Oct 2013 06:34:13 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: Ide68c511286feddf695153369c8bed007c528932

10 years agoFix lb doesn't remove vxlan int. if no int. map
Sylvain Afchain [Thu, 17 Oct 2013 00:16:15 +0000 (02:16 +0200)]
Fix lb doesn't remove vxlan int. if no int. map

LinuxBridge agent doesn't remove vxlan interfaces
if interface_mappings is not set.

Fixes bug: 1240742
Change-Id: I163f1ac8cbd46b8d8836152e2be8cb7608a8ca22

10 years agoMerge "Cleanup and make HACKING.rst DRYer"
Jenkins [Wed, 16 Oct 2013 17:17:12 +0000 (17:17 +0000)]
Merge "Cleanup and make HACKING.rst DRYer"

10 years agoMerge "Update Cisco N1KV plugin to VSM REST api calls"
Jenkins [Wed, 16 Oct 2013 15:42:47 +0000 (15:42 +0000)]
Merge "Update Cisco N1KV plugin to VSM REST api calls"

10 years agoMerge "Fix IP recycling on exhausted pool"
Jenkins [Wed, 16 Oct 2013 15:42:35 +0000 (15:42 +0000)]
Merge "Fix IP recycling on exhausted pool"

10 years agoMerge "use proxy mode on vxlan interface only when l2-population is activated"
Jenkins [Wed, 16 Oct 2013 15:31:21 +0000 (15:31 +0000)]
Merge "use proxy mode on vxlan interface only when l2-population is activated"

10 years agoFix IP recycling on exhausted pool
Salvatore Orlando [Wed, 16 Oct 2013 10:14:16 +0000 (03:14 -0700)]
Fix IP recycling on exhausted pool

When recycling an IP, allocation pools are loaded with an inner
join with ip avaiblity ranges. However, if the pool is exhausted,
there will be no availability ranges and the query will return
no results because of the inner join. It will therefore be
impossible to reuse IP addresses once the pool has been exhausted.

This patch tries to reload allocation pools without joining on
IP avaiability ranges if the first query did not return any result.
Replacing an inner join with an outer join will not be possible
as postgresql backend does not support 'SELECT ... FOR UPDATE' with
outer joins (for more info see bug 1215350).

The patch also contains unit tests for verifying IP are recycled
correctly even when the pool is exhausted.

Bug 1240353

Change-Id: I87f274bd759cb47be77717f0760d3704f9f34ade

10 years agoCleanup and make HACKING.rst DRYer
Keshava Bharadwaj [Wed, 16 Oct 2013 11:00:23 +0000 (16:30 +0530)]
Cleanup and make HACKING.rst DRYer

Reference the OpenStack hacking guide in HACKING.rst and remove
duplicate entries. Adds placeholder section for neutron specific
rules.

Change-Id: I4bfbab50b77e7592178dda44c7f4f52edc7fdc21

10 years agoMerge "Add port bindings to ports created in Midonet"
Jenkins [Wed, 16 Oct 2013 05:45:59 +0000 (05:45 +0000)]
Merge "Add port bindings to ports created in Midonet"

10 years agoMerge "Handle VLAN interfaces with Linux IP wrapper"
Jenkins [Wed, 16 Oct 2013 03:43:13 +0000 (03:43 +0000)]
Merge "Handle VLAN interfaces with Linux IP wrapper"

10 years agoMerge "Removing rpc communication from db transaction"
Jenkins [Wed, 16 Oct 2013 02:59:39 +0000 (02:59 +0000)]
Merge "Removing rpc communication from db transaction"

10 years agoUpdate Cisco N1KV plugin to VSM REST api calls
Abhishek Raut [Thu, 3 Oct 2013 06:32:02 +0000 (23:32 -0700)]
Update Cisco N1KV plugin to VSM REST api calls

Modify the existing REST calls from the plugin to VSM to update the
attributes and use UUIDs as index, instead of string names, for all
the resources.

Change-Id: Icb4950ea7c6f036e9a25ee79e3f5fe30d40f47de
Closes-Bug: 1233802

10 years agoSet wsgi logger to use __name__
Joe Gordon [Tue, 15 Oct 2013 01:46:14 +0000 (18:46 -0700)]
Set wsgi logger to use __name__

Although underneath this is the eventlet.wsgi.server server, Other
OpenStack projects, don't use that logger instead they use there own.

This will also mean the wsgi server will stop logging on just the
warning level.  We want wsgi server to at least log on info level
so it will log when a request is processed and what the return code is.

Change-Id: I96fd73b84b4550f85ad96030fea815376901813a

10 years agoMerge "Fix access to lifetime dict in update_ipsecpolicy method"
Jenkins [Tue, 15 Oct 2013 20:40:39 +0000 (20:40 +0000)]
Merge "Fix access to lifetime dict in update_ipsecpolicy method"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 15 Oct 2013 18:06:24 +0000 (18:06 +0000)]
Merge "Imported Translations from Transifex"

10 years agoHandle VLAN interfaces with Linux IP wrapper
Édouard Thuleau [Tue, 15 Oct 2013 15:41:32 +0000 (15:41 +0000)]
Handle VLAN interfaces with Linux IP wrapper

Check if the interface name contains '@' character and use the part
before that character as interface name.

Change-Id: I09eb52f4d41054a76fd140d3a3476c6cfe05226b
Closes-Bug: #1240125

10 years agoMerge "Avoid suppressing underlying error when deploy.loadapp fails"
Jenkins [Tue, 15 Oct 2013 15:15:45 +0000 (15:15 +0000)]
Merge "Avoid suppressing underlying error when deploy.loadapp fails"

10 years agoMerge "Add the option to minimize ovs l2 polling"
Jenkins [Tue, 15 Oct 2013 11:03:27 +0000 (11:03 +0000)]
Merge "Add the option to minimize ovs l2 polling"

10 years agoMerge "Improve ovs_lib bridge management"
Jenkins [Tue, 15 Oct 2013 11:00:34 +0000 (11:00 +0000)]
Merge "Improve ovs_lib bridge management"

10 years agoAdd error log for SystemExit in dhcp-agent
Hui HX Xiang [Sat, 12 Oct 2013 04:45:45 +0000 (21:45 -0700)]
Add error log for SystemExit in dhcp-agent

The SystemExit exception should be logged in dhcp-agent, the
operator may miss the useful exception messages to debug.

* Add error log for SystemExit in dhcp-agent.
* Add addCleanup(mock.patch.stopall) in setup()
* Remove teardown()
* Add unit test for None and nonexistent interface_driver.

Closes-Bug #1239030

Change-Id: I01bef69adecaaf8d8a919034d33c60a43e4469a7

10 years agoRemoving rpc communication from db transaction
Jakub Libosvar [Thu, 3 Oct 2013 17:45:09 +0000 (19:45 +0200)]
Removing rpc communication from db transaction

In a transaction context of ExtraRoute_db_mixin.update_router() was
called super method that uses subtransaction and communication with l3
agent. In case of agent's heartbeat happens while there is running
transaction, update heartbeat in agents table gets stuck in a deadlock.

Closes-Bug: #1211915
Change-Id: I96e6a9d7172d5a0e3e720a81fcd10f04c40aef07

10 years agoAdd port bindings to ports created in Midonet
Joe Mills [Thu, 3 Oct 2013 16:55:18 +0000 (01:55 +0900)]
Add port bindings to ports created in Midonet

Currently Midokura uses its own script (mm-ctl) to bind ports. However, support
for using this script is left out of the nova and neutron projects. This causes
confusion and makes deployments unnecessarily complicated for customers using
Havana. This fix is to change Neutron to properly set up port bindings to use
the "midonet" vif driver when creating a port. Corresponding changes will be
submitted to the devstack and Nova projects.

Change-Id: I91f2e4fe7135da0c22fb408081efdc63fff748df
Closes-Bug: 1235134

10 years agoMerge "Remove obsolete redhat-eventlet.patch"
Jenkins [Tue, 15 Oct 2013 08:11:11 +0000 (08:11 +0000)]
Merge "Remove obsolete redhat-eventlet.patch"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 15 Oct 2013 06:34:31 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: Iff70e2ff357cea655ec8ccf0374540db9ee47668

10 years agoUpdating address pairs with xml doesn't work
zhhuabj [Sat, 12 Oct 2013 09:31:38 +0000 (17:31 +0800)]
Updating address pairs with xml doesn't work

Below command can't work because list element
"allowed_address_pairs" hasn't been updated
into the varaiable "attr.PLURALS"
"neutron port-update <port-uuid> \
--allowed-address-pairs list=true type=dict \
ip_address=10.0.0.1 --request-format xml"

Change-Id: I0d7dcca5f4848bc968f5c86fbeb46569c70c8fcd
Closes-Bug: #1229954

10 years agoAdd the option to minimize ovs l2 polling
Maru Newby [Mon, 9 Sep 2013 10:06:49 +0000 (10:06 +0000)]
Add the option to minimize ovs l2 polling

This change adds the ability to monitor the local ovsdb for
interface changes so that the l2 agent can avoid unnecessary
polling.  Minimal changes are made to the agent so the risk
of breakage should be low.  Future efforts to make the agent
entirely event-based may be able to use OvsdbMonitor as a
starting point.

By default polling minimization is not done, and can only be
enabled by setting 'minimize_polling = True' in the ovs
section of the l2 agent's config file.

Closes-Bug: #1177973

Change-Id: I26c035b48a74df2148696869c5a9affae5ab3d27

10 years agoMerge "Add support for managing async processes"
Jenkins [Mon, 14 Oct 2013 22:18:49 +0000 (22:18 +0000)]
Merge "Add support for managing async processes"

10 years agoImprove ovs_lib bridge management
Maru Newby [Mon, 9 Sep 2013 09:58:12 +0000 (09:58 +0000)]
Improve ovs_lib bridge management

Add the ability to add and remove bridges, check for bridge
existence, and lookup the bridge associated with a port.

This change is in support of functional testing for an ovsdb
monitor.

Partial-Bug: #1177973

Change-Id: I419923d8d77983997cd347fcf063b0bc367c0bbc

10 years agoAvoid suppressing underlying error when deploy.loadapp fails
armando-migliaccio [Mon, 14 Oct 2013 19:37:24 +0000 (12:37 -0700)]
Avoid suppressing underlying error when deploy.loadapp fails

Raise log level at the first load attempt. If there is a
fundamental problem with the environment, a Lookup error
is not helpful in troubleshooting the problem further.

Fix bug 1210236

Change-Id: I55aa11a0e5a37dbef3f0c1b55aa4c9c11bbf55d9

10 years agoMerge "cisco/nexus plugin doesn't create port for router interface"
Jenkins [Mon, 14 Oct 2013 19:09:13 +0000 (19:09 +0000)]
Merge "cisco/nexus plugin doesn't create port for router interface"

10 years agoAdd support for managing async processes
Maru Newby [Mon, 9 Sep 2013 08:29:54 +0000 (01:29 -0700)]
Add support for managing async processes

Interacting with a long-running asynchronous process requires the
use of non-blocking io.  This change adds a helper class that can
launch a long-running process and read stdout and stderr in a
non-blocking fashion via eventlet.

This functionality is intended to support monitoring ovsdb via
a long-running and root-privileged invocation of ovsdb-client.

The complexity of the system interaction in this patch suggested
the addition of a functional test that validated actual behaviour.
The test was added under the neutron/tests/functional path which
is now included in the testr search path.

Partial-Bug: #1177973

Change-Id: I9969e556acecf7a9e77d873371cc2ec2647be011

10 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 14 Oct 2013 06:16:53 +0000 (06:16 +0000)]
Imported Translations from Transifex

Change-Id: Iaf08109b1abaeb5bea4489bd559da5224bcfbc5b

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 13 Oct 2013 06:16:45 +0000 (06:16 +0000)]
Imported Translations from Transifex

Change-Id: If1ba48b442712d6b5467df39abad0ce2e36a0a49

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 12 Oct 2013 06:17:15 +0000 (06:17 +0000)]
Imported Translations from Transifex

Change-Id: I7f3cd275f90661f52310abf0f353ed87a81f6db1

10 years agoMerge "Use L3 api from vpn ipsec driver via service plugin"
Jenkins [Sat, 12 Oct 2013 01:58:20 +0000 (01:58 +0000)]
Merge "Use L3 api from vpn ipsec driver via service plugin"

10 years agoMerge "DB migration upgrade/downgrade not employed for brocade-plugin"
Jenkins [Sat, 12 Oct 2013 01:47:04 +0000 (01:47 +0000)]
Merge "DB migration upgrade/downgrade not employed for brocade-plugin"

10 years agocisco/nexus plugin doesn't create port for router interface
Dane LeBlanc [Fri, 11 Oct 2013 21:07:00 +0000 (17:07 -0400)]
cisco/nexus plugin doesn't create port for router interface

Fixes bug 1234826

This fix adds a "nexus_l3_enable" configuration boolean for the
Cisco Nexus plugin. When this config boolean is set to False (default),
then the Nexus switches are only used for L2 switching/segmentation, and
layer 3 functionality is deferred to the OVS subplugin / network
control node. If this config boolean is set to True, layer 3
functionality, e.g. switch virtual interfaces, are supported on
the Nexus switches. (Note that layer 3 functionality is not supported
on all versions/models Nexus switches.)

Some other things addressed with this fix:
- The l3_port_check keyword argument which is optionally passed to the
  Cisco plugin's delete_port method was not being forwarded on to the
  OVS (sub) plugin. This keyword argument needs to be forwarded to OVS
  e.g. when the delete_port is being done in the context of a
  router interface delete (whereby l3_port_check==False).
- UT test cases are added for new "nexus_l3_enable" config, which
  exercise router interface add/delete.
- The Cisco test_network_plugin.py module is refactored/reorganized
  in order to cleanly add a new router interface test class.
- The test_model_update_port_rollback test case was yielding a false
  positive result (device_owner was not being passed to self.port).

Change-Id: I994b2b82769ea5e10e50dbe3a223d1518e99f714

10 years agoDB migration upgrade/downgrade not employed for brocade-plugin
Shiv Haris [Fri, 11 Oct 2013 23:27:53 +0000 (16:27 -0700)]
DB migration upgrade/downgrade not employed for brocade-plugin

Fixes bug: 1238921

Change-Id: I441d82a92588d7318a2f3b725643bc1b050a2c9c

10 years agoMerge "Fallback to Quota Conf Driver if Quotas table is not defined"
Jenkins [Fri, 11 Oct 2013 22:19:05 +0000 (22:19 +0000)]
Merge "Fallback to Quota Conf Driver if Quotas table is not defined"

10 years agoMerge "Fix auto-deletion of ports when deleting subnets in ML2"
Jenkins [Fri, 11 Oct 2013 21:21:04 +0000 (21:21 +0000)]
Merge "Fix auto-deletion of ports when deleting subnets in ML2"

10 years agoMerge "Fix migration"
Jenkins [Fri, 11 Oct 2013 21:20:01 +0000 (21:20 +0000)]
Merge "Fix migration"

10 years agoUse L3 api from vpn ipsec driver via service plugin
Nachi Ueno [Fri, 11 Oct 2013 18:46:32 +0000 (11:46 -0700)]
Use L3 api from vpn ipsec driver via service plugin

VPNaaS and ML2 plugin won't work, because ML2 plugin
supports service version of L3.
In this commit, we modify ipsec driver to use L3 plugin.
This is also backward compatible change, because if L2 plugin
supports L3 get_service_plugin API returns L2 plugin.

Fixes bug 1238846

Change-Id: I36e541bb2e3e1df2e01f73a74f3e9005af6c38b7
Note: Exsiting unit test covers this change

10 years agoFix migration
Ann Kamyshnikova [Fri, 11 Oct 2013 08:05:59 +0000 (12:05 +0400)]
Fix migration

In migration 338d7508968c_vpnaas_peer_address_ was mistake in
usage alter_column's parameter type_.

Closes-Bug: #1238561

Change-Id: I6e0eb8260cf5e8d8f557b174c7985e2f7ca1c912

10 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 11 Oct 2013 06:17:31 +0000 (06:17 +0000)]
Imported Translations from Transifex

Change-Id: Iadb02e0009605ba739d6c7e6ccbe1e62331f94fe

10 years agoMerge "Fixes port status hanging to build status"
Jenkins [Thu, 10 Oct 2013 22:13:30 +0000 (22:13 +0000)]
Merge "Fixes port status hanging to build status"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 10 Oct 2013 19:18:47 +0000 (19:18 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Correct the exception message"
Jenkins [Thu, 10 Oct 2013 19:18:38 +0000 (19:18 +0000)]
Merge "Correct the exception message"

10 years agoFix access to lifetime dict in update_ipsecpolicy method
Eugene Nikanorov [Thu, 10 Oct 2013 09:10:58 +0000 (13:10 +0400)]
Fix access to lifetime dict in update_ipsecpolicy method

Also add corresponding unit test.

Change-Id: Ie1141b5034415ccf3039a71dfedc47cfb2ca7a88
Closes-Bug: #1237912

10 years agoFixes port status hanging to build status
Petrut Lucian [Wed, 25 Sep 2013 17:07:01 +0000 (20:07 +0300)]
Fixes port status hanging to build status

ML2 plugin changes the port status to "build" when get_device_details
is called. For this reason, the port status must be updated once the
port details are processed.

Fixes bug: #1224991

Change-Id: I2c0321073cc07e1764fedbfbecbc844557ac6bc9

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 10 Oct 2013 06:16:46 +0000 (06:16 +0000)]
Imported Translations from Transifex

Change-Id: I923ac8886d037c4d4318fc29b5a9ad8a3367b88f

10 years agoMerge "Fix dhcp_release lease race condition"
Jenkins [Thu, 10 Oct 2013 04:39:02 +0000 (04:39 +0000)]
Merge "Fix dhcp_release lease race condition"

10 years agoMerge "Correct the typo %{edge_id)s"
Jenkins [Thu, 10 Oct 2013 04:23:58 +0000 (04:23 +0000)]
Merge "Correct the typo %{edge_id)s"

10 years agoFix auto-deletion of ports when deleting subnets in ML2
Bob Kukura [Thu, 3 Oct 2013 16:25:24 +0000 (12:25 -0400)]
Fix auto-deletion of ports when deleting subnets in ML2

When a subnet is deleted, certain ports referencing it are
auto-deleted. The implementation of NeutronDBPluginV2.delete_subnet()
does this at the DB level, so ML2's mechanism drivers were not being
called.

Ml2Plugin.delete_subnet() is changed to not use the base class's
method, and to auto-delete ports by calling its own delete_port()
method outside of the transaction. A loop avoids race conditions with
ports being asynchronously added to the subnet.

The logic in Ml2Plugin.delete_network() is also fixed to properly
handle auto-deleting ports and subnets, and debug logging is added to
the various delete methods.

Closes-Bug: 1234195
Partial-Bug: 1235486
Change-Id: I6d74f89d39ea8afe6915f1d2f9afdf66c0076f5a

10 years agoCorrect the exception message
YangLei [Wed, 9 Oct 2013 10:14:18 +0000 (18:14 +0800)]
Correct the exception message

Correct the exception message of class ServiceUnavailable

Change-Id: I8126a83df01199a5af32bd7742fcf0fa511bd598

10 years agoMerge "BigSwitch: correct net to backend on floating IP disassociation"
Jenkins [Thu, 10 Oct 2013 00:40:14 +0000 (00:40 +0000)]
Merge "BigSwitch: correct net to backend on floating IP disassociation"

10 years agoMerge "Add quota table in PLUMgrid plugin"
Jenkins [Wed, 9 Oct 2013 22:44:27 +0000 (22:44 +0000)]
Merge "Add quota table in PLUMgrid plugin"

10 years agoRemove obsolete redhat-eventlet.patch
Mark McLoughlin [Wed, 9 Oct 2013 20:47:48 +0000 (21:47 +0100)]
Remove obsolete redhat-eventlet.patch

See I62ce43a330d7ae94eda4c7498782a655e63747fa for the gorey details on
why this exists.

As of this fix:

  https://github.com/eventlet/eventlet/pull/34

which was released in eventlet 0.13, we no longer need the patch.

This has now been removed from oslo-incubator, so this is really just
syncing that removal.

Change-Id: I84267f3c6726cb2e750f615e107c48b12c6ed353

10 years agoBigSwitch: correct net to backend on floating IP disassociation
Kevin Benton [Wed, 9 Oct 2013 06:02:20 +0000 (23:02 -0700)]
BigSwitch: correct net to backend on floating IP disassociation

The corrects the network that is updated on the backendw when a
floating IP is disassociated. It was incorrectly sending the
tenant's network when the update is to the external network the
floating address belongs to.

Closes-Bug: #1237209
Change-Id: I55211ba3b0062e167843830bb318eb8e46249160

10 years agoMerge "Utilizes assertIn"
Jenkins [Wed, 9 Oct 2013 17:23:09 +0000 (17:23 +0000)]
Merge "Utilizes assertIn"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 9 Oct 2013 16:00:41 +0000 (16:00 +0000)]
Merge "Imported Translations from Transifex"

10 years agouse proxy mode on vxlan interface only when l2-population is activated
mathieu-rohon [Wed, 9 Oct 2013 09:13:04 +0000 (11:13 +0200)]
use proxy mode on vxlan interface only when l2-population is activated

the proxy mode was set by default on every vxlan interfaces
which leads to inaccessibility between VM that are not hosted
on the same host in a vxlan network

Closes-Bug: #1237082

Change-Id: I34028ee0bdfdccda61c6a29f58759259da060b68

10 years agoFallback to Quota Conf Driver if Quotas table is not defined
Akihiro MOTOKI [Wed, 9 Oct 2013 10:50:35 +0000 (19:50 +0900)]
Fallback to Quota Conf Driver if Quotas table is not defined

commit de15e0b9c5 enabled Quota DB driver default considering
production environments, but it breaks plugins without per-tenant
quota extension. In these plugin quotas tables is not loaded.

This commit fallbacks to ConfDriver if Quota model is not loaded by
checking neutron.db.quota_db which defines Quota model is imported.

Change-Id: Idaaaa9810598cfd3e5ce70020f498643b4819d16
Closes-Bug: #1236993

10 years agoCorrect the typo %{edge_id)s
YangLei [Wed, 9 Oct 2013 09:46:35 +0000 (17:46 +0800)]
Correct the typo %{edge_id)s

Use %(edge_id)s instead of %{edge_id)s.

Change-Id: Id8376ff8ec50e3022f9aca9b8954d8044d849f64

10 years agoMerge "Utilizes assertNotIn"
Jenkins [Wed, 9 Oct 2013 08:50:36 +0000 (08:50 +0000)]
Merge "Utilizes assertNotIn"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 9 Oct 2013 06:17:26 +0000 (06:17 +0000)]
Imported Translations from Transifex

Change-Id: I7ff99a23bc300d05d06ffa2d0ccc9f5742216155

10 years agoMerge "Raise ConfigFilesNotFoundError if CONF.api_paste_config not found"
Jenkins [Wed, 9 Oct 2013 05:33:17 +0000 (05:33 +0000)]
Merge "Raise ConfigFilesNotFoundError if CONF.api_paste_config not found"

10 years agoUtilizes assertIn
Zhongyue Luo [Wed, 25 Sep 2013 02:24:32 +0000 (10:24 +0800)]
Utilizes assertIn

Using assertTrue and the 'in' operator to test
if an element is in a sequence is too python2.4.
Our unit testing framework supports assertIn
which was created for these types of tests.

Fixes bug #1230028

Change-Id: I8a9147fa9982644067ff45c73e116d88845e47e3

10 years agoUtilizes assertNotIn
Zhongyue Luo [Fri, 6 Sep 2013 07:29:38 +0000 (15:29 +0800)]
Utilizes assertNotIn

Using assertTrue and the 'not in' operator to test
if an element is in a sequence is too python2.4.
Our unit testing framework supports assertNotIn
which was created for these types of tests.

Fixes bug #1230028

Change-Id: Ibaf6c73c514b9ad27f8f37eb3f1043e31dbfdcc1

10 years agoAdd quota table in PLUMgrid plugin
Edgar Magana [Tue, 8 Oct 2013 18:26:05 +0000 (11:26 -0700)]
Add quota table in PLUMgrid plugin

Quota DB driver is enabled in Neutron by default.
PLUMgrid plugin was missing the "quota" table. It has
been added in this commit.

Fix bug# 1236970

Change-Id: I5170a8be2b412a3bcf1edcacce5574f0073b84d4

10 years agoFix dhcp_release lease race condition
Aaron Rosen [Tue, 8 Oct 2013 19:24:21 +0000 (12:24 -0700)]
Fix dhcp_release lease race condition

There is a possible race condition when delete or updating fixed_ips
on ports where an instance could renew its ip address again after
dhcp_release has already been executed. To fix this, the order of
reload_allocation and release_lease need to be switched. This way an
instance will not be able to renew it's ip address after it is
removed from the host file.

Fixes bug: 1237028

Change-Id: If05ec2be507378c634f5c1856dab0fbd396f43cc

10 years agoMerge "Prevent L3 agent looping calls from hanging"
Jenkins [Tue, 8 Oct 2013 17:10:21 +0000 (17:10 +0000)]
Merge "Prevent L3 agent looping calls from hanging"

10 years agoMerge "Disassociate floating IPs from port on terminate"
Jenkins [Tue, 8 Oct 2013 15:20:35 +0000 (15:20 +0000)]
Merge "Disassociate floating IPs from port on terminate"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 8 Oct 2013 15:12:28 +0000 (15:12 +0000)]
Merge "Imported Translations from Transifex"

10 years agoPrevent L3 agent looping calls from hanging
Salvatore Orlando [Wed, 2 Oct 2013 19:14:14 +0000 (12:14 -0700)]
Prevent L3 agent looping calls from hanging

This patch adopts several measures to prevent _sync_routers_task
and _rpc_loop from hanging because of subprocess.Popen.communicate
not returning.

1) Perform a sleep everytime a command is completed, similarly to
what is done in openstack.common.processutils.execute
2) Disable by default GARP, as kernel crashes caused by arping
have been observed
3) Prevent a non-critical keyerror in _router_removed from triggering
again a full sync, which might put the system under significant load.

This patch also adds debug log statements aimed at improving the
ability of debugging similar failures.

Change-Id: I003316bce0f38b7d2ea7d563b5a0a58676834398
Partial-Bug: 1224001

10 years agoRaise ConfigFilesNotFoundError if CONF.api_paste_config not found
Arata Notsu [Mon, 7 Oct 2013 06:51:18 +0000 (15:51 +0900)]
Raise ConfigFilesNotFoundError if CONF.api_paste_config not found

Otherwise it shows an incomprehensible message
"'NoneType' object has no attribute 'startswith'."

Change-Id: I5d87c4ceac69b26730d63727a2ec3701ccc9cecb
Closes-bug: 1236182

10 years agoMerge "Set correct plugin support in Embrane based plugins"
Jenkins [Tue, 8 Oct 2013 08:21:39 +0000 (08:21 +0000)]
Merge "Set correct plugin support in Embrane based plugins"