]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agocsr1kv_hd_driver: Improve exception handling
AKamyshnikova [Fri, 19 Dec 2014 10:24:11 +0000 (13:24 +0300)]
csr1kv_hd_driver: Improve exception handling

When logging exceptions the exception handling should make use
of save_and_reraise.

Partial-bug: #1305032

Change-Id: I316417f3c9cbb28ea0cf2cd24a1f5b2b803b5a95

9 years agoMerge "Clean-up sanity checks done via shell scripts"
Jenkins [Wed, 24 Dec 2014 08:01:36 +0000 (08:01 +0000)]
Merge "Clean-up sanity checks done via shell scripts"

9 years agoMerge "Add validation for the dvr router l3agent binding"
Jenkins [Wed, 24 Dec 2014 01:55:19 +0000 (01:55 +0000)]
Merge "Add validation for the dvr router l3agent binding"

9 years agoClean-up sanity checks done via shell scripts
armando-migliaccio [Mon, 22 Dec 2014 21:02:14 +0000 (13:02 -0800)]
Clean-up sanity checks done via shell scripts

Move the various checks done via shell into a single file;
this is cleaner and we'll have a lot more space to explain
what is going on.

Related-bug: #1404605

Change-Id: Ibb451c6a25217f37b73983c30891f55b35f143cd

9 years agoMerge "Fixes spelling error"
Jenkins [Tue, 23 Dec 2014 21:46:52 +0000 (21:46 +0000)]
Merge "Fixes spelling error"

9 years agoMerge "get_binary_name should returns strings without spaces"
Jenkins [Tue, 23 Dec 2014 21:43:30 +0000 (21:43 +0000)]
Merge "get_binary_name should returns strings without spaces"

9 years agoAdd validation for the dvr router l3agent binding
Swaminathan Vasudevan [Tue, 2 Sep 2014 16:48:54 +0000 (09:48 -0700)]
Add validation for the dvr router l3agent binding

Validates dvr router add/remove cases to the
l3agents running in different dvr modes such
as "dvr_snat" and "dvr" mode.

In the case of distributed virtual routers it
does not make sense to move distributed routers
from one "dvr" node to another "dvr" node.

Also added some unit tests that addresses the
validation of legacy routers to dvr agent and
dvr routers to legacy agent.

Partial-Bug: #1369721

Change-Id: I008dda6abaf25094b11f3730b951e096dd3b7025

9 years agoFixes spelling error
Mike King [Fri, 19 Dec 2014 18:03:06 +0000 (11:03 -0700)]
Fixes spelling error

Closes-Bug: #1404341

Change-Id: I1e0209ab293494942efab12baabd4858df40e3aa

9 years agoMerge "validate L3 HA min/max _l3_agents_per_router"
Jenkins [Tue, 23 Dec 2014 19:18:27 +0000 (19:18 +0000)]
Merge "validate L3 HA min/max _l3_agents_per_router"

9 years agoget_binary_name should returns strings without spaces
Cedric Brandily [Fri, 19 Dec 2014 14:05:53 +0000 (15:05 +0100)]
get_binary_name should returns strings without spaces

Iptables does not support chain names with spaces. It implies
get_binary_name should return strings without spaces (they are used as
chain name prefix). But currently 'python -m unittest $module' implies
spaces in get_binary_name() result, it disallows to use it when $module
is a functional test module. This change replaces spaces with
underscores in get_binary_name results.

Change-Id: Ie7c8518b92be46a4eea4e9345713fdeba844126d
Closes-Bug: #1404250

9 years agoMerge "ML2 UT: Fix incorrect mock return value"
Jenkins [Tue, 23 Dec 2014 17:44:10 +0000 (17:44 +0000)]
Merge "ML2 UT: Fix incorrect mock return value"

9 years agovalidate L3 HA min/max _l3_agents_per_router
venkata anil [Tue, 9 Dec 2014 14:11:49 +0000 (14:11 +0000)]
validate L3 HA min/max _l3_agents_per_router

The below missing validation is added for L3 HA
max_l3_agents_per_router >= min_l3_agents_per_router

Closes-bug: #1400311
Change-Id: I1d548b9a0a04c8855ada42206c2a333597c2c85b

9 years agoMerge "ml2: remove superfluous %s in LOG.debug() format"
Jenkins [Tue, 23 Dec 2014 10:53:55 +0000 (10:53 +0000)]
Merge "ml2: remove superfluous %s in LOG.debug() format"

9 years agoMerge "Prevent symlinks to be added to the tree"
Jenkins [Tue, 23 Dec 2014 06:08:08 +0000 (06:08 +0000)]
Merge "Prevent symlinks to be added to the tree"

9 years agoMerge "PLUMgrid plugin: Fix for delete subnet with admin context"
Jenkins [Mon, 22 Dec 2014 16:57:00 +0000 (16:57 +0000)]
Merge "PLUMgrid plugin: Fix for delete subnet with admin context"

9 years agoML2 UT: Fix incorrect mock return value
Robert Pothier [Mon, 22 Dec 2014 16:42:35 +0000 (11:42 -0500)]
ML2 UT: Fix incorrect mock return value

In the UT for ML2 Cisco Nexus MD,
in the function test_ncclient_version_detect()
The value being passed into the mock is incorrect
to mock the ncclient connect object.

Change-Id: Ife1fc2a8f8fe284605ad77cee4ffa307e6d5360c
Closes-Bug: #1404927

9 years agoMerge "ipv6: set OtherConfig flag for DHCPv6 stateless subnets"
Jenkins [Mon, 22 Dec 2014 14:48:37 +0000 (14:48 +0000)]
Merge "ipv6: set OtherConfig flag for DHCPv6 stateless subnets"

9 years agoMerge "Update L3 agent drivers singletons to look at new agent"
Jenkins [Mon, 22 Dec 2014 10:57:31 +0000 (10:57 +0000)]
Merge "Update L3 agent drivers singletons to look at new agent"

9 years agoipv6: set OtherConfig flag for DHCPv6 stateless subnets
Ihar Hrachyshka [Thu, 27 Nov 2014 14:43:48 +0000 (15:43 +0100)]
ipv6: set OtherConfig flag for DHCPv6 stateless subnets

In case of DHCPv6 stateless subnets, we should inform DHCP clients about
other configuration values available from DHCP server. This is done by
setting O (other) flag in RAs, which is controlled by AdvOtherConfigFlag
setting in radvd case.

Since radvd configuration file becomes quite complex, migrated its
generation to Jinja2.

Added a basic unit test that checks that flag is set for stateless mode
and not SLAAC. For stateful, it doesn't really matter whether other flag
is set, so no need to expect any value of it.

No more unit tests seem to be needed: conditional prefix generation is
already covered in test_l3_agent, and other statements are common for
all ipv6_ra_modes.

Change-Id: I1ddad3e1f5efce2b6da4ec00b9294e08fe1e85dd
Closes-Bug: #1397022

9 years agoMerge "Fix typo'd format parameter in midonet_lib.py"
Jenkins [Mon, 22 Dec 2014 09:59:37 +0000 (09:59 +0000)]
Merge "Fix typo'd format parameter in midonet_lib.py"

9 years agoPLUMgrid plugin: Fix for delete subnet with admin context
Fawad Khaliq [Sun, 21 Dec 2014 20:57:27 +0000 (12:57 -0800)]
PLUMgrid plugin: Fix for delete subnet with admin context

When delete call using admin for a subnet created from a
non-admin project is made, the tenant_id passed to backend
happened to be of admin project. This commit fixes the issues
by getting the correct tenant_id.

Closes-Bug: 1404688
Change-Id: Id21c38610ed73defb937d971a7aade57713541c0

9 years agoml2: remove superfluous %s in LOG.debug() format
Angus Lees [Mon, 22 Dec 2014 03:52:42 +0000 (14:52 +1100)]
ml2: remove superfluous %s in LOG.debug() format

ml2.db.get_dynamic_segment() includes this line:

   LOG.debug("No dynamic segment %s found for "
     "Network:%(network_id)s, "
     "Physical network:%(physnet)s, "
     "segmentation_id:%(segmentation_id)s",
     {'network_id': network_id,
      'physnet': physical_network,
      'segmentation_id': segmentation_id})

Note the superfluous %s in the format string.  At run-time, %s prints
the args hash again and doesn't cause an error, but this is clearly
unintended.

Since there doesn't seem to be any value that was meant to be used
instead, this change simply removes the %s.

Change-Id: I414c7b4497f59927d8b6ec5f057dca19aa4ef122
Closes-Bug: #1404782

9 years agoFix typo'd format parameter in midonet_lib.py
Angus Lees [Sun, 21 Dec 2014 23:25:58 +0000 (10:25 +1100)]
Fix typo'd format parameter in midonet_lib.py

In add_static_nat(...):

        LOG.debug("MidoClient.add_static_nat called: "
                  "tenant_id=%(tenant_id)s, chain_name=%(chain_name)s, "
                  "from_ip=%(from_ip)s, to_ip=%(to_ip)s, "
                  "port_id=%(port_id)s, nat_type=%(nat_type)s",
                  {'tenant_id': tenant_id, 'chain_name': chain_name,
                   'from_ip': from_ip, 'to_ip': to_ip,
                   'portid': port_id, 'nat_type': nat_type})

Note port_id vs portid.  This line of code raises a KeyError if debug
logging is enabled.

(Found via pylint)

Change-Id: I4d76255a559489f2f0e074b4489cfa5f33f1dddf
Closes-Bug: #1404755

9 years agoUpdate L3 agent drivers singletons to look at new agent
Assaf Muller [Sun, 21 Dec 2014 14:15:12 +0000 (16:15 +0200)]
Update L3 agent drivers singletons to look at new agent

L3 agent drivers are singletons. They're created once, and hold
self.l3_agent. During testing, the agent is tossed away and
re-built, but the drivers singletons are pointing at the old
agent, and its old configuration.

Change-Id: Ie8a15318e71ea47cccad3b788751d914d51cbf18
Closes-Bug: #1404662

9 years agoMerge "Minor lbaasv2 things from the feature branch, needed in neutron"
Jenkins [Sun, 21 Dec 2014 05:27:17 +0000 (05:27 +0000)]
Merge "Minor lbaasv2 things from the feature branch, needed in neutron"

9 years agoPrevent symlinks to be added to the tree
armando-migliaccio [Sun, 21 Dec 2014 04:55:35 +0000 (20:55 -0800)]
Prevent symlinks to be added to the tree

Symlinks cannot be allowed because they are not supported by distutils.
Adding them results into package build failures.

This patch add a check that verifies that no symlinks can slip in.

Closes-bug: #1404605

Change-Id: I0d308127081bb2fa4ff7d7e0ed2f1b6e915163c9

9 years agoMerge "Scope dhcp rpc api using a messaging namespace"
Jenkins [Sat, 20 Dec 2014 23:07:27 +0000 (23:07 +0000)]
Merge "Scope dhcp rpc api using a messaging namespace"

9 years agoCopy the contrib directory instead of moving it
armando-migliaccio [Sat, 20 Dec 2014 17:39:55 +0000 (09:39 -0800)]
Copy the contrib directory instead of moving it

This is necessary because pbr is stupid enough not to be
able to handle symlinks. The initial symlink was necessary to
avoid breaking the functional job. Once change [1] merges we
can drop the old contrib directory.

[1] https://review.openstack.org/#/c/142603/

Change-Id: I683009b1c5b3520e5f9f2c17a9a0dabefdeebe45

9 years agoMerge "Revert "Add metadata proxy L3 agent driver""
Jenkins [Sat, 20 Dec 2014 07:10:01 +0000 (07:10 +0000)]
Merge "Revert "Add metadata proxy L3 agent driver""

9 years agoRevert "Add metadata proxy L3 agent driver"
Henry Gessau [Sat, 20 Dec 2014 05:08:43 +0000 (05:08 +0000)]
Revert "Add metadata proxy L3 agent driver"

This reverts commit 6b38f29fdbd077434f1f7139466479e81bf4882d.

Because it broke the functional job.

Change-Id: Ibcc577ade490663820f0a4f599afc6127a6e52e6

9 years agoMerge "Remove NSX 'service' plugin"
Jenkins [Sat, 20 Dec 2014 02:43:20 +0000 (02:43 +0000)]
Merge "Remove NSX 'service' plugin"

9 years agoMerge "Add metadata proxy L3 agent driver"
Jenkins [Sat, 20 Dec 2014 02:37:59 +0000 (02:37 +0000)]
Merge "Add metadata proxy L3 agent driver"

9 years agoScope dhcp rpc api using a messaging namespace
Russell Bryant [Tue, 9 Dec 2014 17:30:53 +0000 (17:30 +0000)]
Scope dhcp rpc api using a messaging namespace

This patch updates the rpc API used by the DHCP agent to make calls
back into the neutron plugin to use the 'dhcp' namespace instead of
the default namespace.  The reason is that this API is exposed over
the 'q-plugin' topic along with several other interfaces.  Without the
use of namespaces, all of the interfaces are effectively treated as
one by oslo.messaging.  When a namespace is used, the interface can be
versioned independently and when a method is called, the only class
considered for fulfilling the request is the one that claims to
implement the 'dhcp' namespace.

While we're here, add documentation to both the client and server side
of this interface that indicates where the other side is located.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: I9e56aa34fc560ae3fc749c51788436e32179d0a1

9 years agoMerge "IpsetManager refactoring"
Jenkins [Fri, 19 Dec 2014 11:04:37 +0000 (11:04 +0000)]
Merge "IpsetManager refactoring"

9 years agoRemove NSX 'service' plugin
Salvatore [Wed, 17 Dec 2014 22:09:24 +0000 (23:09 +0100)]
Remove NSX 'service' plugin

Following the spin-off for Neutron advanced services, this plugin
has become non-functional.
This patch removes the plugin, the service drivers, the database
models which kept tracking of resource associations, exceptions,
and obviously unit tests.

As there were some extensions which were leveraged only by this
plugin, they are being removed as well. In particular, one of
these extensions, 'routed-service-insertion' was in the
neutron.extensions package rather than neutron.plugins.vmware
package. This was for historical reasons. As no other plugin is
using this extension, it is being removed as well with this
patch.

By removing this plugin vmware the temporary skips applied to
neutron unit tests can be lifted. This patch does this.

Closes-Bug: #1403585

Change-Id: I0717f955b0f787c2951cb9db44ea5decc5d3dff0

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Fri, 19 Dec 2014 06:09:45 +0000 (06:09 +0000)]
Imported Translations from Transifex

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

Change-Id: I1c8a871becb19341c55d515cb9ed604e2d7ea723

9 years agoMerge "Move DB TestModelsMigrations from unit to functional"
Jenkins [Fri, 19 Dec 2014 05:31:56 +0000 (05:31 +0000)]
Merge "Move DB TestModelsMigrations from unit to functional"

9 years agoMerge "tests: drop unit tests that only check default configuration values"
Jenkins [Fri, 19 Dec 2014 03:49:33 +0000 (03:49 +0000)]
Merge "tests: drop unit tests that only check default configuration values"

9 years agoMove DB TestModelsMigrations from unit to functional
Henry Gessau [Sun, 5 Oct 2014 05:23:50 +0000 (01:23 -0400)]
Move DB TestModelsMigrations from unit to functional

The tests to check that DB migrations and models are in sync depends
on the mysql and postgresql backends being available with a specific
DB user and database created. This violates the principles for unit
tests and therefore these tests should be moved to functional tests.

For these tests to work in the functional job in the gate, the
backends must be installed and the DB user and database created.
We do this via the functional gate hook.

Closes-bug: #1372981

Change-Id: I7b89feef3f19ca07dbfb05acfaa30529a5bf683d

9 years agoMerge "Move contrib directory to base test directory"
Jenkins [Fri, 19 Dec 2014 03:27:56 +0000 (03:27 +0000)]
Merge "Move contrib directory to base test directory"

9 years agoMerge "Update heal_script for alembic 0.7.1"
Jenkins [Fri, 19 Dec 2014 03:24:59 +0000 (03:24 +0000)]
Merge "Update heal_script for alembic 0.7.1"

9 years agoMerge "Avoid unnecessary explicit str() conversion around exceptions"
Jenkins [Fri, 19 Dec 2014 03:21:38 +0000 (03:21 +0000)]
Merge "Avoid unnecessary explicit str() conversion around exceptions"

9 years agoMerge "Fix AttributeError during startup of ovs agent in DVR mode"
Jenkins [Fri, 19 Dec 2014 02:49:58 +0000 (02:49 +0000)]
Merge "Fix AttributeError during startup of ovs agent in DVR mode"

9 years agoMerge "Improve performance of get_active_networks_info"
Jenkins [Fri, 19 Dec 2014 00:05:29 +0000 (00:05 +0000)]
Merge "Improve performance of get_active_networks_info"

9 years agotests: drop unit tests that only check default configuration values
Ihar Hrachyshka [Tue, 16 Dec 2014 19:28:15 +0000 (20:28 +0100)]
tests: drop unit tests that only check default configuration values

Those tests do not add much value and only introduce burden when a
default value should be changed.

Change-Id: I32049399b16338996d6bef342c004d5de2446cf1

9 years agoMerge "Backward compatibility for advanced services"
Jenkins [Thu, 18 Dec 2014 20:18:05 +0000 (20:18 +0000)]
Merge "Backward compatibility for advanced services"

9 years agoMerge "Advanced services support in neutron-db-manage"
Jenkins [Thu, 18 Dec 2014 20:03:26 +0000 (20:03 +0000)]
Merge "Advanced services support in neutron-db-manage"

9 years agoBackward compatibility for advanced services
Jakub Libosvar [Tue, 16 Dec 2014 16:33:23 +0000 (17:33 +0100)]
Backward compatibility for advanced services

Patch implements translation from class paths to neutron to class paths
to neutron_<adv_service>. It's achieved by defining entry point in
setup.cfg which is translated by stevedore.

There will be needed patches in advanced services tree calling
get_provider_driver_class() function before importing class.

This patch specifically fixes loading service plugins and
drivers for service plugin. Patches for agents are still needed in
neutron repo and adv services repos.

Alternative and better solution would be implementing new DriverType
to oslo.config, which will have callback to
get_provider_driver_class()-like function.

Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
Change-Id: I76af175c4387326a4e5ff95c2f15d8b866dedab3
Partial-Bug: 1401895

9 years agoUpdate heal_script for alembic 0.7.1
Ann Kamyshnikova [Thu, 4 Dec 2014 09:21:04 +0000 (12:21 +0300)]
Update heal_script for alembic 0.7.1

Alembic 0.7.1 contains checks of foreign keys so
method check_foreign_keys is not needed anymore.
Heal script should be updated to make it possible to use alembic
methods.

Closes-bug: #1398417

Change-Id: I7d0ba7f00567ae5a4dd0669ed86d6e8d554ca4ec

9 years agoMerge "Cisco: unsupported format character in log format"
Jenkins [Thu, 18 Dec 2014 13:47:26 +0000 (13:47 +0000)]
Merge "Cisco: unsupported format character in log format"

9 years agoMerge "Updated from global requirements"
Jenkins [Thu, 18 Dec 2014 12:56:28 +0000 (12:56 +0000)]
Merge "Updated from global requirements"

9 years agoAdd metadata proxy L3 agent driver
Assaf Muller [Sun, 23 Nov 2014 14:09:41 +0000 (16:09 +0200)]
Add metadata proxy L3 agent driver

To-Do:
* vArmourL3NATAgent (Before this patch) overrides _spawn/destroy_metadata_proxy
  with empty stubs. This behavior should be maintained so that the metadata proxy
  is not created when using vArmourL3NATAgent. It also overrides _router_added
  and _router_removed, causing L3 agent driver notifications to not send out.

Partially-implements: blueprint restructure-l3-agent
Change-Id: I36900b02bff34269f789956aa324379ff51eb81b

9 years agoMerge "Removed unused iso8601 dependency"
Jenkins [Thu, 18 Dec 2014 12:39:49 +0000 (12:39 +0000)]
Merge "Removed unused iso8601 dependency"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Thu, 18 Dec 2014 10:47:33 +0000 (10:47 +0000)]
Merge "Imported Translations from Transifex"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 18 Dec 2014 10:15:59 +0000 (10:15 +0000)]
Updated from global requirements

Change-Id: I181fc4f2b066eca08f2f23c5d2ff996aa46795ab

9 years agoMerge "openvswitch/ofagent: Remove OVS.enable_tunneling option"
Jenkins [Thu, 18 Dec 2014 09:47:24 +0000 (09:47 +0000)]
Merge "openvswitch/ofagent: Remove OVS.enable_tunneling option"

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 agoMove contrib directory to base test directory
armando-migliaccio [Wed, 17 Dec 2014 19:31:26 +0000 (11:31 -0800)]
Move contrib directory to base test directory

This is needed to have post hook apply to both functional and api jobs.

This is aimed at fixing the output for the dsvm-api job in preparation
of the retargatable testing blueprint.

Change-Id: I39e2a7521a7b545a124b1cd42dc79da8986eff93

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 agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 17 Dec 2014 06:05:36 +0000 (06:05 +0000)]
Imported Translations from Transifex

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

Change-Id: Ia7bcef7a0efacc79c467b18863cb8180b6a89a28

9 years agoCisco: unsupported format character in log format
Angus Lees [Wed, 17 Dec 2014 04:44:12 +0000 (15:44 +1100)]
Cisco: unsupported format character in log format

CiscoCfgAgent.hosting_devices_removed() contains an error in the
format string used to log errors:

    LOG.error(_LE("Invalid payload format for received RPC message "
"`hosting_devices_removed`. Error is %{error}s. "
"Payload is %(payload)s"),
      {'error': e, 'payload': payload})

"%{error}s" should be "%(error)s"

The existing version raises "ValueError: unsupported format character
'{' (0x7b)" when invoked.

(found via pylint)

Change-Id: Ic5e9db2a19aa7652cbbd1ee04d7e02914e8d0093
Closes-Bug: #1403304

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 agoMinor lbaasv2 things from the feature branch, needed in neutron
Doug Wiegley [Sat, 13 Dec 2014 02:20:47 +0000 (19:20 -0700)]
Minor lbaasv2 things from the feature branch, needed in neutron

- Minor neutron.conf fix from feature branch until config is moved
- Some extra constants for extension
- Jinja template entry in services.conf

Change-Id: I4a15d0ac422457d2286d4b24d9f5067047e81563
Partially-Implements: blueprint services-split
Co-Authored-By: Brandon Logan <brandon.logan@rackspace.com>
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 agoAdvanced services support in neutron-db-manage
Brandon Logan [Wed, 10 Dec 2014 00:22:27 +0000 (18:22 -0600)]
Advanced services support in neutron-db-manage

Partially-Implements: blueprint services-split

Change-Id: Ib8cd77e5e777be83c44b69edc0a6d2d2ba5d2ab1

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 agoRemoved unused iso8601 dependency
Ihar Hrachyshka [Tue, 16 Dec 2014 10:51:48 +0000 (11:51 +0100)]
Removed unused iso8601 dependency

It should have been removed when migrating to oslo.utils when we dropped
timeutils module from our tree.

Change-Id: I4093a3c8faf3da5790ee31fdebec0b8ed70f84f3

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 agoAvoid unnecessary explicit str() conversion around exceptions
Ann Kamyshnikova [Wed, 3 Dec 2014 12:57:58 +0000 (15:57 +0300)]
Avoid unnecessary explicit str() conversion around exceptions

There are number of places like

except Exception as exc:
            LOG.error("Failed to get network: %s", str(exc))

where str() is not needed since %s substitution already does
the same conversion. Also LOG.error could be replaced with
LOG.exception, so argument exc won't be needed at all.

Closes-bug: #1398839

Change-Id: I73cc6e1ce55ade08e7706b99a5ab075f7059a4ef

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 agoImprove performance of get_active_networks_info
yangxurong [Tue, 11 Nov 2014 09:06:22 +0000 (17:06 +0800)]
Improve performance of get_active_networks_info

RPC 'get_active_networks_info' currently uses nested loop to fill
the network structure with subnet and port info. Speed up this
operation by using itertools.groupby.

Change-Id: If765dd8f2f8010b79eb168179a64dccf940e9cbb
Closes-Bug: #1390356

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 agoopenvswitch/ofagent: Remove OVS.enable_tunneling option
YAMAMOTO Takashi [Fri, 24 Oct 2014 07:25:38 +0000 (16:25 +0900)]
openvswitch/ofagent: Remove OVS.enable_tunneling option

The option has been marked deprecated in IceHouse.
Please use AGENT.tunnel_types=gre instead.

DocImpact
Related-Bug: #1195374
Change-Id: Iea6159c5949a63a0b680818a3fd0928d470115bd

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"