]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoMerge "Remove function replacement with mock patch"
Jenkins [Mon, 2 Jun 2014 01:45:44 +0000 (01:45 +0000)]
Merge "Remove function replacement with mock patch"

10 years agoMerge "Remove unnecessary MagicMocks in cisco unit tests"
Jenkins [Sun, 1 Jun 2014 22:24:42 +0000 (22:24 +0000)]
Merge "Remove unnecessary MagicMocks in cisco unit tests"

10 years agoMerge "NSX: replace strong references to the plugin with weakref ones"
Jenkins [Sun, 1 Jun 2014 21:54:02 +0000 (21:54 +0000)]
Merge "NSX: replace strong references to the plugin with weakref ones"

10 years agoMerge "Make linux.utils.execute log error on return codes"
Jenkins [Fri, 30 May 2014 23:31:12 +0000 (23:31 +0000)]
Merge "Make linux.utils.execute log error on return codes"

10 years agoMerge "Handle errors from run_ofctl() when dumping flows"
Jenkins [Fri, 30 May 2014 18:42:46 +0000 (18:42 +0000)]
Merge "Handle errors from run_ofctl() when dumping flows"

10 years agoMerge "Sync periodic_task from oslo-incubator"
Jenkins [Fri, 30 May 2014 16:22:50 +0000 (16:22 +0000)]
Merge "Sync periodic_task from oslo-incubator"

10 years agoRemove function replacement with mock patch
Kevin Benton [Fri, 30 May 2014 03:59:00 +0000 (20:59 -0700)]
Remove function replacement with mock patch

In the hyperv unit tests, an rpc method is
manually replaced with a MagicMock using setattr.
This prevents it from being cleaned up by mock.patch.stopall.
This patch replaces it with a short-lived patch call
in a with statement.

Change-Id: I7b10a8115c474977e3acd16dc49d6f3ae67b0c3b
Partial-Bug: #1316401

10 years agoRemove unnecessary MagicMocks in cisco unit tests
Kevin Benton [Fri, 30 May 2014 03:49:48 +0000 (20:49 -0700)]
Remove unnecessary MagicMocks in cisco unit tests

Two patches that just return static data never have
assertions made on the MagicMocks generated. This
replaces the magicmocks with lambdas to make the code
easier to read and to get a minor performance gain.

Change-Id: I064c57a66a0f7a8e3080f39cf48bd4b67cf304e3
Partial-Bug: #1316401

10 years agoMerge "NSX: fix bug for flat provider network"
Jenkins [Fri, 30 May 2014 02:21:46 +0000 (02:21 +0000)]
Merge "NSX: fix bug for flat provider network"

10 years agoHandle errors from run_ofctl() when dumping flows
Kyle Mestery [Thu, 29 May 2014 13:07:55 +0000 (13:07 +0000)]
Handle errors from run_ofctl() when dumping flows

The function dump_flows_for_table() calls run_ofctl(). If this occurs during an OVS
restart, run_ofctl() will return None. dump_flows_for_table() needs to realize this
and not try to call splitlines() on a None object.

Change-Id: Ide26028656e634113f955dfc89569149d4d5b306
Closes-Bug: #1324659

10 years agoSync periodic_task from oslo-incubator
Matt Riedemann [Thu, 29 May 2014 14:33:16 +0000 (07:33 -0700)]
Sync periodic_task from oslo-incubator

This is more or less to get commit c63fd5a from oslo into the core
projects which have several periodic tasks.  Neutron has periodic tasks
for L3, load balancing and metering agents to sync up state with the
server and most don't have specific spacing values set which can lead to
non-deterministic spacing of when the tasks run.

Note that this does not include the gettextutils and log dependencies
since there are not functional changes in those modules needed for the
periodic_task changes synced in *and* more importantly, the changes
to gettextutils and log require pervasive changes to neutron which
should happen when neutron integrates with the oslo-i18n library for
blueprint i18n--messages.

Further note that this does not include jsonutils due to some
issues introduced with a change for python 2.6 that impacts how strings
are encoded with simplejson. The details for that issue are in bug
1314129.  The jsonutils changes are not related to the periodic_task
changes being synced in so the dependency is not functionally required.

The LbaasAgentManager extends PeriodicTasks but wasn't calling the
parent class init function, which was causing failures since commit
47c9d60 changed PeriodicTasks to init _periodic_last_run, so also
fixed that here.

Changes:

c63fd5a Make unspecified periodic spaced tasks run on default interval
f0dd798 Remove rendundant parentheses of cfg help strings
fcf517d Update oslo log messages with translation domains
051b9f3 Refactor unnecessary arithmetic ops in periodic_task
674cdaf Refactor if logic in periodic_task
b6b82c5 Use timestamp in periodic tasks
47c9d60 Don't share periodic_task instance data in a class attr
8b2b0b7 Use hacking import_exceptions for gettextutils._

Related-Bug: #1319232

Change-Id: Ib23e33326129be0dd952efde263f381d5aa2457f

10 years agoMerge "Added missing plugin .ini files to setup.cfg"
Jenkins [Thu, 29 May 2014 17:34:41 +0000 (17:34 +0000)]
Merge "Added missing plugin .ini files to setup.cfg"

10 years agoMerge "Reprogram flows when ovs-vswitchd restarts"
Jenkins [Thu, 29 May 2014 15:57:40 +0000 (15:57 +0000)]
Merge "Reprogram flows when ovs-vswitchd restarts"

10 years agoAdded missing plugin .ini files to setup.cfg
Ihar Hrachyshka [Thu, 29 May 2014 13:28:15 +0000 (15:28 +0200)]
Added missing plugin .ini files to setup.cfg

Some plugin .ini configuration files were missing and hence not
installed via 'setup.py install'.

Change-Id: I31f096e7fbf9f7a182ba8535ca8cadc4fecc6632
Partial-Bug: 1324487

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Thu, 29 May 2014 06:11:17 +0000 (06:11 +0000)]
Imported Translations from Transifex

Change-Id: I224b5013b66c3a571018036678f30e7ab5848200

10 years agoMerge "Restore ability to run functional tests with run_tests.sh"
Jenkins [Thu, 29 May 2014 05:34:06 +0000 (05:34 +0000)]
Merge "Restore ability to run functional tests with run_tests.sh"

10 years agoMerge "Updated from global requirements"
Jenkins [Thu, 29 May 2014 05:29:19 +0000 (05:29 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Fix KeyError exception while updating dhcp port"
Jenkins [Thu, 29 May 2014 04:20:14 +0000 (04:20 +0000)]
Merge "Fix KeyError exception while updating dhcp port"

10 years agoMerge "FWaaS plugin doesn't need to handle firewall rule del ops"
Jenkins [Thu, 29 May 2014 04:20:06 +0000 (04:20 +0000)]
Merge "FWaaS plugin doesn't need to handle firewall rule del ops"

10 years agoMake linux.utils.execute log error on return codes
Aaron Rosen [Tue, 27 May 2014 20:39:39 +0000 (13:39 -0700)]
Make linux.utils.execute log error on return codes

Previously, the execute method in neutron logs everything as debug which hides
a lot of extremely fatal errors like unable to apply security group rules!
This patch changes this code so that we log all non 0 returns as error.

Change-Id: I7328e62269212ccd9c7950ff064a3e337de56918
Closes-bug: 1323832
Related-bug: 1322945

10 years agoFWaaS plugin doesn't need to handle firewall rule del ops
berlin [Thu, 22 May 2014 07:42:25 +0000 (15:42 +0800)]
FWaaS plugin doesn't need to handle firewall rule del ops

If firewall rule is attached to firewall policy, it would raise
FirewallRuleInUse excpetion in DB ops, else it is a pure DB delete ops.
So it is useless to handle delete_firewall_rule ops in fwaas plugin.
Closes-Bug: #1322076

Change-Id: I55a000d206f232c79b41230f526007f684db8f4f

10 years agoMerge "Revert "fix openvswitch requirement check""
Jenkins [Wed, 28 May 2014 23:55:38 +0000 (23:55 +0000)]
Merge "Revert "fix openvswitch requirement check""

10 years agoMerge "Support 'infinite' dhcp_lease_duration"
Jenkins [Wed, 28 May 2014 23:50:16 +0000 (23:50 +0000)]
Merge "Support 'infinite' dhcp_lease_duration"

10 years agoMerge "Remove redundant default=None for config options"
Jenkins [Wed, 28 May 2014 22:21:23 +0000 (22:21 +0000)]
Merge "Remove redundant default=None for config options"

10 years agoReprogram flows when ovs-vswitchd restarts
Kyle Mestery [Fri, 16 May 2014 04:21:32 +0000 (04:21 +0000)]
Reprogram flows when ovs-vswitchd restarts

When OVS is restarted, by default it will not reprogram flows which were
programmed. For the case of the OVS agent, this means a restart will cause
all traffic to be switched using the NORMAL action. This is undesirable for
a number of reasons, including obvious security reasons.

This change provides a way for the agent to check if a restart of ovs-vswitchd
has happened in the main agent loop. If a restart of ovs-vswitchd is detected,
the agent will run through the setup of the bridges on the host and reprogram
flows for all the ports connected.

DocImpact
This changes adds a new table (table 23) to the integration bridge, with a
single 'drop' flow. This is used to monitor OVS restarts and to reprogram
flows from the agent.

Change-Id: If9e07465c43115838de23e12a4e0087c9218cea2
Closes-Bug: #1290486

10 years agoRevert "fix openvswitch requirement check"
Benedikt Trefzer [Wed, 28 May 2014 19:24:46 +0000 (21:24 +0200)]
Revert "fix openvswitch requirement check"

This reverts commit be340d1bab015c47650687f97393c6c9015fb537.

The fix did not fix anything.
See comments at
https://review.openstack.org/#/c/95592/

Change-Id: I2926acf4b0a7020a7ad3237e6d03d5b78bfcb6c4

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 28 May 2014 19:15:25 +0000 (19:15 +0000)]
Updated from global requirements

Change-Id: I91778ac6d505f8808a359765555a1619c2f34d3c

10 years agoFix KeyError exception while updating dhcp port
armando-migliaccio [Wed, 28 May 2014 17:37:15 +0000 (10:37 -0700)]
Fix KeyError exception while updating dhcp port

This is caused by a missing network_id in the port body.
This patch adds it so that a warning message can be traced
correctly. Wording is slightly tweaked to ensure it applies
to the right context.

Closes-bug: #1324194

Change-Id: I4b67b5c3584aa33278eb0e9e879ca338ba0ca8b0

10 years agoNSX: fix bug for flat provider network
Gary Kotton [Wed, 28 May 2014 13:37:16 +0000 (06:37 -0700)]
NSX: fix bug for flat provider network

The flat provider network would cause an exception when writing to
database. This is due to the fact that the DB expected an integer
and received an object instead.

Change-Id: Ib9d38711c0c2ef16d8bf74bfae44864a1bc272b1
Closes-bug: #1324120

10 years agoDisallow regular user to update firewall's shared attribute
Eugene Nikanorov [Tue, 27 May 2014 22:08:17 +0000 (02:08 +0400)]
Disallow regular user to update firewall's shared attribute

Shared firewalls should only be operable by  admins.
Currently only admin can provide shared attribute at firewall creation,
so update_firewall should be consistent with that as well.

Change-Id: I093743514637824207b375d724404d51f778d012
Closes-Bug: #1323322

10 years agoSupport 'infinite' dhcp_lease_duration
Erik Colnick [Tue, 6 May 2014 13:56:31 +0000 (07:56 -0600)]
Support 'infinite' dhcp_lease_duration

Process a dhcp_lease_duration value of -1 as 'infinite'
when setting the dnsmasq dhcp-range values to support
cases where it is undesirable for instance dhcp leases
to expire.

DocImpact

Closes-Bug: #1315430
Change-Id: I1cc3cfebfec355014e6d5b5cbd656a1300c43c0b

10 years agoMerge "OFAgent: Fixing lost vlan ids on interfaces"
Jenkins [Wed, 28 May 2014 12:25:06 +0000 (12:25 +0000)]
Merge "OFAgent: Fixing lost vlan ids on interfaces"

10 years agoMerge "OFAgent: Avoid processing ports which are not yet ready"
Jenkins [Wed, 28 May 2014 12:24:52 +0000 (12:24 +0000)]
Merge "OFAgent: Avoid processing ports which are not yet ready"

10 years agoMerge "Synced jsonutils from oslo-incubator"
Jenkins [Wed, 28 May 2014 10:00:46 +0000 (10:00 +0000)]
Merge "Synced jsonutils from oslo-incubator"

10 years agoMerge "Fix some typos in neutron/db and IBM SDN-VE plugin"
Jenkins [Wed, 28 May 2014 09:40:36 +0000 (09:40 +0000)]
Merge "Fix some typos in neutron/db and IBM SDN-VE plugin"

10 years agoMerge "Log iptables rules when they fail to apply"
Jenkins [Wed, 28 May 2014 06:06:28 +0000 (06:06 +0000)]
Merge "Log iptables rules when they fail to apply"

10 years agoMerge "Disallow 'timeout' in health_monitor to be negative"
Jenkins [Wed, 28 May 2014 05:21:43 +0000 (05:21 +0000)]
Merge "Disallow 'timeout' in health_monitor to be negative"

10 years agoMerge "Delete DHCP port without DHCP server on a net node"
Jenkins [Wed, 28 May 2014 04:19:37 +0000 (04:19 +0000)]
Merge "Delete DHCP port without DHCP server on a net node"

10 years agoMerge "NEC plugin: Bump L3RPC callback version to 1.1"
Jenkins [Wed, 28 May 2014 03:41:50 +0000 (03:41 +0000)]
Merge "NEC plugin: Bump L3RPC callback version to 1.1"

10 years agoMerge "Install SNAT rules for ipv4 only"
Jenkins [Wed, 28 May 2014 03:23:23 +0000 (03:23 +0000)]
Merge "Install SNAT rules for ipv4 only"

10 years agoMerge "Set onlink routes for all subnets on an external network"
Jenkins [Wed, 28 May 2014 01:11:29 +0000 (01:11 +0000)]
Merge "Set onlink routes for all subnets on an external network"

10 years agoNEC plugin: Bump L3RPC callback version to 1.1
Akihiro Motoki [Tue, 27 May 2014 17:48:30 +0000 (02:48 +0900)]
NEC plugin: Bump L3RPC callback version to 1.1

update_floatingip_statuses RPC call implemented in Icehouse expects
RPC version 1.1 and RPC version of L3RpcCallback of other plugins
was bumped to 1.1, but the version of L3RpcCallback in NEC plugin
was not bumped to 1.1 yet.

Change-Id: I0073a3de9ea0cd59d43c821f9bdaea89bd125a65
Closes-Bug: #1323769

10 years agoSynced jsonutils from oslo-incubator
Ihar Hrachyshka [Tue, 27 May 2014 08:22:49 +0000 (10:22 +0200)]
Synced jsonutils from oslo-incubator

The sync includes change that makes sure we get unicode-only dicts from
jsonutils no matter which json module implementation is selected.

The latest commit in oslo-incubator:
0f4586c0076183c6356eec682c8a593648125abd

The sync adds a new 'strutils' module that is now used in jsonutils.

Change-Id: Ic815ca3df94c33edec9104172048b2cd94b92e3f
Closes-Bug: 1314129

10 years agoMerge "fix openvswitch requirement check"
Jenkins [Tue, 27 May 2014 09:05:00 +0000 (09:05 +0000)]
Merge "fix openvswitch requirement check"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 27 May 2014 08:19:11 +0000 (08:19 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Fix for multiple misspelled words"
Jenkins [Tue, 27 May 2014 06:31:29 +0000 (06:31 +0000)]
Merge "Fix for multiple misspelled words"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 27 May 2014 06:13:22 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: I493fe42de2c87538c730a2ac62ce6fbe39b154ae

10 years agoMerge "Fixes bugs for requests sent to SDN-VE controller"
Jenkins [Tue, 27 May 2014 00:07:11 +0000 (00:07 +0000)]
Merge "Fixes bugs for requests sent to SDN-VE controller"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 26 May 2014 20:52:12 +0000 (20:52 +0000)]
Merge "Imported Translations from Transifex"

10 years agofix openvswitch requirement check
Benedikt Trefzer [Mon, 26 May 2014 20:45:25 +0000 (22:45 +0200)]
fix openvswitch requirement check

With VXLAN enabled on openvswitch, neutron checks
module version of the openvswitch kernel module.
If the pattern to extract the version matches twice
(eg. for path and version) the agent dies.

This patch ensures, that only the version is checked
against the pattern.

Change-Id: I879624f6b0936cab59e02958ae3a89950df773bb
Closes-Bug: #1322139

10 years agoMerge "Add physical_network to binding:vif_details dictionary"
Jenkins [Mon, 26 May 2014 17:41:47 +0000 (17:41 +0000)]
Merge "Add physical_network to binding:vif_details dictionary"

10 years agoNSX: replace strong references to the plugin with weakref ones
armando-migliaccio [Tue, 20 May 2014 21:47:51 +0000 (14:47 -0700)]
NSX: replace strong references to the plugin with weakref ones

This is done in accordance to a refactoring done in change 92793.

Partial-bug: #1234857

Change-Id: Iaf2bc93182c01e62bb755b4e3f104f5a926b73fc

10 years agoFixes bugs for requests sent to SDN-VE controller
Mohammad Banikazemi [Tue, 22 Apr 2014 16:32:33 +0000 (12:32 -0400)]
Fixes bugs for requests sent to SDN-VE controller

This patchset fixes a couple of bugs wrt processing requests
before sending them to the backend controller and adjusts the
requests based on the controller requirements. It also corrects
typos, add quotas and changes the default for a configuration
parameter.

Change-Id: I4b64c2b49ff4854949afc1e54cba1057f376b058
Closes-Bug: #1311260
DocImpact: The default tenant type is chganged from OF to OVERLAY

10 years agoInstall SNAT rules for ipv4 only
Baodong Li [Thu, 24 Apr 2014 01:47:13 +0000 (01:47 +0000)]
Install SNAT rules for ipv4 only

Change-Id: I37bd770aa0d54a985ac2bec708c571785084e0ec
Closes-Bug: #1309195

10 years agoMerge "Allowed Addresspairs: Removing check for overlap with fixed ips"
Jenkins [Mon, 26 May 2014 10:05:23 +0000 (10:05 +0000)]
Merge "Allowed Addresspairs: Removing check for overlap with fixed ips"

10 years agoMerge "Reorg table ml2_port_bindings when db migration"
Jenkins [Mon, 26 May 2014 09:10:03 +0000 (09:10 +0000)]
Merge "Reorg table ml2_port_bindings when db migration"

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

Change-Id: I9d14a60d8915ebfec13b6635c43c70458f9b571a

10 years agoMerge "Cisco APIC ML2 mechanism driver, part 2"
Jenkins [Mon, 26 May 2014 04:47:43 +0000 (04:47 +0000)]
Merge "Cisco APIC ML2 mechanism driver, part 2"

10 years agoMerge "Fix non-existent 'assert' calls to mocks"
Jenkins [Mon, 26 May 2014 04:47:31 +0000 (04:47 +0000)]
Merge "Fix non-existent 'assert' calls to mocks"

10 years agoDisallow 'timeout' in health_monitor to be negative
shihanzhang [Fri, 16 May 2014 04:02:40 +0000 (12:02 +0800)]
Disallow 'timeout' in health_monitor to be negative

It should limit the value of 'timeout' in 'health_monitor', the 'timeout'
shouldn't to be negative.

Change-Id: I26ae1995c9cc362df7c7dda4c53fb8adda298d13
Closes-bug: #1320062

10 years agoMerge "Remove all mostly untranslated PO files"
Jenkins [Sun, 25 May 2014 08:34:33 +0000 (08:34 +0000)]
Merge "Remove all mostly untranslated PO files"

10 years agoRemove redundant default=None for config options
Gary Kotton [Sun, 25 May 2014 07:46:50 +0000 (00:46 -0700)]
Remove redundant default=None for config options

By default the cfg modules set the default value as None. There
is no reason to set this.

Change-Id: I58e09e01760b573612c2ee169a8dd1784fd36a82

10 years agoMerge "Extraroute extension support for nuage plugin"
Jenkins [Sat, 24 May 2014 21:36:06 +0000 (21:36 +0000)]
Merge "Extraroute extension support for nuage plugin"

10 years agoFix for multiple misspelled words
Edgar Magana [Fri, 23 May 2014 23:59:55 +0000 (16:59 -0700)]
Fix for multiple misspelled words

In Neutron code, a few misspelled words have been found.
This commit fix them all to this date.

Change-Id: Ic11b8ec0adf83a6675f7295e557f436051aa26cd
Closes-Bug: 1323344

10 years agoMerge "Metadata agent caches networks for routers"
Jenkins [Fri, 23 May 2014 13:14:45 +0000 (13:14 +0000)]
Merge "Metadata agent caches networks for routers"

10 years agoExtraroute extension support for nuage plugin
ronak [Thu, 15 May 2014 14:38:43 +0000 (07:38 -0700)]
Extraroute extension support for nuage plugin

Nuage's VSP supports adding static-route to L3 Domain
which fits nicely with extraroute extension supported
by openstack's neutron. This set of change enables that.

Change-Id: Icd4d95b9077056c33c7509fe45966ff2a04cd923
Implements: blueprint extraroute-ext-support-for-nuage-plugin

10 years agoOFAgent: Fixing lost vlan ids on interfaces
fumihiko kakuma [Mon, 14 Apr 2014 05:17:31 +0000 (14:17 +0900)]
OFAgent: Fixing lost vlan ids on interfaces

Port the following patch to OFAgent.
commit: 60cb0911712ad11688b4d09e5c01ac39c49f5aea
https://review.openstack.org/#/c/66375/

Closes-Bug: #1309286

Change-Id: I04f99ef7928cd07959b29eb64b5744df397979b8

10 years agoSet onlink routes for all subnets on an external network
Carl Baldwin [Thu, 24 Apr 2014 23:06:10 +0000 (23:06 +0000)]
Set onlink routes for all subnets on an external network

The addition of the on-link routes gives us some freedom to allocate a
router's IP address from any one of multiple subnets on one external
network.  Different routers can get their IPs from different subnets and
they still have direct on-link connectivity to each other.  For example,
one router with its primary IP from 10.0.0.0/24 and another from
192.168.0.0/24 can communicate directly.  It is important that each
router has on-link routes to *all* of the subnets.

Any router can host floating ips from any of the subnets regardless of
which subnet the primary IP address comes from.

This is an alternative to the "Multiple floating IP pools" section in
the administration guide.  It is a simpler alternative that avoids
having to create multiple external networks.  It is also more flexible
because routers will no longer be restricted to getting floating IPs
from the pool to which they happen to be connected.

DocImpact
Document the procedure for adding subnets to the external network.
Potentially remove the existing procedure for "Multiple floating IP
pools" from the docs.

Change-Id: I2c283f5be0cbb6b5d350cafc1b636c300b796a7b
Closes-Bug: #1312467

10 years agoCisco APIC ML2 mechanism driver, part 2
Arvind Somya [Thu, 13 Feb 2014 17:57:50 +0000 (09:57 -0800)]
Cisco APIC ML2 mechanism driver, part 2

    This set of changes introduces a mechanism driver for the
    Cisco APIC. This is the second and final part of a 2 part commit.
    Please see the blueprint for more information.

    The review is submitted in two parts:
    - Part 1 (Posted earlier, required for Part 2)
        o APIC REST Client
        o APIC data model and migration script
        o APIC configurations
    - Part 2 (this commit)
        o APIC mechanism driver
        o APIC manager

    Partially implements: blueprint ml2-cisco-apic-mechanism-driver

Change-Id: I5ed3ac133146635083e2d0093057b43b64f347fe

10 years agoMerge "NSX: allow net-migration only in combined mode"
Jenkins [Thu, 22 May 2014 19:51:20 +0000 (19:51 +0000)]
Merge "NSX: allow net-migration only in combined mode"

10 years agoMerge "Common decorator for caching methods"
Jenkins [Thu, 22 May 2014 19:27:35 +0000 (19:27 +0000)]
Merge "Common decorator for caching methods"

10 years agoRemove all mostly untranslated PO files
Andreas Jaeger [Thu, 22 May 2014 16:48:04 +0000 (18:48 +0200)]
Remove all mostly untranslated PO files

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

This removes all languages besides en_US.

Change-Id: If1700477e01b8ccf515c140597f47caf2b81c803
Closes-Bug: #1317794

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

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

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

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

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

The king is dead, long live the king!

DocImpact
Blueprint: nicira-plugin-renaming

Change-Id: I49d19fec90ba191ed5b895fac8a884070f52119e

10 years agoMetadata agent caches networks for routers
Jakub Libosvar [Thu, 30 Jan 2014 14:27:02 +0000 (15:27 +0100)]
Metadata agent caches networks for routers

During cloud-init there are several calls that asks neutron API for the
same data which will not be most likely changed. Specifically router's
networks are cached.

Closes-bug: #1276440
Change-Id: Ic5eedb8057c7f4934eed08869ebf55c91e6edfc9

10 years agoCommon decorator for caching methods
Jakub Libosvar [Tue, 11 Feb 2014 14:59:06 +0000 (15:59 +0100)]
Common decorator for caching methods

Decorator caches methods' results, the key is composed from function
name and its parameters. Implementation of cache itself should be in
object implementing decorated method. Cache backend should be taken
from oslo-incubator.

Related-Bug: #1276440
Change-Id: Ibe3f1b2eb10b9601ad76ec24b7f0e3551b4013e2

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

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

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

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

Closes-bug: 1315507
Change-Id: Icf97b1f8643157719b3d28ac2c0c1576a5069697

10 years agoAllowed Addresspairs: Removing check for overlap with fixed ips
Praveen Yalagandula [Tue, 20 May 2014 21:10:12 +0000 (21:10 +0000)]
Allowed Addresspairs: Removing check for overlap with fixed ips

Current code does not allow assigning a fixed ip to a port when that ip
overlaps with one of the addresses in the allowed-addresspairs list.
This is an unnecessary check as the overlap does not have any negative
effect. Further, such a check actually makes it hard to use this
API. For example, if a fixed IP 10.10.1.1 exists on a port and we
want to allow addresses in 10.10.1.0/24 cidr on that port, then one
has to configure a list of 8 cidrs ([10.10.1.0/32, 10.10.1.2/31,
10.10.1.4/30, ..., 10.10.1.128/25]) on the allowed-addresspairs.
In addition to the above reasons, the current code also does not
check for the overlaps in all cases.

This patch summarily removes this overlap check.

Closes-Bug: #1321864
Change-Id: I5498c4a72b31267644da10a54a9860c1fc3bb250

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

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

Change-Id: I4f652a030ae23a71a2e20af2e8ef0ad5b882b80e
Closes-Bug: #1320775

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

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

Closes-Bug: #1236648
Change-Id: I2f507a90ee08cc05bd764549002a4656c187b6fc

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

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

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

10 years agoFix non-existent 'assert' calls to mocks
Kevin Benton [Mon, 19 May 2014 06:58:58 +0000 (06:58 +0000)]
Fix non-existent 'assert' calls to mocks

Fixes calls to non-existent 'assert' methods
called on mock objects.

Closes-Bug: #1320774
Change-Id: I7eab28fc9b23cbb39d5507ff3e8004a493c90bed

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

10 years agoLog iptables rules when they fail to apply
Kevin Benton [Fri, 11 Apr 2014 06:51:53 +0000 (23:51 -0700)]
Log iptables rules when they fail to apply

Log the set of rules that causes iptables-restore
to fail in the Linux agent iptables manager.

If a specific rule is identified as the cause, only
that rule and a few surrounding it will be logged to
reduce the output.

Closes-Bug: #1306399
Change-Id: I8e94c1faae75760e439c5abe3d9b723548398105

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

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

Change-Id: I2ef4bfa4d53afc7e8c800ad8e2a8737e117af238
Closes-Bug: #1321352

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

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

Change-Id: I531d7ffab074b01adfe186d2c3df43ca978359cd
Closes-Bug: #1288923

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

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

Change-Id: I270dd8e25975d51b012976c669a2ea7fb626b22d

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

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

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

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

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

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

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

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

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

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

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