]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "Add OVS status and fix OVS crash"
Jenkins [Thu, 18 Dec 2014 09:11:24 +0000 (09:11 +0000)]
Merge "Add OVS status and fix OVS crash"

9 years agoMerge "L3 Agent restructure - observer hierarchy"
Jenkins [Thu, 18 Dec 2014 04:21:53 +0000 (04:21 +0000)]
Merge "L3 Agent restructure - observer hierarchy"

9 years agoMerge "Simplify L3 HA unit test structure"
Jenkins [Thu, 18 Dec 2014 04:12:31 +0000 (04:12 +0000)]
Merge "Simplify L3 HA unit test structure"

9 years agoMerge "Cleanup req_format in test_api_v2_resource"
Jenkins [Thu, 18 Dec 2014 03:02:35 +0000 (03:02 +0000)]
Merge "Cleanup req_format in test_api_v2_resource"

9 years agoMerge "Remove locking from network and subnet delete op"
Jenkins [Thu, 18 Dec 2014 00:59:02 +0000 (00:59 +0000)]
Merge "Remove locking from network and subnet delete op"

9 years agoAdd OVS status and fix OVS crash
RobinWang [Tue, 9 Dec 2014 03:52:14 +0000 (11:52 +0800)]
Add OVS status and fix OVS crash

OVS crash/restart is unpredictable, so neutron-ovs-agent should be
robust enough under that situation. But currently ovs-agent doesn't
figure out this error status(only check ovs restart/normal status)
and still continue to apply subsequent operations(set br/add patch
port/...) till causing exceptions/crash. Add flag to fully represent
ovs status. Base on that, we can add proper fail-over code in method
rpc_loop, to treat ovs dead/restart gracefully to prevent agent
crashes while it is running.
Closes-bug: #1296202

Change-Id: Id058b7ddef2ed337627dc692d0418786ad14f4b4

9 years agoMerge "Correct arguments to logging function"
Jenkins [Wed, 17 Dec 2014 11:27:58 +0000 (11:27 +0000)]
Merge "Correct arguments to logging function"

9 years agoCleanup req_format in test_api_v2_resource
Elena Ezhova [Mon, 15 Dec 2014 12:44:34 +0000 (15:44 +0300)]
Cleanup req_format in test_api_v2_resource

Since XML support has been removed test cases in test_api_v2_resource
no longer need to specify req_format.

Change-Id: Ic6572abc3121535e19d21e9a34d70bb42b9782de
Related-Bug: #1380787

9 years agoCorrect arguments to logging function
Angus Lees [Wed, 17 Dec 2014 04:07:28 +0000 (15:07 +1100)]
Correct arguments to logging function

ofctl_arg_supported contains a bad call to LOG.debug in an exception
path.

    LOG.debug("...%s. Exception: %s", (full_args, e))

This throws "TypeError: not enough arguments for format string" and
should be:

    LOG.debug("...%s. Exception: %s", full_args, e)

(Found via pylint)

Change-Id: Ib14666f60b16584f225b1e0c4fed82ef7e941aac
Closes-Bug: #1403296

9 years agoMerge "Add functional test for l3-agent metadata proxy"
Jenkins [Tue, 16 Dec 2014 22:46:07 +0000 (22:46 +0000)]
Merge "Add functional test for l3-agent metadata proxy"

9 years agoMerge "Replace non-ovs_lib calls of run_vsctl with libary functions"
Jenkins [Tue, 16 Dec 2014 22:09:09 +0000 (22:09 +0000)]
Merge "Replace non-ovs_lib calls of run_vsctl with libary functions"

9 years agoMerge "Remove mlnx plugin"
Jenkins [Tue, 16 Dec 2014 21:17:06 +0000 (21:17 +0000)]
Merge "Remove mlnx plugin"

9 years agoMerge "Update rpc_api docs with example version update"
Jenkins [Tue, 16 Dec 2014 14:38:06 +0000 (14:38 +0000)]
Merge "Update rpc_api docs with example version update"

9 years agoRemove locking from network and subnet delete op
rossella [Tue, 19 Aug 2014 17:41:16 +0000 (19:41 +0200)]
Remove locking from network and subnet delete op

delete_subnet in Ml2 plugin instead of using SELECT FOR
UPDATE deletes the IPAllocations that can be auto-deleted
straight away.
An exception is raised if there are ports that cannot be
autodeleted.

delete_network in ML2 plugin tries to delete all ports
and subnets before performing the network deletion.
No lock is needed here - if some other process modifies
the Port or Subnet table, adding new items, the network
deletion will fail because of a violation of a foreign
key contraint.
In that case the operation will be retried.

Change-Id: Ib4e9441a95d6c80b92a43d55fdeb18d7b51a1cf3
Closes-bug: #1332917

9 years agoMerge "Enable test_migration"
Jenkins [Tue, 16 Dec 2014 10:27:17 +0000 (10:27 +0000)]
Merge "Enable test_migration"

9 years agoMerge "Fixed test test_update_port_security_off_address_pairs"
Jenkins [Tue, 16 Dec 2014 09:55:04 +0000 (09:55 +0000)]
Merge "Fixed test test_update_port_security_off_address_pairs"

9 years agoMerge "tests: initialize admin context after super().setUp call"
Jenkins [Tue, 16 Dec 2014 06:27:42 +0000 (06:27 +0000)]
Merge "tests: initialize admin context after super().setUp call"

9 years agoMerge "ofa_test_base: Fix NoSuchOptError in UT"
Jenkins [Tue, 16 Dec 2014 06:27:31 +0000 (06:27 +0000)]
Merge "ofa_test_base: Fix NoSuchOptError in UT"

9 years agoMerge "Set timeout for functional job"
Jenkins [Tue, 16 Dec 2014 06:01:03 +0000 (06:01 +0000)]
Merge "Set timeout for functional job"

9 years agoMerge "Auto allocate gateway_ip even for SLAAC subnets"
Jenkins [Mon, 15 Dec 2014 18:23:58 +0000 (18:23 +0000)]
Merge "Auto allocate gateway_ip even for SLAAC subnets"

9 years agoMerge "Have L3 agent catch the correct exception"
Jenkins [Mon, 15 Dec 2014 16:25:12 +0000 (16:25 +0000)]
Merge "Have L3 agent catch the correct exception"

9 years agoAdd functional test for l3-agent metadata proxy
Cedric Brandily [Fri, 21 Nov 2014 22:11:25 +0000 (23:11 +0100)]
Add functional test for l3-agent metadata proxy

This change add a functional test for l3-agent metadata proxy to
verify:

 * iptables redirection from 169.254.169.254:80
 * headers added by the neutron-ns-metadata-proxy
 * proxy to the metadata_socket by the neutron-ns-metadata-proxy

Change-Id: I16f1269644a56d932426daa3a89dd5a8f747b314

9 years agoRemove mlnx plugin
Moshe Levi [Tue, 9 Dec 2014 08:38:24 +0000 (10:38 +0200)]
Remove mlnx plugin

Mellanox plugin was marked deprecated in Juno.
This commit actually removes the code for Kilo.

Mellanox recommends users to use mlnx or SR-IOV MD

DocImpact
Closes-Bug: #1386539

Change-Id: I7d109bf62f71b2996aef4e0002f447ca3439a5cf
Signed-off-by: Moshe Levi <moshele@mellanox.com>
9 years agoSet timeout for functional job
Jakub Libosvar [Fri, 12 Dec 2014 17:39:56 +0000 (18:39 +0100)]
Set timeout for functional job

As functional jobs take more time to finish than unit tests and also
there is a chance that test will hang due to system interaction, this
patch sets maximum execution time to 90 seconds per test.

Change-Id: Ib58a1b53ace178e1bf99150628fa5576b079e8bc

9 years agoEnable test_migration
AKamyshnikova [Thu, 11 Dec 2014 10:00:48 +0000 (13:00 +0300)]
Enable test_migration

After splitting in neutron database was left a number of tables
that don't have any models. Test should be improved to skip these
tables from checking.

Closes-bug: #1401424

Partially-Implements: blueprint services-split

Change-Id: I201b4a310eb26a86765c8541fba6e2d42431cf2a

9 years agotests: initialize admin context after super().setUp call
Ihar Hrachyshka [Mon, 8 Dec 2014 12:51:02 +0000 (13:51 +0100)]
tests: initialize admin context after super().setUp call

New policy code requires that CONF is already initialized when policy
checks are invoked. It means that no Neutron context objects should be
created before BaseTestCase.setUp() is called that will set
configuration, among other things.

Ideally, we would just make sure that all test cases invoke
super().setUp() as the very first line of any subclass setUp() methods.
But since some of test cases require prior setup (like mocking extension
manager) before proceeding to base class, we end up with magically
shuffling context instantiations to occur below super() calls.

Change-Id: Ib1039ea1ff9480ca57f9cb0c917469d0d2ad28b8
Closes-Bug: #1400301

9 years agoFixed test test_update_port_security_off_address_pairs
Roey Chen [Tue, 9 Dec 2014 13:57:33 +0000 (05:57 -0800)]
Fixed test test_update_port_security_off_address_pairs

This test checks that port-update fails with 409 return code when
port-security is turned off on a port which contains address-pairs.
The test had a typo ('security-groups' -> 'security-group') which would
have cause it to produce false-positive.
This change rewrites the test and eliminates the possibility of this
false-positive to occurs.

Change-Id: Ib54ad089872f28eb28a3d4d050ba0ee8fdc2bfe2
Closes-Bug: #1400725
Signed-off-by: Roey Chen <roeyc@vmware.com>
9 years agoMerge "Migrate to oslo.context"
Jenkins [Mon, 15 Dec 2014 06:10:55 +0000 (06:10 +0000)]
Merge "Migrate to oslo.context"

9 years agoMerge "Remove broad exception catch from periodic_sync_routers_task"
Jenkins [Mon, 15 Dec 2014 06:10:42 +0000 (06:10 +0000)]
Merge "Remove broad exception catch from periodic_sync_routers_task"

9 years agoMerge "Strip square brackets from IPv6 addresses"
Jenkins [Mon, 15 Dec 2014 06:10:29 +0000 (06:10 +0000)]
Merge "Strip square brackets from IPv6 addresses"

9 years agoMerge "Switch to using subunit-trace from tempest-lib"
Jenkins [Mon, 15 Dec 2014 06:10:14 +0000 (06:10 +0000)]
Merge "Switch to using subunit-trace from tempest-lib"

9 years agoMerge "run_tests.sh OS X script fixes"
Jenkins [Mon, 15 Dec 2014 06:02:38 +0000 (06:02 +0000)]
Merge "run_tests.sh OS X script fixes"

9 years agoMerge "Don't restore stopped mock that is initialized in setUp()"
Jenkins [Mon, 15 Dec 2014 06:02:24 +0000 (06:02 +0000)]
Merge "Don't restore stopped mock that is initialized in setUp()"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 15 Dec 2014 03:54:11 +0000 (03:54 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Remove unused dependencies"
Jenkins [Sun, 14 Dec 2014 10:14:07 +0000 (10:14 +0000)]
Merge "Remove unused dependencies"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 14 Dec 2014 06:06:12 +0000 (06:06 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ifda70a2656a38ddf506e8f4d98e52b40e225e529

9 years agoMerge "Mock up time.sleep to avoid unnecessary wait in test_ovs_tunnel"
Jenkins [Sun, 14 Dec 2014 05:18:57 +0000 (05:18 +0000)]
Merge "Mock up time.sleep to avoid unnecessary wait in test_ovs_tunnel"

9 years agoMerge "Enforce log hints"
Jenkins [Sun, 14 Dec 2014 02:58:34 +0000 (02:58 +0000)]
Merge "Enforce log hints"

9 years agoRemove unused dependencies
Abhishek Chanda [Sat, 13 Dec 2014 15:34:52 +0000 (21:04 +0530)]
Remove unused dependencies

- anyjson is a dependency for oslo.serialization
- argparse is in std lib

Change-Id: Ie09287113c1cff8ad774fbc88cbc84650baa6b0e

9 years agoMerge "radvd: pass -m syslog to avoid thread lock for radvd 2.0+"
Jenkins [Sat, 13 Dec 2014 07:46:22 +0000 (07:46 +0000)]
Merge "radvd: pass -m syslog to avoid thread lock for radvd 2.0+"

9 years agoMerge "Fix race condition in ProcessMonitor"
Jenkins [Sat, 13 Dec 2014 05:13:36 +0000 (05:13 +0000)]
Merge "Fix race condition in ProcessMonitor"

9 years agoMerge "Not nova but neutron"
Jenkins [Sat, 13 Dec 2014 04:52:14 +0000 (04:52 +0000)]
Merge "Not nova but neutron"

9 years agoMerge "Separate wait_until to standalone function"
Jenkins [Sat, 13 Dec 2014 04:32:32 +0000 (04:32 +0000)]
Merge "Separate wait_until to standalone function"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Sat, 13 Dec 2014 03:21:19 +0000 (03:21 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Reduce code duplication in test_linux_dhcp"
Jenkins [Sat, 13 Dec 2014 02:35:05 +0000 (02:35 +0000)]
Merge "Reduce code duplication in test_linux_dhcp"

9 years agoMerge "Refactor process_router method in L3 agent"
Jenkins [Sat, 13 Dec 2014 02:34:52 +0000 (02:34 +0000)]
Merge "Refactor process_router method in L3 agent"

9 years agoMerge "Generate testr_results.html for neutron functional job"
Jenkins [Sat, 13 Dec 2014 02:14:39 +0000 (02:14 +0000)]
Merge "Generate testr_results.html for neutron functional job"

9 years agoMerge "Fix IPv6 RA security group rule for DVR"
Jenkins [Sat, 13 Dec 2014 01:39:11 +0000 (01:39 +0000)]
Merge "Fix IPv6 RA security group rule for DVR"

9 years agoGenerate testr_results.html for neutron functional job
armando-migliaccio [Wed, 10 Dec 2014 22:38:26 +0000 (14:38 -0800)]
Generate testr_results.html for neutron functional job

Tweak job post_test_hook script to generate testr results
the same way other jobs do, with a pretty html view that
is easy to digest and navigate.

Closes-bug: #1401340

Change-Id: Ib355f34917580b88bda3d550e33fc630a8e7120b

9 years agoMerge "Catch duplicate errors scheduling SNAT service"
Jenkins [Fri, 12 Dec 2014 23:59:09 +0000 (23:59 +0000)]
Merge "Catch duplicate errors scheduling SNAT service"

9 years agoL3 Agent restructure - observer hierarchy
Paul Michali [Wed, 10 Dec 2014 23:50:56 +0000 (18:50 -0500)]
L3 Agent restructure - observer hierarchy

This commit creates the basic observer hierarchy for advanced
services, as part of a multi-step refactoring effort of the L3 agent.

The change set has these modifications:

- Device drivers for VPN and FW services are loaded.
- AdvancedService child instances are created for VPN and FW.
- L3EventObservers is created by the L3 agent and the VPN and FW
  service objects are registered for notifications of events.
- VPN device driver event handlers moved to VPN service instance.
- VPN device driver callbacks to VPN agent, moved to VPN service.
  to service from the VPN device driver.
- Test cases updated and moved related to these changes.
- UT updated to test new methods and refactoring changes.

Future commits will massage the event notification points in the
L3 agent, and implement handlers.

Please keep these things in mind, when reviewing:
- The goal is to refactor the code and not 'improve/change'
  functionality (other than broken tests).
- This is one step of a series of steps to move to the 'final'
  restructuring.
- Because we're incrementally changing the code, there may be
  temporary changes to allow existing code to continue to work.

Co-Authored-By: Assaf Muller
Change-Id: I674c72e37b56aa1f729110310e6f697297c47c09
Partially-implements: blueprint restructure-l3-agent

9 years agoReplace non-ovs_lib calls of run_vsctl with libary functions
Terry Wilson [Fri, 12 Dec 2014 17:12:02 +0000 (10:12 -0700)]
Replace non-ovs_lib calls of run_vsctl with libary functions

There is already an OVSBridge.set_controller() function, so replace
calls to run_vsctl(['set-controller', ...]) with calls to
OVSBridge.set_controller().

This is also the only non-ovs_lib call to run_vsctl. This change
will also make it easier to abstract out the ovsdb-related code in
the future.

Change-Id: Ia5a3e2c759d2479a2e7088a2ab7db1d4e17d1ae2

9 years agoDon't restore stopped mock that is initialized in setUp()
Ihar Hrachyshka [Thu, 4 Dec 2014 10:31:24 +0000 (11:31 +0100)]
Don't restore stopped mock that is initialized in setUp()

Since this mock will be reinitialized for consequent test cases when
calling setUp(), it's not needed to restart it in the case.

Change-Id: Ib120bf09d24dccc0b09fae906dae05c69efe734a

9 years agoSeparate wait_until to standalone function
Jakub Libosvar [Tue, 30 Sep 2014 16:13:50 +0000 (18:13 +0200)]
Separate wait_until to standalone function

It makes wait_until more usable outside of unittest.TestCase classes.
Part of this patch is renaming pinger module to helpers thus we can have
helpers module with useful utilities for testing.

Change-Id: Ie8e4854c23aa3739b0df618db1b3944466d64bd2
Related-Bug: 1243216

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Fri, 12 Dec 2014 06:08:14 +0000 (06:08 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I18f00383ecae68436a9208f094a898849bfed8a2

9 years agoMerge "Fix for KeyError: 'gw_port_host' on l3_agent"
Jenkins [Fri, 12 Dec 2014 02:35:20 +0000 (02:35 +0000)]
Merge "Fix for KeyError: 'gw_port_host' on l3_agent"

9 years agoMock up time.sleep to avoid unnecessary wait in test_ovs_tunnel
RobinWang [Wed, 10 Dec 2014 02:46:05 +0000 (10:46 +0800)]
Mock up time.sleep to avoid unnecessary wait in test_ovs_tunnel

Unnecessary wait in ovs tunnel UT introduces extra 6 seconds time cost,
and makes 3 test_daemon_loop cases the slowest tests. Mock up time.sleep
to reduce UT time, from around 6.272s to 0.135s.

Closes-bug: #1401457

Change-Id: Ic0a968a400268af1f66c91e4c39e7d3acf492ef3

9 years agoCatch duplicate errors scheduling SNAT service
Kevin Benton [Thu, 16 Oct 2014 09:10:36 +0000 (02:10 -0700)]
Catch duplicate errors scheduling SNAT service

Catch DBDuplicateEntry errors when scheduling SNAT to
a service node to prevent harmless tracebacks in the log.
These can occur if scheduling occurs concurrently,
so they are safe to ignore.

Closes-Bug: #1381958
Change-Id: If242b04b372609f640f3ce88f4245c17a45bf69d

9 years agoMerge "Disallow log hints in LOG.debug"
Jenkins [Thu, 11 Dec 2014 23:18:30 +0000 (23:18 +0000)]
Merge "Disallow log hints in LOG.debug"

9 years agoFix for KeyError: 'gw_port_host' on l3_agent
Michael Smith [Tue, 2 Dec 2014 22:22:04 +0000 (14:22 -0800)]
Fix for KeyError: 'gw_port_host' on l3_agent

The dictionary field 'gw_port_host' was added for
DVR routers and is used by the scheduler and l3_agent
to schedule where the SNAT port for a DVR router
will be hosted.  In some code flows on the l3_agent,
this field is checked to determine what the agent
should do if the host matches its own or not.

Recently it has been seen that the router data sent
from the scheduler is missing this field in some cases.
This causes the agent to throw a KeyError and not function
properly.  This patch will make the l3_agent more robust
and less fragile by calling 'get' instead of assuming the
field will be there.

More work may be needed on the scheduler side to see why
this field is missing. That is why I am marking this as a
partial-fix for now. But this patch will make the l3_agent
less prone to errors and therefore an improvement.

Change-Id: Ib26ccfa7b945cb4e8f2ec4adc5e6ae91cbaae02e
Partial-Bug: #1394043

9 years agoMigrate to oslo.context
Ihar Hrachyshka [Thu, 11 Dec 2014 19:36:48 +0000 (20:36 +0100)]
Migrate to oslo.context

That's just a matter of adding requirements.txt entry, fixing imports,
and dropping the corresponding oslo-incubator module from the tree.

While at it, made all imports to import the module into 'oslo_context' and
not just 'context', so that we don't override the module locally in
multiple methods that receive their context arguments with the same
name, making the library inaccessible from inside those methods.

Change-Id: Ie62af970b3b7f225de453e56c01abc4b12af8f5e
Closes-Bug: #1401054

9 years agoHave L3 agent catch the correct exception
Terry Wilson [Tue, 9 Dec 2014 22:24:37 +0000 (15:24 -0700)]
Have L3 agent catch the correct exception

L3 agent imports the processutils module to catch exceptions that
wouldn't ever be thrown because the underlying execute() being
called is the one from neutron.agent.linux.utils which raises a
RuntimeError on failure.

Also, processutils is now part of oslo.concurrency. So when we
actually start using it, we'll use it from there.

Closes-Bug: 1401626
Change-Id: I43874e1b63a0ba7b01415cafe0538f4343057066

9 years agoNot nova but neutron
jun xie [Thu, 11 Dec 2014 16:31:36 +0000 (00:31 +0800)]
Not nova but neutron

The docstring for topic is not correct.

Change-Id: I6174453eb1c41c398ecffbab59c45b0678637672

9 years agoRemove broad exception catch from periodic_sync_routers_task
Carl Baldwin [Tue, 28 Oct 2014 17:30:55 +0000 (17:30 +0000)]
Remove broad exception catch from periodic_sync_routers_task

Although this change removes a broad exception from
periodic_sync_routers_task (neutron.agent.l3_agent), the
implementation still ensures if an exception --caught or uncaught --
prevents a call to the method to disable the fullsync, then the next
call to the method will perform a fullsync again.

Author:         Cedric Brandily <zzelle@gmail.com>
Co-Authored-By: Carl Baldwin <carl.baldwin@hp.com>
Change-Id: I6281886f3334100a18952578250c8154a0ed15a9

9 years agoFix race condition in ProcessMonitor
Miguel Angel Ajo [Wed, 10 Dec 2014 11:21:52 +0000 (12:21 +0100)]
Fix race condition in ProcessMonitor

If any new external process was enabled/disabled during
the process monitoring loop time, a RuntimeError: dictionary
changed size during iteration was thrown. This is fixed
by pre-building the service list from the dictionary
for the iteration.

Closes-Bug: #1401042

Change-Id: Id0a3af22fb85992bde35d8c691bee3ddf435639d

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 11 Dec 2014 07:15:01 +0000 (07:15 +0000)]
Updated from global requirements

Change-Id: Ia3410609208e937a47f72643a14bab9c30953bf4

9 years agoMerge "Move classes out of l3_agent.py"
Jenkins [Thu, 11 Dec 2014 02:00:42 +0000 (02:00 +0000)]
Merge "Move classes out of l3_agent.py"

9 years agoRefactor process_router method in L3 agent
Miguel Lavalle [Tue, 9 Dec 2014 00:40:25 +0000 (18:40 -0600)]
Refactor process_router method in L3 agent

Refactors the process_router method of the L3NATAgent class to several methods
that coherently group functionallity. The aim is to make the code more readable
and maintainable. There is no functional change in this patch.

Partially-Implements: bp restructure-l3-agent

Change-Id: Id35a5f10cd7d2dda565bffb14fc6a2fbd7eef3ea

9 years agoSwitch to using subunit-trace from tempest-lib
Matthew Treinish [Wed, 10 Dec 2014 18:21:28 +0000 (13:21 -0500)]
Switch to using subunit-trace from tempest-lib

This commit removes the local copy of subunit-trace and instead uses
the version packaged with tempest-lib.

Change-Id: Ia7b57c6fc092514d9fbe4e71f580a4b189dc68b0

9 years agoMove classes out of l3_agent.py
Carl Baldwin [Mon, 1 Dec 2014 21:49:10 +0000 (16:49 -0500)]
Move classes out of l3_agent.py

The file l3_agent.py has become too large.  This patch is a simple
pure refactor to move some of the functionality in to other files
where things aren't too tangled up.  There is no functional change
with this patch and I avoided gratuitous other fixups in this patch in
order to make it easier to review.

I plan to follow up on the new l3_dvr and l3_agent_router modules with
more restructuring in the near future.

Partially-Implements: bp restructure-l3-agent

Change-Id: I3529fe4146c50c940f41eb26d0b5efc5870b3af9

9 years agoMerge "Services split, pass 2"
Jenkins [Wed, 10 Dec 2014 22:14:54 +0000 (22:14 +0000)]
Merge "Services split, pass 2"

9 years agoMerge "Prettify tox output for functional tests"
Jenkins [Wed, 10 Dec 2014 21:32:26 +0000 (21:32 +0000)]
Merge "Prettify tox output for functional tests"

9 years agoMerge "Add lbaasv2 extension to Neutron for REST refactor"
Jenkins [Wed, 10 Dec 2014 20:18:19 +0000 (20:18 +0000)]
Merge "Add lbaasv2 extension to Neutron for REST refactor"

9 years agoPrettify tox output for functional tests
armando-migliaccio [Wed, 10 Dec 2014 18:13:57 +0000 (10:13 -0800)]
Prettify tox output for functional tests

Change I6a079ad introduced some magic to enable showing test output
as the test run. Do the same for *-functional tests too, by reusing
the default testenv

Change-Id: I6d1ede1c66e7b62c68449224f274417a5d66c12f

9 years agoMerge "Refactor test_migration"
Jenkins [Wed, 10 Dec 2014 16:54:00 +0000 (16:54 +0000)]
Merge "Refactor test_migration"

9 years agoMerge "Use comments rather than no-op string statements"
Jenkins [Wed, 10 Dec 2014 16:31:50 +0000 (16:31 +0000)]
Merge "Use comments rather than no-op string statements"

9 years agoServices split, pass 2
Doug Wiegley [Tue, 9 Dec 2014 22:55:04 +0000 (15:55 -0700)]
Services split, pass 2

- Nuke more services code, killing some refs in vmware plugin
- Vmware plugin foreign key relationships are temporary disabled
- Vmware unit tests are temporarily disabled
- Remove router insertion test, as its only user is going away
- Add thin service plugin shims
- Temporarily disable model sync test

Post services-split, existing neutron.conf configurations may contain
references to in-tree plugin classes.  Add thin shims so that those configs
will continue to work.

Change-Id: I5dd26def685bcc643e35badc23885afc6240ae94

9 years agoFix IPv6 RA security group rule for DVR
Xu Han Peng [Wed, 10 Dec 2014 06:07:42 +0000 (14:07 +0800)]
Fix IPv6 RA security group rule for DVR

Current IPv6 RA security group rule doesn't work for
DVR because the code only allows RA from device_owner
is network:router_interface. When DVR is enabled, the
router interface is network:router_interface_distributed.

This fix fixes the RA rule to allow RA from DVR router
interface, so router advertisement from DVR RADVD can
pass to VM.

Co-Authored-By: Baodong (Robert) Li <baoli@cisco.com>
Change-Id: Idd1324c653dcb15f5dacf2d897a7048bca22fc38
Partial-Bug: 1376325

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

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I07afc0351a19e1c855a4659ffc0088674f4fdb6c

9 years agoofa_test_base: Fix NoSuchOptError in UT
YAMAMOTO Takashi [Fri, 14 Nov 2014 03:39:37 +0000 (12:39 +0900)]
ofa_test_base: Fix NoSuchOptError in UT

Ensure setting up cfg.CONF.
Otherwise, depending on the execution order of tests,
some tests in test_ofa_neutron_agent can fail with
the following exception:

    NoSuchOptError: no such option: config_dir

The problem has been exposed by the recently merged change
for policy module, commit d83731a96d3b47fab1295de1fb53cfe30576619c .

Closes-Bug: #1392569
Change-Id: I0d38df0510b95160c67ea7b76ed413138fa3d770

9 years agoAdd lbaasv2 extension to Neutron for REST refactor
Doug Wiegley [Wed, 10 Dec 2014 00:52:14 +0000 (17:52 -0700)]
Add lbaasv2 extension to Neutron for REST refactor

Change-Id: I9f4b9e1f151281d4a467b3b90980a32529a78334
Co-Authored-By: Brandon Logan <brandon.logan@rackspace.com>
9 years agoMerge "Split services code out of Neutron, pass 1"
Jenkins [Wed, 10 Dec 2014 00:23:42 +0000 (00:23 +0000)]
Merge "Split services code out of Neutron, pass 1"

9 years agoMerge "Updated from global requirements"
Jenkins [Wed, 10 Dec 2014 00:10:11 +0000 (00:10 +0000)]
Merge "Updated from global requirements"

9 years agoRemove TODO for H404
Maru Newby [Tue, 9 Dec 2014 20:04:38 +0000 (13:04 -0700)]
Remove TODO for H404

There is no timeline or intention to fix this - it's a non-functional
formatting change.

Change-Id: Ib8e75bca41dbcd9dbb188ba8ee03ef51a479d9cc

9 years agoUpdate rpc_api docs with example version update
Russell Bryant [Tue, 9 Dec 2014 17:29:16 +0000 (17:29 +0000)]
Update rpc_api docs with example version update

Update the rpc api devref docs to include an example of what a change
that includes a minor version increment looks like.  I hope this will
help clarify for people what all is included in an API change that
requires a version bump.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: I9c53d3518b200412701b19958d7cbf1ed03d643e

9 years agoAuto allocate gateway_ip even for SLAAC subnets
sridhargaddam [Thu, 20 Nov 2014 07:39:54 +0000 (07:39 +0000)]
Auto allocate gateway_ip even for SLAAC subnets

For a SLAAC subnet that is created without specifying the gateway_ip,
Neutron currently allocates (If0c48a7287a828eef4a0f0b0859d4f898d2937bd)
the gateway_ip at a later stage (i.e., neutron router_interface_add).
In order to keep the API consistent between IPv4 and IPv6, it is
recommended to allocate the gateway_ip during subnet_create stage itself.

Closes-Bug: #1394112
Change-Id: I965232930502c21b605fe360bb138bb6ea73d2b0

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 9 Dec 2014 14:34:32 +0000 (14:34 +0000)]
Updated from global requirements

Change-Id: Ia0c24e84a56581c9e3f005dc67a3c5e834795ad0

9 years agoMerge "Move set_override('root_helper', ...) to base functional class"
Jenkins [Tue, 9 Dec 2014 01:33:34 +0000 (01:33 +0000)]
Merge "Move set_override('root_helper', ...) to base functional class"

9 years agoSplit services code out of Neutron, pass 1
Doug Wiegley [Mon, 8 Dec 2014 04:21:57 +0000 (21:21 -0700)]
Split services code out of Neutron, pass 1

- After l3_agent is refactored, need to remove services/firewall
- After vmware plugin moves services out of monolothic,
  remove model copies and services/loadbalancer/constants,
  and re-enable unit tests.
- After alembic chain gets split in four, tweak models/head and
  fix heal/current chain.
- Re-factor test_routerserviceinsertion into one of the service repos

Partially-Implements: blueprint services-split
Change-Id: I5466984a9e57128266f97e9bd5c265f4dc3cba7b

9 years agoMerge "Print version info at start"
Jenkins [Mon, 8 Dec 2014 22:44:19 +0000 (22:44 +0000)]
Merge "Print version info at start"

9 years agoUse comments rather than no-op string statements
Angus Lees [Mon, 25 Aug 2014 02:26:00 +0000 (12:26 +1000)]
Use comments rather than no-op string statements

This change replaces a few no-op string statements with regular
comments.  While there was no harm in the previous use of strings for
comments, this allows us to re-enable the corresponding pylint check
which may catch genuinely unintended cases.

Change-Id: I796a059292e26c4df75c54f095d9e20e99187c98

9 years agoEnforce log hints
Cedric Brandily [Sun, 7 Dec 2014 20:35:16 +0000 (21:35 +0100)]
Enforce log hints

This change enforces log hints use and removes debug level log
translation, modifications are validated through a hacking rule
and the change respects logging guidelines.

Change-Id: Ia4e6659b8b59732d88cd603b0e6c630fad37aae5
Closes-bug: #1320867

9 years agoDisallow log hints in LOG.debug
Cedric Brandily [Mon, 8 Dec 2014 15:23:47 +0000 (15:23 +0000)]
Disallow log hints in LOG.debug

Currently LOG.debug(_(...)) is disallowed but not LOG.debug(_Lx(...)).
This change disallows all log hints in LOG.debug calls.

Change-Id: I9758ad4ca9f7e8534abf38f5064b01b0c353e904
Partial-bug: #1320867

9 years agoMerge "Enforce log hints in ofagent and oneconvergence"
Jenkins [Mon, 8 Dec 2014 14:26:41 +0000 (14:26 +0000)]
Merge "Enforce log hints in ofagent and oneconvergence"

9 years agoReduce code duplication in test_linux_dhcp
Elena Ezhova [Mon, 8 Dec 2014 10:31:26 +0000 (13:31 +0300)]
Reduce code duplication in test_linux_dhcp

This patch reduces duplication in test_output_opts_file_*()

Change-Id: Ie68b26a48c1d0ed9cb8e584a7284c06688937cf9
Closes-Bug: #1352870

9 years agoMerge "Make sudo check in ip_lib.IpNetnsCommand.execute optional"
Jenkins [Mon, 8 Dec 2014 08:51:19 +0000 (08:51 +0000)]
Merge "Make sudo check in ip_lib.IpNetnsCommand.execute optional"

9 years agoPrint version info at start
Ian Wienand [Thu, 4 Dec 2014 00:31:23 +0000 (11:31 +1100)]
Print version info at start

When debugging problems from logs, it would be useful to know what
version is running across program start and stop.  In one case I have
a suspicion that an upgrade was run inbetween but the logs don't help
identify that.

My first thought was to grab this from argparse just as --version
does, but that's not really currently possible [1].

The original starting message is probably irrelevant, but I realise
log messages tend to suffer from Hotel California syndrome; you can
check-in but you can never leave.

[1] http://bugs.python.org/issue9399

Change-Id: Ia1bfd2f3589b508e19fd8a94d59beaafd6d657d2

9 years agoEnforce log hints in ofagent and oneconvergence
Gary Kotton [Tue, 2 Dec 2014 12:27:07 +0000 (04:27 -0800)]
Enforce log hints in ofagent and oneconvergence

This change enforces log hints use and removes debug level log
translation, modifications are validated through a hacking rule
and the change respects loggging guidelines. Validate that hacking
rules apply to directories:-
    neutron/plugins/ofagent
    neutron/plugins/oneconvergence

Change-Id: I520a36ae53848b828ce33f4050606a7238f4cbce
Partial-bug: #1320867

9 years agoMerge "Update i18n translation for IBM plugin log msg's"
Jenkins [Sun, 7 Dec 2014 20:01:42 +0000 (20:01 +0000)]
Merge "Update i18n translation for IBM plugin log msg's"

9 years agoMake sudo check in ip_lib.IpNetnsCommand.execute optional
Assaf Muller [Tue, 30 Sep 2014 11:07:24 +0000 (14:07 +0300)]
Make sudo check in ip_lib.IpNetnsCommand.execute optional

If the process runs as root the root_helper and sudo check
are not required.

Closes-Bug: #1393184
Change-Id: I7876ca7e4652f8152d1a8a0015cc897b09b31899