]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoVPNaaS Cisco unit test clean-up
Paul Michali [Tue, 14 Oct 2014 22:18:15 +0000 (18:18 -0400)]
VPNaaS Cisco unit test clean-up

Removed unused args to mock side-effect function and duplicate
constant.

Change-Id: I5409ce86ccaab86213d65f757f19c1bdf9a66929
Closes-Bug: #1381221

9 years agoMerge "Remove an argument that is never used"
Jenkins [Tue, 14 Oct 2014 20:15:18 +0000 (20:15 +0000)]
Merge "Remove an argument that is never used"

9 years agoMerge "Catch exceptions in router rescheduler"
Jenkins [Tue, 14 Oct 2014 16:11:36 +0000 (16:11 +0000)]
Merge "Catch exceptions in router rescheduler"

9 years agoMerge "Handle unused set_context in L3NatTestCaseMixin.floatingip_with_assoc"
Jenkins [Tue, 14 Oct 2014 14:33:38 +0000 (14:33 +0000)]
Merge "Handle unused set_context in L3NatTestCaseMixin.floatingip_with_assoc"

9 years agoMerge "Big Switch: Don't clear hash before sync"
Jenkins [Tue, 14 Oct 2014 14:04:45 +0000 (14:04 +0000)]
Merge "Big Switch: Don't clear hash before sync"

9 years agoMerge "Update VPN logging to use new i18n functions"
Jenkins [Tue, 14 Oct 2014 13:07:03 +0000 (13:07 +0000)]
Merge "Update VPN logging to use new i18n functions"

9 years agoCatch exceptions in router rescheduler
Kevin Benton [Tue, 30 Sep 2014 02:33:06 +0000 (19:33 -0700)]
Catch exceptions in router rescheduler

Catch and log exceptions in router rescheduling loop
rather than just dying which would stop all future
router rescheduling attempts.

This prevents transient DB connectivity issues from
permanently breaking the rescheduler until the process
restarts.

Closes-Bug: #1375597
Change-Id: I2ab37847074fa6bbdd2b13fd03b8742996dcfc78

9 years agoHandle unused set_context in L3NatTestCaseMixin.floatingip_with_assoc
Elena Ezhova [Tue, 14 Oct 2014 06:12:59 +0000 (10:12 +0400)]
Handle unused set_context in L3NatTestCaseMixin.floatingip_with_assoc

set_context which is passed to floatingip_with_assoc method
is not passed further to self._make_floatingip.

Change-Id: Iecf2ad88e4bad5b1f8fd60668401863bdeecce8f
Closes-Bug: #1378756

9 years agoMerge "Arista L3 Ops is success if it is successful on one peer"
Jenkins [Tue, 14 Oct 2014 05:40:19 +0000 (05:40 +0000)]
Merge "Arista L3 Ops is success if it is successful on one peer"

9 years agoMerge "Do not assume order of lvm.tun_ofports set elements"
Jenkins [Tue, 14 Oct 2014 03:17:47 +0000 (03:17 +0000)]
Merge "Do not assume order of lvm.tun_ofports set elements"

9 years agoMerge "Add unique constraints in IPAvailabilityRange"
Jenkins [Mon, 13 Oct 2014 23:45:03 +0000 (23:45 +0000)]
Merge "Add unique constraints in IPAvailabilityRange"

9 years agoArista L3 Ops is success if it is successful on one peer
Sukhdev [Wed, 24 Sep 2014 22:57:15 +0000 (15:57 -0700)]
Arista L3 Ops is success if it is successful on one peer

This fix checks to see if Arista HW is
configured in MLAG (redundant) mode. If yes,
as long as operation is successful on one of the
paired switches, consider it successful.

Closes-bug: 1373652

Change-Id: If929d3fcc109b81f4cf071380a1645d403feb363

9 years agoAdd unique constraints in IPAvailabilityRange
rossella [Tue, 23 Sep 2014 16:09:09 +0000 (16:09 +0000)]
Add unique constraints in IPAvailabilityRange

first_ip, allocation_pool_id and last_ip, allocation_pool_id
should be unique in the table.
These constraints are essential to detect concurrent modifications
of the IpAvailabilityRange table if the SELECT ... FOR UPDATE
lock is removed

Change-Id: Iaf2288c0b6bf27e93c03691073d7f505ef24fdd3
Closes-bug: #1373015

9 years agoMerge "Forbid update of HA property of routers"
Jenkins [Mon, 13 Oct 2014 18:48:48 +0000 (18:48 +0000)]
Merge "Forbid update of HA property of routers"

9 years agoMerge "NSX: drop support to deprecated dist-router extension"
Jenkins [Mon, 13 Oct 2014 18:43:42 +0000 (18:43 +0000)]
Merge "NSX: drop support to deprecated dist-router extension"

9 years agoUpdate VPN logging to use new i18n functions
Andrew Boik [Fri, 10 Oct 2014 17:13:45 +0000 (13:13 -0400)]
Update VPN logging to use new i18n functions

For log messages in neutron/services/vpn and neutron/db/vpn, replace
_() marker functions with log-level-specific marker functions: _LI(),
_LW(), _LE() from oslo.i18n.

Also, remove _() functions for debug log messages as debug level log
messages should not be translated.

Change-Id: I07fcf25bb6344c47e74d6ee23f9bc08e4b560679
Closes-Bug: #1379811

9 years agoMerge "Teach DHCP Agent about DVR router interfaces"
Jenkins [Mon, 13 Oct 2014 13:41:16 +0000 (13:41 +0000)]
Merge "Teach DHCP Agent about DVR router interfaces"

9 years agoMerge "Updated from global requirements"
Jenkins [Sun, 12 Oct 2014 06:01:14 +0000 (06:01 +0000)]
Merge "Updated from global requirements"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Sat, 11 Oct 2014 22:33:01 +0000 (22:33 +0000)]
Updated from global requirements

Change-Id: Ib0c8c561427f141583d677e86a76cbfe4e2be606

9 years agoupdate the relative path of api_extensions_path
Yalei Wang [Sat, 11 Oct 2014 17:03:20 +0000 (01:03 +0800)]
update the relative path of api_extensions_path

the previous path 'unit/extensions' could not be found correctly.

Change-Id: Ic8e658e651e99e57d19f6c3390db89650600decd
Closes-Bug: 1379711

9 years agoMerge "Fix quota limit range validator"
Jenkins [Sat, 11 Oct 2014 08:12:54 +0000 (08:12 +0000)]
Merge "Fix quota limit range validator"

9 years agoNSX: drop support to deprecated dist-router extension
armando-migliaccio [Fri, 10 Oct 2014 22:28:55 +0000 (15:28 -0700)]
NSX: drop support to deprecated dist-router extension

The NSX plugin originally implemented its own 'dist-router' extension.
During the Juno timeframe the DVR extension was introduced and the NSX
plugin was ported to support both. At the same time 'dist-router' was
marked for removal in Kilo.

Now that Kilo opened, we can drop the deprecated one.

Change-Id: I7d6d2524ef6d5cb94a9e8514425a1a288eea7210

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Fri, 10 Oct 2014 16:08:14 +0000 (16:08 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "nit : missing a "%s" in a log message"
Jenkins [Fri, 10 Oct 2014 09:50:45 +0000 (09:50 +0000)]
Merge "nit : missing a "%s" in a log message"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Fri, 10 Oct 2014 06:42:51 +0000 (06:42 +0000)]
Imported Translations from Transifex

Change-Id: I674acacc96c2396c31658bab48a441dac56988b0

9 years agoMerge "Refactor _process_routers to handle a single router"
Jenkins [Thu, 9 Oct 2014 23:35:01 +0000 (23:35 +0000)]
Merge "Refactor _process_routers to handle a single router"

9 years agoMerge "Add Juno release milestone"
Jenkins [Thu, 9 Oct 2014 21:43:45 +0000 (21:43 +0000)]
Merge "Add Juno release milestone"

9 years agoMerge "Cisco N1kv: Remove vmnetwork delete REST call on last port delete"
Jenkins [Thu, 9 Oct 2014 21:37:19 +0000 (21:37 +0000)]
Merge "Cisco N1kv: Remove vmnetwork delete REST call on last port delete"

9 years agoMerge "Add database relationship between router and ports"
Jenkins [Thu, 9 Oct 2014 21:34:59 +0000 (21:34 +0000)]
Merge "Add database relationship between router and ports"

9 years agoRemove an argument that is never used
Carl Baldwin [Thu, 9 Oct 2014 20:33:23 +0000 (20:33 +0000)]
Remove an argument that is never used

This code was creating a dict with a gw_exists key.  I was curious to
know who was interested in receiving this information down the line.
However, no one is ever interested in that key.  It took me some time
to follow this through wondering what was going on and found only dead
ends.

Change-Id: I755d9628ab750b950b33f5dcf32ccf2a9b00800e

9 years agoRefactor _process_routers to handle a single router
Carl Baldwin [Thu, 2 Oct 2014 20:35:21 +0000 (20:35 +0000)]
Refactor _process_routers to handle a single router

The method _process_routers no longer handles multiple routers.  The
only caller of this method would construct a list of exactly one
router in order to make the call.  This made the for loop unnecessary.
The method's logic is too heavy for its current purpose.  This commit
removes much of the weight.

The use of the sets in this method is also no longer necessary.  It
became clear that all of it boiled down to "if the router is not
compatible with with this agent but it is known in router_info from
before then we need to remove it."  This is an exceptional condition
that shouldn't be handled in this method so I raise an exception and
handle it in process_router_update where other router removal is
handled.  Logging was added for this exceptional condition.

The eventlet pool was also obsolete.  It was used to spawn two methods
and there was a waitall at the end.  The other refactoring made it
clear that the two spawns were mutually exclusive.  There was only one
thread spawned for any given invocation of the method and the eventlet
pool is overkill.

Change-Id: Ibeac591b08565d10b2a9730e25a54f2cd11fc2bc
Closes-Bug: #1378398

9 years agoMerge "Remove two sets that are not referenced"
Jenkins [Thu, 9 Oct 2014 18:46:25 +0000 (18:46 +0000)]
Merge "Remove two sets that are not referenced"

9 years agoMerge "Remove all_routers argument from _process_routers"
Jenkins [Thu, 9 Oct 2014 18:46:10 +0000 (18:46 +0000)]
Merge "Remove all_routers argument from _process_routers"

9 years agoAdd Juno release milestone
Mark McClain [Thu, 9 Oct 2014 13:29:48 +0000 (13:29 +0000)]
Add Juno release milestone

Change-Id: Iea584b00329d9474c14847db958f8743d4058525
Closes-Bug: #1378855

9 years agoAdd database relationship between router and ports
Mark McClain [Wed, 8 Oct 2014 18:49:20 +0000 (18:49 +0000)]
Add database relationship between router and ports

Add an explicit schema relationship between a router and its ports. This
change ensures referential integrity among the entities and prevents orphaned
ports.

Change-Id: I09e8a694cdff7f64a642a39b45cbd12422132806
Closes-Bug: #1378866

9 years agoMerge "ML2 Cisco Nexus MD: Fix UT to send one create vlan message"
Jenkins [Thu, 9 Oct 2014 07:40:48 +0000 (07:40 +0000)]
Merge "ML2 Cisco Nexus MD: Fix UT to send one create vlan message"

9 years agoMerge "update ml2_migration to reflect optional methods"
Jenkins [Thu, 9 Oct 2014 01:10:41 +0000 (01:10 +0000)]
Merge "update ml2_migration to reflect optional methods"

9 years agoMerge "Modify the ProcessMonitor class to have one less config parameter"
Jenkins [Wed, 8 Oct 2014 23:15:51 +0000 (23:15 +0000)]
Merge "Modify the ProcessMonitor class to have one less config parameter"

9 years agoMerge "Updated from global requirements"
Jenkins [Wed, 8 Oct 2014 22:18:36 +0000 (22:18 +0000)]
Merge "Updated from global requirements"

9 years agoRemove all_routers argument from _process_routers
Carl Baldwin [Thu, 2 Oct 2014 17:02:59 +0000 (17:02 +0000)]
Remove all_routers argument from _process_routers

There is no code left that passes True to this argument.  It is dead
code and it should be removed.

Change-Id: I55f71a5c0b96e530e45f2a6463978e8611cbc537

9 years agoupdate ml2_migration to reflect optional methods
Mark McClain [Wed, 8 Oct 2014 19:38:19 +0000 (15:38 -0400)]
update ml2_migration to reflect optional methods

This change conditionally executes the schema methods for versions that
support them.

Change-Id: I8a51ac04e62dfcfe1e0a2e69a17664d154f0d1d7
Closes-Bug: #1378732

9 years agoDisable PUT for IPv6 subnet attributes
Henry Gessau [Wed, 8 Oct 2014 00:38:38 +0000 (20:38 -0400)]
Disable PUT for IPv6 subnet attributes

In Juno we are not ready for allowing the IPv6 attributes on a subnet
to be updated after the subnet is created, because:
- The implementation for supporting updates is incomplete.
- Perceived lack of usefulness, no good use cases known yet.
- Allowing updates causes more complexity in the code.
- Have not tested that radvd, dhcp, etc. behave OK after update.

Therefore, for now, we set 'allow_put' to False for the two IPv6
attributes, ipv6_ra_mode and ipv6_address_mode. This prevents the
modes from being updated via the PUT:subnets API.

Closes-bug: #1378952

Change-Id: Id6ce894d223c91421b62f82d266cfc15fa63ed0e

9 years agoMerge "Skip IPv6 Tests in the OpenContrail plugin"
Jenkins [Wed, 8 Oct 2014 16:25:34 +0000 (16:25 +0000)]
Merge "Skip IPv6 Tests in the OpenContrail plugin"

9 years agoDo not assume order of lvm.tun_ofports set elements
Bradley Jones [Tue, 5 Aug 2014 16:55:44 +0000 (17:55 +0100)]
Do not assume order of lvm.tun_ofports set elements

This fixes the test_fdb_add_flows unit test that breaks with a randomized PYTHONHASHSEED
(see the bug report).

The test assumed that the lvm.tun_ofports set had
elements in a particular order. Found with PYTHONHASHSEED=2455351445 and
1595538922.

The fix sorts the actions output string so that it is always sorted when the
outputs are compared.

Partial-bug: #1348818

Note: There are several other unrelated unit tests that also break with a
randomized PYTHONHASHSEED, but they are not addressed here. They will be
addressed in separate patches.

Change-Id: I86b453a93f3ba09212709caf462cf3bfc5b21ee9

9 years agoSkip IPv6 Tests in the OpenContrail plugin
Sean M. Collins [Mon, 6 Oct 2014 19:47:24 +0000 (15:47 -0400)]
Skip IPv6 Tests in the OpenContrail plugin

Similar to the way we are skipping tests in the OneConvergence plugin,
introduced by Kevin Benton in 9294de441e684a81f6e802ba0564083f1ad319d6.

Change-Id: I1650b0708af73ce63e92c55bc842607bb69efe60

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

Change-Id: If47b1705e22a7c8b6a84991d6ae0e68d419cba26

9 years agoRemove two sets that are not referenced
Carl Baldwin [Wed, 8 Oct 2014 03:22:49 +0000 (03:22 +0000)]
Remove two sets that are not referenced

The code no longer references the updated_routers and removed_routers
sets.  This should have been cleaned up before but was missed.

Change-Id: I0396e13d2f7c3789928e0c6a4c0a071b02d5ff17

9 years agoMerge "Pythonified sanity_check.all_tests_passed"
Jenkins [Tue, 7 Oct 2014 23:34:02 +0000 (23:34 +0000)]
Merge "Pythonified sanity_check.all_tests_passed"

9 years agoMerge "Add comments to iptables rules to help debugging"
Jenkins [Tue, 7 Oct 2014 23:19:15 +0000 (23:19 +0000)]
Merge "Add comments to iptables rules to help debugging"

9 years agoForbid update of HA property of routers
Assaf Muller [Tue, 7 Oct 2014 19:45:41 +0000 (22:45 +0300)]
Forbid update of HA property of routers

While the HA property is update-able, and resulting router-get
invocations suggest that the router is HA, the migration
itself fails on the agent. This is deceiving and confusing
and should be blocked until the migration itself is fixed
in a future patch.

Change-Id: I4171ab481e3943e0110bd9a300d965bbebe44871
Related-Bug: #1365426
Closes-Bug: #1378525

9 years agoTeach DHCP Agent about DVR router interfaces
Brian Haley [Fri, 3 Oct 2014 21:32:01 +0000 (17:32 -0400)]
Teach DHCP Agent about DVR router interfaces

When DVR is enabled and enable_isolated_metadata=True,
the DHCP agent should only inject a metadata host route
when there is no port with the gateway IP address configured
on the subnet.  Add a check for DEVICE_OWNER_DVR_INTERFACE
when we look at each port's device_owner field, otherwise
it will always add this route to the opts file when DVR
is enabled.

Change-Id: I3ff3bb85105b8215b36535983016d8c0ff3d8cb7
Closes-bug: #1377307

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

Change-Id: I0e72933320ac6f49b55ef9782c6c19fb7e997bcb

9 years agoModify the ProcessMonitor class to have one less config parameter
Miguel Angel Ajo [Fri, 19 Sep 2014 16:59:58 +0000 (18:59 +0200)]
Modify the ProcessMonitor class to have one less config parameter

It's a follow up patch, as agreed on the ProcessMonitor review
patch to coalesce the check_child_processes parameter into
check_child_process_interval.

When this parameter is set to 0, the feature is disabled.

Change-Id: I2d4d8c6a6b7c17d42d8455c98968f75bcefbb689
Closes-Bug: 1371705

9 years agoBig Switch: Don't clear hash before sync
Kevin Benton [Tue, 7 Oct 2014 11:34:41 +0000 (04:34 -0700)]
Big Switch: Don't clear hash before sync

This patch removes the step of clearing the consistency
hash from the DB before a topology sync. This will ensure
that inconsistency will be detected if the topology sync
fails.

This logic was originally there to make sure the hash header
was not present on the topology sync call to the backend.
However, the hash header is ignored by the backend in a sync
call so it wasn't necessary.

Closes-Bug: #1379510
Change-Id: I2d58fa2aea3b692834d64192d06ace727c7df8a0

9 years agoMerge "Allow reading a tenant router's external IP"
Jenkins [Tue, 7 Oct 2014 02:33:45 +0000 (02:33 +0000)]
Merge "Allow reading a tenant router's external IP"

9 years agoMerge "Fix setup of Neutron core plugin in VPNaaS UT"
Jenkins [Tue, 7 Oct 2014 02:29:25 +0000 (02:29 +0000)]
Merge "Fix setup of Neutron core plugin in VPNaaS UT"

9 years agoMerge "Add admin tenant name to nova notifier"
Jenkins [Tue, 7 Oct 2014 00:58:31 +0000 (00:58 +0000)]
Merge "Add admin tenant name to nova notifier"

9 years agoMerge "Retry getting the list of service plugins"
Jenkins [Tue, 7 Oct 2014 00:47:21 +0000 (00:47 +0000)]
Merge "Retry getting the list of service plugins"

9 years agoMerge "Raise exception if ipv6 prefix is inappropriate for address mode"
Jenkins [Mon, 6 Oct 2014 23:34:00 +0000 (23:34 +0000)]
Merge "Raise exception if ipv6 prefix is inappropriate for address mode"

9 years agoMerge "Divide _cleanup_namespaces for easy extensibility"
Jenkins [Mon, 6 Oct 2014 16:03:58 +0000 (16:03 +0000)]
Merge "Divide _cleanup_namespaces for easy extensibility"

9 years agoMerge "L3 Agent should generate ns_name in a single place"
Jenkins [Mon, 6 Oct 2014 11:41:39 +0000 (11:41 +0000)]
Merge "L3 Agent should generate ns_name in a single place"

9 years agoMerge "Implement ModelsMigrationsSync test from oslo.db"
Jenkins [Mon, 6 Oct 2014 11:41:28 +0000 (11:41 +0000)]
Merge "Implement ModelsMigrationsSync test from oslo.db"

9 years agoMerge "Iterate over same port_id if more than one exists"
Jenkins [Mon, 6 Oct 2014 09:41:44 +0000 (09:41 +0000)]
Merge "Iterate over same port_id if more than one exists"

9 years agoDivide _cleanup_namespaces for easy extensibility
John Schwarz [Tue, 23 Sep 2014 12:24:47 +0000 (15:24 +0300)]
Divide _cleanup_namespaces for easy extensibility

This division of the function to 2 different functions allows for
easier overwriting in the l3 test agent used by the HA functional
tests, and later by the integration tests.

Related-bug: #1374947
Change-Id: I8f277759747c8a142f5c023aa3511b00a886348c

9 years agoL3 Agent should generate ns_name in a single place
John Schwarz [Tue, 23 Sep 2014 11:41:54 +0000 (14:41 +0300)]
L3 Agent should generate ns_name in a single place

Currently the l3 agent has 2 places where it allows generating ns_name
of specific router_ids (ie. qrouter-<router_id>): in the RouterInfo's
constructor, and in _cleanup_namespaces. This patch proposes a
unification of this creation code with a property which lives in
RouterInfo's namespace. A simpler fix was also made for snat_ns_name.

This patch also offers a single way to initialize a new RouterInfo.

Related-bug: #1374946
Related-bug: #1374947
Change-Id: Ia028236b73a22ff534acee00b46c86b134dc987e

9 years agoMerge "Removed kombu from requirements"
Jenkins [Sat, 4 Oct 2014 22:30:22 +0000 (22:30 +0000)]
Merge "Removed kombu from requirements"

9 years agoMerge "Add missing methods to NoopFirewallDriver"
Jenkins [Fri, 3 Oct 2014 23:44:20 +0000 (23:44 +0000)]
Merge "Add missing methods to NoopFirewallDriver"

9 years agoMerge "Don't fail when trying to unbind a router"
Jenkins [Fri, 3 Oct 2014 23:36:51 +0000 (23:36 +0000)]
Merge "Don't fail when trying to unbind a router"

9 years agoMerge "Disallow unsharing used firewall policy"
Jenkins [Fri, 3 Oct 2014 22:28:47 +0000 (22:28 +0000)]
Merge "Disallow unsharing used firewall policy"

9 years agoMerge "Fix sleep function call"
Jenkins [Fri, 3 Oct 2014 22:28:34 +0000 (22:28 +0000)]
Merge "Fix sleep function call"

9 years agoMerge "L3 agent should always use a unique CONF object"
Jenkins [Fri, 3 Oct 2014 22:26:09 +0000 (22:26 +0000)]
Merge "L3 agent should always use a unique CONF object"

9 years agoAdd comments to iptables rules to help debugging
Kevin Benton [Sat, 10 May 2014 04:54:39 +0000 (21:54 -0700)]
Add comments to iptables rules to help debugging

Adds comments to some of the iptables rules generated
by neutron to assist with debugging.

DocImpact

Partial-Bug: #1265493
Change-Id: I7d9e37b9a43589dd7b142869b86fa15cb3fb329c

9 years agoMerge "Open Kilo development"
Jenkins [Thu, 2 Oct 2014 17:19:42 +0000 (17:19 +0000)]
Merge "Open Kilo development"

9 years agonit : missing a "%s" in a log message
mathieu-rohon [Thu, 2 Oct 2014 15:25:16 +0000 (17:25 +0200)]
nit : missing a "%s" in a log message

Change-Id: I171cc14d7d9b3917dea90cd36dfec7e58afaf626

9 years agoL3 agent should always use a unique CONF object
John Schwarz [Mon, 29 Sep 2014 13:28:18 +0000 (16:28 +0300)]
L3 agent should always use a unique CONF object

The l3 agent accepts an oslo configuration in its constructor and uses
it throughout the code, but there are some references to the global
configuration object held by the oslo library. Since HA functional
tests need to create two agents, the configuration should be consistent
throughout the code.

The important difference between the agents is their 'host' value so
that they create different namespaces, and 'state_path' value so the
agents get their own filesystem root.

Co-Authored-By: Assaf Muller <amuller@redhat.com>
Related-bug: #1374946
Change-Id: I3326889482681dd631ca59271ebd6a5d5129ae70

9 years agoIterate over same port_id if more than one exists
John Schwarz [Thu, 18 Sep 2014 08:24:53 +0000 (11:24 +0300)]
Iterate over same port_id if more than one exists

In certain cases where multiple ports can have the same
external_ids:iface_id property, the ovs agent will arbitrarily choose
one and ignore the rest. In case the chosen port isn't on the
integration bridge the ovs agent is managing, an error is returned to
the calling function. This is faulty since one of the other ports may
belong to the correct bridge and it should be chosen instead.

This is interesting for future L3 HA integration tests, where 2
different instances of l3 agents are needed to run on the same machine.
In this case, both agents will register ports which have the same
iface_id property, but obviously only one of the ports is relevant for
each agent.

Closes-bug: #1370914
Related-bug: #1374947
Change-Id: I05d70417e0f78ae51a9ce377fc93a3f12046b313

9 years agoFix setup of Neutron core plugin in VPNaaS UT
Kevin Benton [Thu, 2 Oct 2014 08:16:46 +0000 (01:16 -0700)]
Fix setup of Neutron core plugin in VPNaaS UT

One of the VPNaaS unit test setup routines creates
and extension manager but passes it a class but it
should be passing an instance of that class.

Change-Id: I589cdda0674fdf8fa20d92c2609e1ba6966125d8

9 years agoremove openvswitch plugin
Mark McClain [Wed, 24 Sep 2014 04:00:54 +0000 (04:00 +0000)]
remove openvswitch plugin

This changeset removes the openvswitch plugin, but retains the agent for ML2
The database models were not removed since operators will need to migrate the
data.

Change-Id: I8b519cb2bbebcbec2c78bb0ec9325716970736cf
Closes-Bug: 1323729

9 years agoMerge "Fix pid file location to avoid I->J changes that break metadata"
Jenkins [Thu, 2 Oct 2014 03:26:58 +0000 (03:26 +0000)]
Merge "Fix pid file location to avoid I->J changes that break metadata"

9 years agoMerge "Update migration scripts to support DB2"
Jenkins [Thu, 2 Oct 2014 03:26:38 +0000 (03:26 +0000)]
Merge "Update migration scripts to support DB2"

9 years agoMerge "remove linuxbridge plugin"
Jenkins [Thu, 2 Oct 2014 03:26:22 +0000 (03:26 +0000)]
Merge "remove linuxbridge plugin"

9 years agoMerge "fix dvr snat bindings for external-gw-clear"
Jenkins [Wed, 1 Oct 2014 23:41:47 +0000 (23:41 +0000)]
Merge "fix dvr snat bindings for external-gw-clear"

9 years agoFix pid file location to avoid I->J changes that break metadata
Miguel Angel Ajo [Wed, 1 Oct 2014 13:16:19 +0000 (15:16 +0200)]
Fix pid file location to avoid I->J changes that break metadata

Changes in commit 7f8ae630b87392193974dd9cb198c1165cdec93b moved
pid files handled by agent/linux/external_process.py from
$state_path/external/<uuid>.pid  to $state_path/external/<uuid>/pid
that breaks the neutron-ns-metadata-proxy respawn after upgrades
becase the l3 or dhcp agent can't find the old pid file so
they try to start a new neutron-ns-metadata-proxy which won't
succeed, because the old one is holding the port already.

Closes-Bug: #1376128
Change-Id: Id166ec8e508aaab8eea35d89d010a5a0b7fdba1f

9 years agoDon't fail when trying to unbind a router
Ed Bak [Mon, 29 Sep 2014 20:15:52 +0000 (14:15 -0600)]
Don't fail when trying to unbind a router

If a router is already unbound from an l3 agent, don't fail.  Log
the condition and go on.  This is harmless since it can happen
due to a delete race condition between multiple neutron-server
processes.  One delete request can determine that it needs to
unbind the router.  A second process may also determine that it
needs to unbind the router.  The exception thrown will result
in a port delete failure and cause nova to mark a deleted instance
as ERROR.

Change-Id: Ia667ea77a0a483deff8acfdcf90ca84cd3adf44f
Closes-Bug: 1367892

9 years agoremove linuxbridge plugin
Mark McClain [Wed, 24 Sep 2014 01:50:06 +0000 (01:50 +0000)]
remove linuxbridge plugin

This changeset removes the linuxbridge plugin, but retains the agent for ML2.
The database models were not removed since operators will need to migrate the
data.

Additionally, the ml2 migration script was altered to support Juno.  For
testing, a user must either run the migration against the icehouse
scheme or run the update, manually change alembic_version to juno and
then run the migration script.  Once the juno migration is added, this
manually step will not be required.

Change-Id: I70689b4247947e6dc08e80fd9b31da9dc691d259
Partial-Bug: 1323729

9 years agoAllow reading a tenant router's external IP
Kevin Benton [Wed, 18 Jun 2014 19:03:01 +0000 (12:03 -0700)]
Allow reading a tenant router's external IP

Adds an external IPs field to the external gateway information
for a router so the external IP address of the router can be
read by the tenant.

DocImpact

Closes-Bug: #1255142
Change-Id: If4e77c445e9b855ff77deea6c8df4a0b3cf249d4

9 years agoMerge "ML2: move L3 cleanup out of network transaction"
Jenkins [Wed, 1 Oct 2014 09:08:12 +0000 (09:08 +0000)]
Merge "ML2: move L3 cleanup out of network transaction"

9 years agoFix sleep function call
Samer Deeb [Wed, 1 Oct 2014 06:55:21 +0000 (09:55 +0300)]
Fix sleep function call

Remove time.sleep method reference in class and use time.sleep directly.

Change-Id: Ib4c02061b29c0d584d603746a78ab50922f781c3
Closes-Bug: 1375698

9 years agoAdd admin tenant name to nova notifier
Erik Colnick [Wed, 18 Jun 2014 17:31:52 +0000 (11:31 -0600)]
Add admin tenant name to nova notifier

This change introduces the ability to use the nova admin
tenant name with the nova notifier in place of the nova
admin tenant id which may not be available when the neutron
service is being configured as is the case with tripleo
installations where the neutron service is configured and
started before the nova admin tenant has been configured in
keystone and thus does not have a known id.

DocImpact
Introduces the nova_admin_tenant_name configuration entry as
an optional configurable value in neutron.conf.  If the
nova_admin_tenant_name is configured and the nova_admin_tenanat_id
is not configured, a performance impact may be seen because
keystone will become involved in communication between neutron
and nova.

Change-Id: I33701d4dc9bf61595e44a49050c405ebca779091
Closes-Bug: #1331566

9 years agoML2: move L3 cleanup out of network transaction
Kevin Benton [Tue, 30 Sep 2014 03:21:23 +0000 (20:21 -0700)]
ML2: move L3 cleanup out of network transaction

Move _process_l3_delete out of the delete_network
transaction to eliminate the semaphore deadlock that
occurs when it tries to delete the ports associated
with existing floating IPs.

It makes more sense to live outside of the transaction
anyway because the operations it performs cannot be
rolled back only in the database if the L3 plugin makes
external calls for floating IP creation/deletion.
e.g. if delete_floatingip is successful, it may have
deleted external resources and restoring the DB records
would make things inconsistent.

If a failure to delete the network does occur, any cleanup
done by _process_l3_delete will not be reversed.

Closes-Bug: #1374573
Change-Id: I3ae7bb269df9b9dcef94f48f13f1bde1e4106a80

9 years agoOpen Kilo development
Thierry Carrez [Tue, 30 Sep 2014 14:46:54 +0000 (16:46 +0200)]
Open Kilo development

Bump pre-version to 2015.1 to formally open master branch to Kilo
development.

Change-Id: Ia48ad29dc1b31b1fbcb14dfffad571659ec66700

9 years agoML2 Cisco Nexus MD: Fix UT to send one create vlan message
Robert Pothier [Wed, 3 Sep 2014 15:09:15 +0000 (11:09 -0400)]
ML2 Cisco Nexus MD: Fix UT to send one create vlan message

With the commit of https://review.openstack.org/#/c/113009,
test_nexus_add_trunk needs to have the device_id set to
a unique value. Combining test_nexus_add_trunk and
test_nexus_enable_vlan_cmd to reduce duplicate code,
which fixes the original issue.

Change-Id: I4191a6880ec0f43365aacb638a92a0dd3e1e80aa
Closes-Bug: 1364976

9 years agoImplement ModelsMigrationsSync test from oslo.db
Ann Kamyshnikova [Wed, 19 Feb 2014 11:39:19 +0000 (15:39 +0400)]
Implement ModelsMigrationsSync test from oslo.db

Add tests to verify that database migrations produce
the same schema as the database models.

Also for MySQL, check that all tables are configured to use InnoDB
as the storage engine.
These tests make use of the ModelsMigrationsSync test class from
oslo.db and the load_tests protocol from Python unittest.

Closes-bug: #1346444

Change-Id: Ic0e7eb37c30cc5e94cbdbddf07a6dc1ebf377c17

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 30 Sep 2014 06:49:06 +0000 (06:49 +0000)]
Imported Translations from Transifex

Change-Id: Ie7ba4679ca128ff636b6bd841072dfd4b7e4236f

9 years agoMerge "Rename workers to api_workers and simplify code"
Jenkins [Mon, 29 Sep 2014 16:58:40 +0000 (16:58 +0000)]
Merge "Rename workers to api_workers and simplify code"

9 years agoMerge "Do not assume order of report list elements"
Jenkins [Mon, 29 Sep 2014 16:58:13 +0000 (16:58 +0000)]
Merge "Do not assume order of report list elements"

9 years agoUpdate migration scripts to support DB2
John Kasperski [Thu, 25 Sep 2014 15:38:45 +0000 (10:38 -0500)]
Update migration scripts to support DB2

Three of the migration scripts are causing failures with DB2.

- DB2 doesn't support nullable column in primary key

- Hard coded SQL statements which use False/True as Boolean arguments
  are not compatible with DB2. In DB2, Boolean columns are created as
  small integer with a constraint to allow only 0 & 1.

- Hardcoded update rows from other table sql is not compatible with DB2

- Foreign key constraints require additional handling

Co-authored-by: Rahul Priyadarshi <rahul.priyadarshi@in.ibm.com>
Change-Id: I82e2d1c522b81fed90a1e5cc6f2321f80797cf7b
Closes-Bug: #1328019

9 years agoDo not assume order of report list elements
johndavidge [Fri, 8 Aug 2014 11:48:59 +0000 (04:48 -0700)]
Do not assume order of report list elements

This fixes the test_report_multiple_services unit test that breaks with a
randomized PYTHONHASHSEED (see the bug report).

The test assumed that the report list from self.driver.report_status() had
elements in a particular order. Found with PYTHONHASHSEED=2455351445.

The fix refactors the test case to handle an unsorted report list by
sorting it before checking equality.

Partial-bug: #1348818

Note: There are several other unrelated unit tests that also break with a
randomized PYTHONHASHSEED, but they are not addressed here. They will be
addressed in separate patches.

Change-Id: I542c3818821fa2f6e460fd254a3842530ecea8d9

9 years agoDisallow unsharing used firewall policy
Koteswara Rao Kelam [Fri, 26 Sep 2014 11:34:11 +0000 (04:34 -0700)]
Disallow unsharing used firewall policy

When admin policy p1 is shared and is used by firewall f1 of different tenant,
then updating p1 with shared=False should not be allowed as it is in use.

Change-Id: I7c753f9d8a25a7edc40233316398475c8ad3efe9
Closes-bug: #1334994

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Mon, 29 Sep 2014 06:04:31 +0000 (06:04 +0000)]
Imported Translations from Transifex

Change-Id: I585e3df5504fcc071811e0ec9f925bc493584b2f