]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge tag '2014.2'
OpenStack Proposal Bot [Thu, 16 Oct 2014 13:13:49 +0000 (13:13 +0000)]
Merge tag '2014.2'

Neutron 2014.2

Change-Id: I55f4194a3d763d3ba64e6eeb672bb01b771aa05c

9 years agoMerge "Minor: remove unnecessary intermediate variable"
Jenkins [Thu, 16 Oct 2014 05:56:55 +0000 (05:56 +0000)]
Merge "Minor: remove unnecessary intermediate variable"

9 years agoMerge "Fix KeyError in dhcp_rpc when plugin.port_update raise exception"
Jenkins [Thu, 16 Oct 2014 05:43:38 +0000 (05:43 +0000)]
Merge "Fix KeyError in dhcp_rpc when plugin.port_update raise exception"

9 years agoMerge "Remove sslutils from openstack.common"
Jenkins [Wed, 15 Oct 2014 17:49:41 +0000 (17:49 +0000)]
Merge "Remove sslutils from openstack.common"

9 years agoMerge "Call DVR VMARP notify outside of transaction"
Jenkins [Wed, 15 Oct 2014 17:09:16 +0000 (17:09 +0000)]
Merge "Call DVR VMARP notify outside of transaction"

9 years agoMerge "remove E251 exemption from pep8 check"
Jenkins [Wed, 15 Oct 2014 10:33:22 +0000 (10:33 +0000)]
Merge "remove E251 exemption from pep8 check"

9 years agoFix KeyError in dhcp_rpc when plugin.port_update raise exception
Numan Siddique [Sat, 11 Oct 2014 12:08:05 +0000 (17:38 +0530)]
Fix KeyError in dhcp_rpc when plugin.port_update raise exception

KeyError exception is seen because of following reasons

* DhcpRpcCallback._port_action() is called by two functions
   -  DhcpRpcCallback.create_dchp_port()
   -  DhcpRpcCallback.update_dhcp_port()

* When create_dhcp_port() function calls _port_action(), the
  function argument 'port' will have the body as
  {'port': {'network_id': foo_network_id, 'fixed_ips': [..] ...}

* When update_dhcp_port() function calls _port_action(), the
  function argument 'port' will have the body as
  {'id': port_id, 'port': {{'port': {'network_id': foo_network_id,
            'fixed_ips': [..] ...}}

* If an exception occurs when _port_action() calls plugin.create_port(),
  network id is accessed as
  net_id = port['port']['network_id']

* If an exception occurs when _port_action() calls plugin.update_port(),
  network id is accessed as
  net_id = port['port']['network_id']
  which is causing the KeyError. network_id should have been accessed as
  net_id = port['port']['port']['network_id']

This patch fixes the issue by making the _port_action() take the
same port body. update_dhcp_port() insteading of passing the port_id
and port information in a single argument, it now adds port_id
in the port body itself.

Change-Id: I70b92fa20b421b05ca2053a9a57f62db726f7625
Closes-bug: #1378508

9 years agoMerge "Use EUI64 for IPv6 SLAAC when subnet is specified"
Jenkins [Wed, 15 Oct 2014 05:24:42 +0000 (05:24 +0000)]
Merge "Use EUI64 for IPv6 SLAAC when subnet is specified"

9 years agoMerge "Properly handle empty before/after notifications in l2pop code"
Jenkins [Wed, 15 Oct 2014 03:47:21 +0000 (03:47 +0000)]
Merge "Properly handle empty before/after notifications in l2pop code"

9 years agoMerge "Avoid constructing a RouterInfo object to get namespace name"
Jenkins [Wed, 15 Oct 2014 03:47:07 +0000 (03:47 +0000)]
Merge "Avoid constructing a RouterInfo object to get namespace name"

9 years agoMerge "ofagent: Fix a possible crash in arp responder"
Jenkins [Wed, 15 Oct 2014 03:46:39 +0000 (03:46 +0000)]
Merge "ofagent: Fix a possible crash in arp responder"

9 years agoMerge "Race for l2pop when ports go up/down on same host"
Jenkins [Wed, 15 Oct 2014 03:39:59 +0000 (03:39 +0000)]
Merge "Race for l2pop when ports go up/down on same host"

9 years agoCall DVR VMARP notify outside of transaction
Kevin Benton [Sat, 11 Oct 2014 10:42:47 +0000 (03:42 -0700)]
Call DVR VMARP notify outside of transaction

The dvr vmarp table update notification was being called inside
of the delete_port transaction in ML2, which can cause a yield
and lead to the glorious mysql/eventlet deadlock.

This patch moves it outside the transaction and adjusts it to
use an existing port dictionary rather than re-looking it up since
the port is now gone from the DB by the time it is called.

Closes-Bug: #1377241
Change-Id: I0b4dac61e49b2a926353f8478e421cd1a70be038

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 "Remove two sets that are not referenced" into proposed/juno
Jenkins [Tue, 14 Oct 2014 20:14:37 +0000 (20:14 +0000)]
Merge "Remove two sets that are not referenced" into proposed/juno

9 years agoremove E251 exemption from pep8 check
Mark McClain [Thu, 12 Jun 2014 00:44:43 +0000 (20:44 -0400)]
remove E251 exemption from pep8 check

This change removes the exemption for E251 by addressing unexpected spaces
around keyword/parameter equals

Change-Id: Iff17477e37bef2a97fc58a538d08bcfc35c67751
Partial-Bug: 1329017

9 years agoMerge "Forbid update of HA property of routers" into proposed/juno
Jenkins [Tue, 14 Oct 2014 17:04:45 +0000 (17:04 +0000)]
Merge "Forbid update of HA property of routers" into proposed/juno

9 years agoRace for l2pop when ports go up/down on same host
Vivekanandan Narasimhan [Tue, 23 Sep 2014 09:25:16 +0000 (02:25 -0700)]
Race for l2pop when ports go up/down on same host

With l2pop enabled, race exists in delete_port_postcommit
when both create/update_port and delete_port deal with
different ports on the same host, where such ports are
either the first (or) last on same network for that host.
This race happens outside the DB locking zones in
the respective methods of ML2 plugin.

To fix this, we have moved determination of
fdb_entries back to delete_port_postcommit and removed
delete_port_precommit altogether from l2pop mechanism
driver.  In order to accomodate dvr interfaces, we
are storing and re-using the mechanism-driver context
which hold dvr-port-binding information while
invoking delete_port_postcommit.  We loop through
dvr interface bindings invoking delete_port_postcommit
similar to delete_port_precommit.

Closes-Bug: #1372438
Change-Id: If0502f57382441fdb4510c81a89794f57a38e696

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 agoMinor: remove unnecessary intermediate variable
Kevin Benton [Tue, 14 Oct 2014 06:40:36 +0000 (23:40 -0700)]
Minor: remove unnecessary intermediate variable

Removes an unnecessary intermediary variable and an
unnecessary list extend operation that implied previous
list members where there weren't any. There should be no
functional change. This just improves readability slightly.

Change-Id: Ice412c29be083d82e055cc0bc45ed8b97c7628d0

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 agoUse EUI64 for IPv6 SLAAC when subnet is specified
Xu Han Peng [Fri, 20 Jun 2014 06:59:53 +0000 (14:59 +0800)]
Use EUI64 for IPv6 SLAAC when subnet is specified

This commit uses EUI64 for SLAAC and stateless IPv6 address
when subnet id in fixed_ip is specified.

After this patch, all the ports created on a subnet which has
ipv6_address_mod=slaac or ipv6_address_mod=dhcpv6-stateless
will use EUI64 as the address.
This patch also checks if fixed IP address is specified
for a IPv6 subnet with address mode slaac or dhcpv6-stateless
during creating or updating a port. If yes, raise InvalidInput
error to stop the port creation or update.

Remove unit test test_generated_duplicate_ip_ipv6 because
fixed_ip should not be specified for a slaac subnet.

Change-Id: Ie481cfb2f4313baf44bf1a838ebda374a5c74c6a
Closes-Bug: 1330826

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 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.

Closes-bug: #1232525

Change-Id: I0396e13d2f7c3789928e0c6a4c0a071b02d5ff17
(cherry picked from commit edb26bfcddf9d9a0e95955a6590d11fa7245ea2b)

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 agoAvoid constructing a RouterInfo object to get namespace name
Carl Baldwin [Fri, 10 Oct 2014 05:12:43 +0000 (05:12 +0000)]
Avoid constructing a RouterInfo object to get namespace name

Constructing a RouterInfo object just for a string concatenation is
inefficient and adds more dependence on the class which needs
refactoring.

Change-Id: Ibaf369d6ebe9285a0c845802def59bfa26ac0fd5

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 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
(cherry picked from commit 4e8a5b7de71ba6f8c050c424613c025310498940)

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 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
(cherry picked from commit 93012915a3445a8ac8a0b30b702df30febbbb728)

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
(cherry picked from commit 8a08a3cb47d0dd69d4aa2e8fa661d04054fe95ae)

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.

Partial-Bug: #1378952

Change-Id: I1650b0708af73ce63e92c55bc842607bb69efe60
(cherry picked from commit 67962943969bc737a3f680a0defc2fc9df03c429)

9 years agoMerge "Removed kombu from requirements" into proposed/juno
Jenkins [Thu, 9 Oct 2014 09:14:45 +0000 (09:14 +0000)]
Merge "Removed kombu from requirements" into proposed/juno

9 years agoMerge "Updated from global requirements" into proposed/juno
Jenkins [Thu, 9 Oct 2014 09:06:37 +0000 (09:06 +0000)]
Merge "Updated from global requirements" into proposed/juno

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 agoRemoved kombu from requirements
Ihar Hrachyshka [Thu, 7 Aug 2014 20:27:23 +0000 (22:27 +0200)]
Removed kombu from requirements

Since we've replaced oslo-incubator RPC layer with oslo.messaging, we
don't ship any code that uses kombu.

Change-Id: Ia8a74f1326ecd98c47cbe447f04d475bf61e19d3
(cherry picked from commit 424c7faa75d96950d80f49f20f5414d1a297af72)

9 years agoUpdated from global requirements
Ihar Hrachyshka [Mon, 6 Oct 2014 16:10:36 +0000 (16:10 +0000)]
Updated from global requirements

Change-Id: Ifb5cac5b1529fef7862f5a63a0d1592f5bcc01d0

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 agoImported Translations from Transifex
Kyle Mestery [Wed, 8 Oct 2014 03:39:47 +0000 (03:39 +0000)]
Imported Translations from Transifex

Change-Id: I67a0eec64c0e0513df3f3e9f1f3489086f6316f9

9 years agoMerge "Retry getting the list of service plugins" into proposed/juno
Jenkins [Thu, 9 Oct 2014 00:17:40 +0000 (00:17 +0000)]
Merge "Retry getting the list of service plugins" into proposed/juno

9 years agoMerge "Allow reading a tenant router's external IP" into proposed/juno
Jenkins [Wed, 8 Oct 2014 17:04:47 +0000 (17:04 +0000)]
Merge "Allow reading a tenant router's external IP" into proposed/juno

9 years agoMerge "Raise exception if ipv6 prefix is inappropriate for address mode" into propose...
Jenkins [Wed, 8 Oct 2014 16:56:49 +0000 (16:56 +0000)]
Merge "Raise exception if ipv6 prefix is inappropriate for address mode" into proposed/juno

9 years agoMerge "Add missing methods to NoopFirewallDriver" into proposed/juno
Jenkins [Wed, 8 Oct 2014 16:56:34 +0000 (16:56 +0000)]
Merge "Add missing methods to NoopFirewallDriver" into proposed/juno

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
(cherry picked from commit 1fd7dd99ca7e5e9736200360aa354cada7fb43ff)

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 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
(cherry picked from commit c7baaa068ed1d3c8b02717232edef60ba1b655f6)

9 years agoRaise exception if ipv6 prefix is inappropriate for address mode
Eugene Nikanorov [Sun, 24 Aug 2014 20:59:02 +0000 (00:59 +0400)]
Raise exception if ipv6 prefix is inappropriate for address mode

Address prefix to use with slaac and stateless ipv6 address modes
should be equal to 64 in order to work properly.
The patch adds corresponding validation and fixes unit tests
accordingly.

Change-Id: I6c344b21a69f85f2885a72377171f70309b26775
Closes-Bug: #1357084
(cherry picked from commit 0d8911115e1b722da2f1e92f444e53b22223ee32)

9 years agoRetry getting the list of service plugins
Derek Higgins [Fri, 12 Sep 2014 15:31:44 +0000 (16:31 +0100)]
Retry getting the list of service plugins

On systems that start both neutron-server and neutron-l3-agent together,
there is a chance that the first call to neutron will timeout. Retry upto
4 more times to avoid the l3 agent exiting on startup.

This should make the l3 agent a little more robust on startup but still
not ideal, ideally it wouldn't exit and retry periodically.

Change-Id: I2171a164f3f77bccd89895d73c1c8d67f7190488
Closes-Bug: #1353953
Closes-Bug: #1368152
Closes-Bug: #1368795
(cherry picked from commit e7f0b56d74fbfbb08a3b7a0d2da4cefb6fe2aa67)

9 years agoAdd missing methods to NoopFirewallDriver
Eugene Nikanorov [Mon, 15 Sep 2014 18:10:45 +0000 (22:10 +0400)]
Add missing methods to NoopFirewallDriver

The fix adds missing methods into generic Firewall class
and in NoopFirewall driver class.

Change-Id: I6402448075ed414434dc007f5c403fc85b6b1456
Closes-Bug: #1369685
Related-Bug: #1365806
(cherry picked from commit 9a6c073656a7e0b1a26b2bca0ba381489d04e322)

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 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 agoRemove sslutils from openstack.common
Julien Danjou [Tue, 7 Oct 2014 09:16:49 +0000 (11:16 +0200)]
Remove sslutils from openstack.common

This module has been imported but is not used. Let's remove it.

Change-Id: I0cafdb7ddc00ce58b0724cee293f5dad6f4a1817

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"