]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "Updated fileutils and its dependencies"
Jenkins [Mon, 20 Oct 2014 15:54:12 +0000 (15:54 +0000)]
Merge "Updated fileutils and its dependencies"

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

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

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

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

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

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

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

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

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

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

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

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

Change-Id: I560c34c6fe1c5425469ccdf9b8b4905c123d496d

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

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

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

9 years agoOptimize query in _select_dhcp_ips_for_network_ids
Kevin Benton [Fri, 17 Oct 2014 04:27:47 +0000 (21:27 -0700)]
Optimize query in _select_dhcp_ips_for_network_ids

Only query the DB for relevant columns instead of
all of the port columns.

Partial-Bug: #1373851
Change-Id: I32cd4a0bc6799ce77cea13188676308e3e641d19

9 years agoUpdated fileutils and its dependencies
Ihar Hrachyshka [Tue, 14 Oct 2014 12:22:09 +0000 (14:22 +0200)]
Updated fileutils and its dependencies

This is to avoid fileutils dependency on excutils that are now moved to
oslo.utils.

The following changes are included:

* neutron/openstack/common/__init__.py
  6b048e7 Let oslotest manage the six.move setting for mox

 * neutron/openstack/common/_i18n.py
  9ce1d96 Fix i18n import
  5d40e14 Remove code that moved to oslo.i18n

 * neutron/openstack/common/fileutils.py
  6ff6b4b Switch oslo-incubator to use oslo.utils and remove old modules
  2b966f9 Fix deletion of cached file for policy enforcer
  9c88dc3 file_open: fixed docstring to refer to open() instead of file()
  6c7407b fileutils: port to Python 3
  fcf517d Update oslo log messages with translation domains

 * neutron/openstack/common/log.py
  6c706c5 Delete graduated serialization files
  5d40e14 Remove code that moved to oslo.i18n
  6ff6b4b Switch oslo-incubator to use oslo.utils and remove old modules
  aa74411 log: add missing space in error message
  037dee0 Set stevedore log level to WARN by default
  37c0091 Add unicode coercion of logged messages to ContextFormatter
  6614413 Correct coercion of logged message to unicode
  1188d88 Except socket.error if syslog isn't running
  ac995be Fix E126 pep8 errors
  631f880 Set keystonemiddleware and routes.middleware to log on WARN level
  726d00a Adjust oslo logging to provide adapter is enabled for
  433fa0b Make logging_context_format_string optional in log.set_defaults
  ac92c06 Add default log level for websocket
  5fd77eb Ability to customize default_log_levels for each project
  4d9328c Python 3: enable tests/unit/test_log.py
  cb5a804 Move `mask_password` to strutils

Note: cb5a804 is partially included; that's ok because we don't use the
moved function in Neutron.

Change-Id: I3bfcaff2620b368d807e9468bb7abc01d6471661

9 years agoDB: Only ask for MAC instead of entire port
Kevin Benton [Fri, 17 Oct 2014 04:24:07 +0000 (21:24 -0700)]
DB: Only ask for MAC instead of entire port

Optimize a query in _get_lla_gateway_ip_for_subnet
to only grab the column used instead of every column
in the port table.

Partial-Bug: #1373851
Change-Id: I5257e1e22645f3df9a77c0967b09a0ad0cf8b251

9 years agoOnly fetch port_id from SG binding table
Kevin Benton [Fri, 17 Oct 2014 04:21:15 +0000 (21:21 -0700)]
Only fetch port_id from SG binding table

Change a query to only retrieve the port_id instead of
every column from the row of security group binding info.

Partial-Bug: #1373851
Change-Id: I0fba9c9623898ee52590207ebbb728503bb59a5b

9 years agonsx plugin: keep old priority when reconnecting bad connection
Han Zhou [Thu, 16 Oct 2014 10:43:12 +0000 (10:43 +0000)]
nsx plugin: keep old priority when reconnecting bad connection

Change-Id: Id05012ec04d23a5eec8441fc85f87611e08271fd
Closes-Bug: #1381094

9 years agol3_agent: avoid name conflict with context
Isaku Yamahata [Thu, 16 Oct 2014 06:31:03 +0000 (15:31 +0900)]
l3_agent: avoid name conflict with context

module name, context, conflicts with argument name in many place in
l3_agent. In order to avoid such conflict, import context as n_context
following Neutron practice.

Change-Id: Ic3754818f84064d2c8da04914826fc912437b2f0
Closes-Bug: #1381900

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 agoRefactor _make_subnet_dict to avoid issuing unnecessary queries
Eugene Nikanorov [Sun, 28 Sep 2014 17:56:00 +0000 (21:56 +0400)]
Refactor _make_subnet_dict to avoid issuing unnecessary queries

Use joined loads for attributes dns_nameservers and host_routes.

As a result, particular scenarios like restarting DHCP agent
could benefit from improved server-side performance.

Change-Id: I6470356b601e2fcf74c7e0a6df438cef7099e9fe
Closes-Bug: #1374044

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 agoopenvswitch: Remove no longer used options
YAMAMOTO Takashi [Thu, 9 Oct 2014 00:04:34 +0000 (09:04 +0900)]
openvswitch: Remove no longer used options

They are remainders of the recently removed monolithic OVS plugin.
Note: This change does not touch options used by OVS agent.

Partial-Bug: #1323729
Change-Id: I6dd04c5c506ff5f97f10ebab03943cd508fbfe60

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 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 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 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 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 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 agoAdd pylint tox environment and disable all existing warnings
Angus Lees [Wed, 20 Aug 2014 03:38:14 +0000 (13:38 +1000)]
Add pylint tox environment and disable all existing warnings

pylintrc update disables all warnings that currently trigger on neutron
code.  The rough plan is to slowly re-enable warning categories as we
clean up code in question.

This change also includes a few ultra-trivial syntax cleanups where it
allowed the check to be immediately enabled for the rest of the
codebase:

- Added missing trailing newlines in several files
  (db/migration/__init__.py, nuage/{nuagedb,syncmanager,common/config}.py)
- Renamed self to cls in @classmethods
  (cisco/db/l3/device_handling_db.py)
- Removed whitespace around '=' in a kwarg
  (cisco/db/l3/device_handling_db.py, cisco/db/n1kv_db_v2.py)
- Updated deprecated pylint 'disable-msg' directive to newer 'disable'
  (cisco/extensions/qos.py)
- File-specific disable for too-many-format-args pending further
  investigation of alternatives
  (ml2/drivers/arista/arista_l3_driver.py)
- Import module rather than object and avoid long line
  (services/l3_router/l3_arista.py)

Change-Id: Ifb0a1a38e33f9073a78658ca578fbd2a42747724

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 agoReduce security group db calls to neutron server
ZHU ZHU [Fri, 5 Sep 2014 08:01:07 +0000 (03:01 -0500)]
Reduce security group db calls to neutron server

Within ovs agent daemon loop, prepare_devices_filter will impose heavy workloads
to neutron server in order to retrieve the security groups message to apply
firewall rules. If agent is configured to use Noopfirewall driver or security
groups are disabled, there is no need for loading the rules from server and
refreshing the firewalls. This will reduce the number of db calls and improve
performance for neutron server in this case.

Change-Id: Id244aab3cac37fc6ed3dc05cbee91cdf9e34d9cc
Closes-Bug: #1365806

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