]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoCode refactor for generating integer in testcase
Manjeet Singh Bhatia [Fri, 2 Oct 2015 21:36:22 +0000 (17:36 -0400)]
Code refactor for generating integer in testcase

This will remove the need of import random in unit/objects/test_base.py
as its already done in tests/tools.py and some of the functions are
called from there.

Change-Id: Icf1d5518f9f394b534e3b75cfe55f2adf7fe5169

9 years agoMerge "Adding trailing underscores to devref links"
Jenkins [Mon, 28 Sep 2015 20:46:33 +0000 (20:46 +0000)]
Merge "Adding trailing underscores to devref links"

9 years agoMerge "Fixing traces of "Replace prt variable by port""
Jenkins [Mon, 28 Sep 2015 19:37:28 +0000 (19:37 +0000)]
Merge "Fixing traces of "Replace prt variable by port""

9 years agoMerge "SubnetPoolsTest: Skip IPv6 tests appropriately"
Jenkins [Mon, 28 Sep 2015 19:19:39 +0000 (19:19 +0000)]
Merge "SubnetPoolsTest: Skip IPv6 tests appropriately"

9 years agoMerge "Fixes 'ovs-agent cannot start on Windows because root_helper opt is not found'"
Jenkins [Mon, 28 Sep 2015 19:19:22 +0000 (19:19 +0000)]
Merge "Fixes 'ovs-agent cannot start on Windows because root_helper opt is not found'"

9 years agoMerge "Move ConfigDict and ConfigFileFixture to neutron.tests.common"
Jenkins [Mon, 28 Sep 2015 18:34:44 +0000 (18:34 +0000)]
Merge "Move ConfigDict and ConfigFileFixture to neutron.tests.common"

9 years agoAdding trailing underscores to devref links
armando-migliaccio [Mon, 28 Sep 2015 18:28:32 +0000 (11:28 -0700)]
Adding trailing underscores to devref links

These were missed and it led to bad rendering.

Change-Id: If2ae0e542b16d9c82cbbdcb854b8b3612f64199a

9 years agoMerge "Imported Translations from Zanata"
Jenkins [Mon, 28 Sep 2015 17:49:39 +0000 (17:49 +0000)]
Merge "Imported Translations from Zanata"

9 years agoMerge "Python 3: use "open" instead of "file""
Jenkins [Mon, 28 Sep 2015 16:17:08 +0000 (16:17 +0000)]
Merge "Python 3: use "open" instead of "file""

9 years agoMerge "Kill HEADS file"
Jenkins [Mon, 28 Sep 2015 15:20:10 +0000 (15:20 +0000)]
Merge "Kill HEADS file"

9 years agoMerge "Forbid more than one branch point in alembic dependency chains"
Jenkins [Mon, 28 Sep 2015 12:16:37 +0000 (12:16 +0000)]
Merge "Forbid more than one branch point in alembic dependency chains"

9 years agoPython 3: use "open" instead of "file"
Cyril Roelandt [Mon, 28 Sep 2015 11:46:35 +0000 (13:46 +0200)]
Python 3: use "open" instead of "file"

The "file" function does not exist in Python 3.

Change-Id: I18561fc8e472a53c2c5f599f2312347da4cec273
Partial-Bug: #1500400

9 years agoMerge "Handle empty bridge case in OVSBridge.get_ports_attributes"
Jenkins [Mon, 28 Sep 2015 11:22:14 +0000 (11:22 +0000)]
Merge "Handle empty bridge case in OVSBridge.get_ports_attributes"

9 years agoMerge "Turn device not found errors in to exceptions"
Jenkins [Mon, 28 Sep 2015 11:15:36 +0000 (11:15 +0000)]
Merge "Turn device not found errors in to exceptions"

9 years agoImported Translations from Zanata
OpenStack Proposal Bot [Mon, 28 Sep 2015 06:26:00 +0000 (06:26 +0000)]
Imported Translations from Zanata

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

Change-Id: I534a33e7ff01a01693c16ce1928d70691594d8db

9 years agoHandle empty bridge case in OVSBridge.get_ports_attributes
Assaf Muller [Fri, 25 Sep 2015 18:20:21 +0000 (14:20 -0400)]
Handle empty bridge case in OVSBridge.get_ports_attributes

Before this patch, get_ports_attributes would call
get_port_name_list. In the case of an empty bridge,
get_port_name_list would return an empty list and feed that
in to ovsdb.db_list, thereby returning all ports instead of
no ports.

Change-Id: I5a91028c59d71943b7cef86a94fa6ab1cc3d667c
Closes-Bug: #1499821

9 years agoMerge "Fixes 'ovs-agent fails to start on Windows beacause of SIGHUP'"
Jenkins [Sun, 27 Sep 2015 08:26:37 +0000 (08:26 +0000)]
Merge "Fixes 'ovs-agent fails to start on Windows beacause of SIGHUP'"

9 years agoMerge "Change router unbinding logic to be consistent with data model"
Jenkins [Fri, 25 Sep 2015 23:39:22 +0000 (23:39 +0000)]
Merge "Change router unbinding logic to be consistent with data model"

9 years agoMerge "Cleanup of Translations"
Jenkins [Fri, 25 Sep 2015 23:11:51 +0000 (23:11 +0000)]
Merge "Cleanup of Translations"

9 years agoFixing traces of "Replace prt variable by port"
vikram.choudhary [Fri, 25 Sep 2015 15:27:34 +0000 (20:57 +0530)]
Fixing traces of "Replace prt variable by port"

The fix for https://review.openstack.org/#/c/218350/ has few
more occurrences. This patch addresses those and also changes
"local_port" from "port" in order not to confuse the parameter
with method argument.

Change-Id: I60bfeb9e33f0f69153afec083a2c05ee862fcee2

9 years agoKill HEADS file
Ihar Hrachyshka [Thu, 24 Sep 2015 13:31:15 +0000 (15:31 +0200)]
Kill HEADS file

Now that we forbid branch points as part of check_migration, there is no
technical need in maintaining the file. It only slows down developers that are
forced to resolve git conflicts after every new migration merged.

We remove the file as part of new 'revision' generation.

Now that the file is not present, we introspect the alembic scripts to
determine whether the subproject uses split migrations (presense of a branch
point indicates that).

Change-Id: Ic1ae0c3fc70be859919b89444dbfdcb1068bb1cd

9 years agoMerge "SimpleInterfaceMonitor: get rid of self.data_received flag"
Jenkins [Thu, 24 Sep 2015 19:31:24 +0000 (19:31 +0000)]
Merge "SimpleInterfaceMonitor: get rid of self.data_received flag"

9 years agoMerge "Imported Translations from Zanata"
Jenkins [Thu, 24 Sep 2015 18:57:29 +0000 (18:57 +0000)]
Merge "Imported Translations from Zanata"

9 years agoCleanup of Translations
Andreas Jaeger [Thu, 24 Sep 2015 18:48:59 +0000 (20:48 +0200)]
Cleanup of Translations

In preparation for the release, do some cleanups for translations.

Removes all po files that are partially translated. The translation
team has decided to exclude files with less than 66 % of translated
content. There is no content lost, all data is in the translation
server, we just remove it from the repository.

This updates also recreates pot (translation source files) to
reflect the state of the repository in case there was no recent
import for them.

This change needs to be done manually since the automatic import does
not handle some of these cases.

Change-Id: I865c7db140dc0ae132b41f0c2bc2f278274dece6

9 years agoMove ConfigDict and ConfigFileFixture to neutron.tests.common
Cedric Brandily [Thu, 24 Sep 2015 18:39:35 +0000 (20:39 +0200)]
Move ConfigDict and ConfigFileFixture to neutron.tests.common

This change moves ConfigDict[1] and ConfigFileFixture[1] in order to use
them in fullstack and functional tests (in a follow-up change).

[1] neutron.tests.fullstack.resources.config

Related-bug: #1497027
Change-Id: I16157b0b739c9e620f23c984187b492bf5af2e60

9 years agoTurn device not found errors in to exceptions
Carl Baldwin [Mon, 31 Aug 2015 21:33:53 +0000 (21:33 +0000)]
Turn device not found errors in to exceptions

Change-Id: If697c4c4c09d32abd410ac1fce4d8a6a0d337da1
Partially-implements:  blueprint address-scopes

9 years agoMerge "Add --verbose to subset of cmds in neutron-db-manage"
Jenkins [Thu, 24 Sep 2015 17:03:14 +0000 (17:03 +0000)]
Merge "Add --verbose to subset of cmds in neutron-db-manage"

9 years agoMerge "Fix a few nits with the dashboard pages"
Jenkins [Thu, 24 Sep 2015 16:14:47 +0000 (16:14 +0000)]
Merge "Fix a few nits with the dashboard pages"

9 years agoMerge "Fix quota usage tracker for security group rules"
Jenkins [Thu, 24 Sep 2015 16:14:25 +0000 (16:14 +0000)]
Merge "Fix quota usage tracker for security group rules"

9 years agoSimpleInterfaceMonitor: get rid of self.data_received flag
Ihar Hrachyshka [Thu, 17 Sep 2015 13:52:29 +0000 (15:52 +0200)]
SimpleInterfaceMonitor: get rid of self.data_received flag

It's not used anywhere outside tests, and there are better ways to
wait for updates.

The flag was once used to influence the state of activeness for the
monitor, but not anymore [1].

This cleanup also allows us to remove custom _read_stdout from the
monitor and reuse the one inherited from AsyncProcess. Meaning, we
also can safely get rid of another pile of duplicate tests.

[1]: I05faeddd061ab45af51c044a10462c3a57593d4d

Change-Id: I612d492c8f65a70e18f782a5e4d055de5f7948ef

9 years agoFixes 'ovs-agent fails to start on Windows beacause of SIGHUP'
Adelina Tuvenie [Thu, 24 Sep 2015 13:17:06 +0000 (06:17 -0700)]
Fixes 'ovs-agent fails to start on Windows beacause of SIGHUP'

Change Ic0cf8a9ca7f3a16b556a6825e2979471ae136c33 has added the handling
of SIGHUP in neutron_ovs_agent. This does not work on Windows as there is
no SIGHUP signal on windows.

The fix consists in checking if signal has SIGHUP attr before setting the handler
for SIGHUP.

Change-Id: I08258580252d68db222cbb9db7812ff1dfb37a56
Closes-Bug: #1499345

9 years agoForbid more than one branch point in alembic dependency chains
Ihar Hrachyshka [Thu, 24 Sep 2015 12:27:33 +0000 (14:27 +0200)]
Forbid more than one branch point in alembic dependency chains

This change will allow us to get rid of HEADS file that currently serves as a
caution guard against excessive branching due to git conflicts it invokes on
any new migration merged.

Change-Id: Iab88e4e11cea319bb7cfa364cb5cdefe9dcb004b

9 years agoFix quota usage tracker for security group rules
Salvatore Orlando [Thu, 24 Sep 2015 12:45:40 +0000 (05:45 -0700)]
Fix quota usage tracker for security group rules

This simple patch ensures usage for security group rules is
marked as dirty when a security group rule is deleted.
To this aim, the security group rule is deleted using ORM
in order to ensure the sqlalchemy even if fired.

Closes-Bug: #1499339

Change-Id: I1e81fe03fed14ec438cea5d7675f66caeb91afd8

9 years agoFixes 'ovs-agent cannot start on Windows because root_helper opt is not found'
Adelina Tuvenie [Tue, 22 Sep 2015 06:51:42 +0000 (23:51 -0700)]
Fixes 'ovs-agent cannot start on Windows because root_helper opt is not found'

Change Ie1224f8a1c17268cd7d1c474ed82fdfb8852eaa8 removed
config.register_root_helper() from ovs_neutron_agent:main, thus the agent
cannot start on Windows since root_helper config option is never
registered.

The fix consists in adding config.register_root_helper in the Windows side
utils.

Closes-Bug: #1497930

Change-Id: I6adc3b869c9564cac3ab99174b8fe47584213e59

9 years agoImported Translations from Zanata
OpenStack Proposal Bot [Thu, 24 Sep 2015 06:21:55 +0000 (06:21 +0000)]
Imported Translations from Zanata

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

Change-Id: I731011691e1f8b4bf3ebc850bcfb6ea6102bc1ba

9 years agoMerge "Don't write DHCP opts for SLAAC entries"
Jenkins [Thu, 24 Sep 2015 03:33:15 +0000 (03:33 +0000)]
Merge "Don't write DHCP opts for SLAAC entries"

9 years agoMerge "Remove _extract_roles method from neutron.policy"
Jenkins [Thu, 24 Sep 2015 00:51:26 +0000 (00:51 +0000)]
Merge "Remove _extract_roles method from neutron.policy"

9 years agoMerge "Fix the broken link in devref docs"
Jenkins [Wed, 23 Sep 2015 21:40:36 +0000 (21:40 +0000)]
Merge "Fix the broken link in devref docs"

9 years agoFix a few nits with the dashboard pages
Ryan Moats [Wed, 23 Sep 2015 15:08:57 +0000 (10:08 -0500)]
Fix a few nits with the dashboard pages

1. Use correct title in gate pipeline page
2. Update lbaasv2 job name in check pipeline page

Change-Id: Ie94ecf0b2fde9a8faebf8637ba77691fde6307d4
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoOpen Mitaka development
Thierry Carrez [Wed, 23 Sep 2015 15:49:39 +0000 (17:49 +0200)]
Open Mitaka development

Bump preversion to mark the start of the Mitaka development branch.
The liberty release branch will be cut from the previous commit.

Change-Id: Ib34bb19a8d1bee1988cedf91ea6e08d386a94ca8

9 years agoFix the broken link in devref docs
Akihiro Motoki [Wed, 23 Sep 2015 03:35:40 +0000 (12:35 +0900)]
Fix the broken link in devref docs

The link to Dashboard is broken in the generated docuemnt
http://docs.openstack.org/developer/neutron/
This patch fixes it and addresses warnings so that
tox -e docs works.

Also add a reference to Gerrit Dashboard Creator
so that developers can customize it to what they want.

Change-Id: Ic45ab48e68af9e5e8255161fe9eb2354ae124f50

9 years agoMerge "Remove early yields in _iter_hosts in dhcp agent"
Jenkins [Wed, 23 Sep 2015 14:46:39 +0000 (14:46 +0000)]
Merge "Remove early yields in _iter_hosts in dhcp agent"

9 years agoMerge "Eliminate autoaddress check for DNS integration"
Jenkins [Wed, 23 Sep 2015 03:28:41 +0000 (03:28 +0000)]
Merge "Eliminate autoaddress check for DNS integration"

9 years agoMerge "Adds configurable agent type"
Jenkins [Wed, 23 Sep 2015 03:27:39 +0000 (03:27 +0000)]
Merge "Adds configurable agent type"

9 years agoMerge "Add neutron subproject & stable branch gerrit review links"
Jenkins [Wed, 23 Sep 2015 00:36:03 +0000 (00:36 +0000)]
Merge "Add neutron subproject & stable branch gerrit review links"

9 years agoMerge "Only get host data for floating ips on DVR routers"
Jenkins [Tue, 22 Sep 2015 23:52:56 +0000 (23:52 +0000)]
Merge "Only get host data for floating ips on DVR routers"

9 years agoEliminate autoaddress check for DNS integration
Miguel Lavalle [Tue, 22 Sep 2015 22:22:31 +0000 (17:22 -0500)]
Eliminate autoaddress check for DNS integration

The autoaddress check for DNS integartion is not required anymore. It is
removed from the DB plugin. This check was being performed to reflect
incorrect functionality in the DHCP agent as indicated in bug
https://bugs.launchpad.net/neutron/+bug/1498665

Change-Id: I4b00618c328567f998765ed9a023c4c50d950b2b
Closes-Bug: #1497450

9 years agoOnly get host data for floating ips on DVR routers
Carl Baldwin [Wed, 16 Sep 2015 21:53:54 +0000 (21:53 +0000)]
Only get host data for floating ips on DVR routers

First, we are only interested in setting the host attribute when
the router is a DVR router.  Second, we don't need to query all of
the ports on the host, we just need to query the ports that are
referenced by the set of floating ips that we already have.

Closes-bug: #1496974
Change-Id: If611de14b2ab77d2eb9ce8c5b307ea6dd4403fe1

9 years agoAdd neutron subproject & stable branch gerrit review links
Ryan Moats [Tue, 22 Sep 2015 16:47:26 +0000 (11:47 -0500)]
Add neutron subproject & stable branch gerrit review links

Add links to gerrit URLs that will list reviews for both neutron
subprojects as well as stable branches.

Change-Id: I3b6ab4e57e904dc19ef6e7d116c8b0465e53c21b
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoLink dashboards into generated documentation
Ryan Moats [Mon, 21 Sep 2015 20:56:26 +0000 (15:56 -0500)]
Link dashboards into generated documentation

Move the dashboard directory under the source tree so that
it is available on generated builds. In addition, recast
image pages as RST so that they will be rendered

Change-Id: I316128491e8dae70ac06e260f5bdd8f440d285aa
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoAdd neutron/master review link to dashboard/index.html
Ryan Moats [Mon, 21 Sep 2015 16:15:37 +0000 (11:15 -0500)]
Add neutron/master review link to dashboard/index.html

Add a link to gerrit that provide a summary of outstanding
neutron/master reviews

Change-Id: Ic79eedffc6c0bc761757525e6d7c812f9a470158

9 years agoMerge "Create dashboard page with gate jobs statistics"
Jenkins [Tue, 22 Sep 2015 18:36:33 +0000 (18:36 +0000)]
Merge "Create dashboard page with gate jobs statistics"

9 years agoMerge "Imported Translations from Zanata"
Jenkins [Tue, 22 Sep 2015 15:59:52 +0000 (15:59 +0000)]
Merge "Imported Translations from Zanata"

9 years agoCreate dashboard page with gate jobs statistics
Ryan Moats [Mon, 14 Sep 2015 16:00:36 +0000 (11:00 -0500)]
Create dashboard page with gate jobs statistics

Also added index.html page to allow selection of which graphs
to show.  Linking to existing RST comes in a child patch

Change-Id: I6edd7976ae009fc0279238b30ca5223088b6d81d
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoMerge "ml2: don't consider drivers with no bind_port for qos supported rule types"
Jenkins [Tue, 22 Sep 2015 15:07:22 +0000 (15:07 +0000)]
Merge "ml2: don't consider drivers with no bind_port for qos supported rule types"

9 years agoml2: don't consider drivers with no bind_port for qos supported rule types
Ihar Hrachyshka [Thu, 17 Sep 2015 17:13:22 +0000 (19:13 +0200)]
ml2: don't consider drivers with no bind_port for qos supported rule types

If the driver is not going to bind a port, we should not use it as
justification to limit the subset of rule types available for the user.

The most common scenario for that would be l2pop, that does not handle port
binding, but merely modifies the implementation details of node
interconnection.

Change-Id: Iba0f3530deff3bb2871ebf893c43ef628a80c7c0
Closes-Bug: #1488996

9 years agoAdds configurable agent type
Sean Mooney [Fri, 26 Jun 2015 11:37:22 +0000 (12:37 +0100)]
Adds configurable agent type

This change introduces a new agent_type config option which
allows the ovs agent to be reused by out of tree
mechanism drivers.

DocImpact
Change-Id: I48f4be4b1d51bcff62e86e5814c12bd9bfa3c902
Closes-Bug: #1469871

9 years agoMerge "Relax service module check on service providers"
Jenkins [Tue, 22 Sep 2015 07:50:10 +0000 (07:50 +0000)]
Merge "Relax service module check on service providers"

9 years agoImported Translations from Zanata
OpenStack Proposal Bot [Tue, 22 Sep 2015 07:42:20 +0000 (07:42 +0000)]
Imported Translations from Zanata

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

Change-Id: Ia2eae3b8a9b112856f7ede06e6f9521398baac8c

9 years agoMerge "tests: don't validate respawn as part of ovsdb monitor functional test"
Jenkins [Tue, 22 Sep 2015 03:58:37 +0000 (03:58 +0000)]
Merge "tests: don't validate respawn as part of ovsdb monitor functional test"

9 years agoMerge "ovsdb monitor: get rid of custom _read_stdout/_read_stderr methods"
Jenkins [Tue, 22 Sep 2015 03:58:22 +0000 (03:58 +0000)]
Merge "ovsdb monitor: get rid of custom _read_stdout/_read_stderr methods"

9 years agoMerge "Updated from global requirements"
Jenkins [Tue, 22 Sep 2015 03:32:46 +0000 (03:32 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Get rid of ConfigParser code in ProviderConfiguration"
Jenkins [Tue, 22 Sep 2015 02:28:46 +0000 (02:28 +0000)]
Merge "Get rid of ConfigParser code in ProviderConfiguration"

9 years agoMerge "Fix adding tap failure if bridge mapping is not provided"
Jenkins [Mon, 21 Sep 2015 23:52:15 +0000 (23:52 +0000)]
Merge "Fix adding tap failure if bridge mapping is not provided"

9 years agoMerge "Rename check pipeline dashboards"
Jenkins [Mon, 21 Sep 2015 23:46:56 +0000 (23:46 +0000)]
Merge "Rename check pipeline dashboards"

9 years agoMerge "Change ignore-errors to ignore_errors"
Jenkins [Mon, 21 Sep 2015 21:22:38 +0000 (21:22 +0000)]
Merge "Change ignore-errors to ignore_errors"

9 years agoMerge "Fix hostname roaming for ml2 tunnel endpoints."
Jenkins [Mon, 21 Sep 2015 21:22:25 +0000 (21:22 +0000)]
Merge "Fix hostname roaming for ml2 tunnel endpoints."

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 21 Sep 2015 18:56:49 +0000 (18:56 +0000)]
Updated from global requirements

Change-Id: Ifc569f4371b0fafe071d99bf6542ca2802da8bd9

9 years agoMerge "delete_port: ensure quota usage is marked as dirty"
Jenkins [Mon, 21 Sep 2015 18:24:48 +0000 (18:24 +0000)]
Merge "delete_port: ensure quota usage is marked as dirty"

9 years agoRelax service module check on service providers
armando-migliaccio [Fri, 18 Sep 2015 20:13:59 +0000 (13:13 -0700)]
Relax service module check on service providers

service_provider is a 'special' configuration. It is a MultiStr
option that used to be in neutron.conf, but moved into its own *-aas
config files after the service split. We allow for the definition to
be available 'anywhere': either in neutron.conf or in the *-aas
service's config file.

The list of 'service_provider' can include drivers from within the *-aas
tree, or from elsewhere, and can apply to different service types. Due to
the polymorphic nature of this variable it is very tricky to identify only
the drivers that pertain a specific service module: the service module
may as well implement more than one service type and may have support
from drivers out of tree.

For this reason it is best to relax this check and rely on query filters
when the ServiceManager.get_service_providers() is invoked. Furthermore,
without this fix there was a situation where the value returned by
'service_providers' may be differ depending on how the configuration is
passed on the CLI, and this inconsistency may only cause headaches.

Closes-bug: #1492069

Change-Id: I4db4ce0b287c984d86181227edf769531ecb7bb8

9 years agoGet rid of ConfigParser code in ProviderConfiguration
armando-migliaccio [Fri, 18 Sep 2015 19:21:08 +0000 (12:21 -0700)]
Get rid of ConfigParser code in ProviderConfiguration

We may be unable to get rid of this code, but at least we can
make it slimmer and more oslo_config friendly.

This patch also fixes an issue where plain ConfigParser cannot
handle config options with the same name under same section.

Related-bug: #1492069

Change-Id: I596613eb7b2fc3e894a3c1cc7b7cb24d7137cbc5

9 years agoRename check pipeline dashboards
Ryan Moats [Mon, 21 Sep 2015 13:45:21 +0000 (08:45 -0500)]
Rename check pipeline dashboards

The title and filename of the original graphite dashboards is
incorrect - it should refer to the check pipeline.

Change-Id: Ib17bce084e9a83f1a3db33c47cb7e141e7f5903c
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agotests: don't validate respawn as part of ovsdb monitor functional test
Ihar Hrachyshka [Thu, 17 Sep 2015 13:20:51 +0000 (15:20 +0200)]
tests: don't validate respawn as part of ovsdb monitor functional test

It's already validated by AsyncProcess functional test suite. Instead,
just validate that the monitor generates the initial output, as
expected.

The test is still useful to validate that rootwrap filter works, so
not removing it completely.

Change-Id: I320edaaa2b210e4b34678c60deb31c4875eea298
Closes-Bug: #1495937

9 years agoovsdb monitor: get rid of custom _read_stdout/_read_stderr methods
Ihar Hrachyshka [Thu, 17 Sep 2015 12:57:43 +0000 (14:57 +0200)]
ovsdb monitor: get rid of custom _read_stdout/_read_stderr methods

Those methods do the same thing as AsyncProcess counterparts, just
with logging the received output. It's better to move the logging into
AsyncProcess and control it with __init__ arguments.

This allows us to get rid of some duplicate tests for ovsdb monitor.

Change-Id: Ic20ded27ba09afdd73e4d96c47469c2d7b4d4db5
Related-Bug: #1495937

9 years agoChange ignore-errors to ignore_errors
Monty Taylor [Mon, 21 Sep 2015 14:31:23 +0000 (14:31 +0000)]
Change ignore-errors to ignore_errors

Needed for coverage 4.0

Change-Id: I1e663c65e66b6e9088d4fb5f9b00ab81bfbbe327

9 years agoMerge "Re-adds VIF_TYPE_VHOST_USER to portbindings extension"
Jenkins [Mon, 21 Sep 2015 13:54:22 +0000 (13:54 +0000)]
Merge "Re-adds VIF_TYPE_VHOST_USER to portbindings extension"

9 years agoChange router unbinding logic to be consistent with data model
Eugene Nikanorov [Wed, 9 Sep 2015 10:40:17 +0000 (14:40 +0400)]
Change router unbinding logic to be consistent with data model

Model allows router to be bound to different agents
Code should not make assumptions that the correspondence is 1-to-1

Closes-Bug: #1497980
Change-Id: Ieda9fc6e2d5a85194f2d022ea092cefb55183750

9 years agodelete_port: ensure quota usage is marked as dirty
Salvatore Orlando [Fri, 18 Sep 2015 21:57:21 +0000 (14:57 -0700)]
delete_port: ensure quota usage is marked as dirty

To this aim the ORM session mapper must be used.
This patch simply uses context.session.delete rather than
query.delete, and handles UnmappedInstanceError to safely
complete the operation when the record is deleted by
another transaction.

Change-Id: I55c701fc1e2fda4461501aae532bbe11cce45b75
Closes-Bug: #1497459

9 years agoMerge "OVSAgentTestFramework: Remove _bind_ports"
Jenkins [Mon, 21 Sep 2015 11:59:39 +0000 (11:59 +0000)]
Merge "OVSAgentTestFramework: Remove _bind_ports"

9 years agoFix hostname roaming for ml2 tunnel endpoints.
Miguel Angel Ajo [Thu, 11 Jun 2015 11:15:17 +0000 (13:15 +0200)]
Fix hostname roaming for ml2 tunnel endpoints.

Change I75c6581fcc9f47a68bde29cbefcaa1a2a082344e introduced
a bug where host name changes broke tunneling endpoint updates.
Tunneling endpoint updates roaming a hostname from IP to IP
are a common method for active/passive HA with pacemaker and
should happen automatically without the need for API/CLI calls [1].

delete_endpoint_by_host_or_ip is introduced to allow cleanup of
endpoints that potentially belonged to the newly registered agent,
while preventing the race condition found when deleting ip1 & ip2
in the next situation at step 4:

1) we have hostA: ip1
2) hostA goes offline
3) hostB goes online, with ip1, and registers
4) hostA goes online, with ip2, and registers

[1] https://bugs.launchpad.net/python-neutronclient/+bug/1381664

Change-Id: I04d08d5b82ce9911f3af555b5776fc9823e0e5b6
Closes-Bug: #1464178

9 years agoMerge remote-tracking branch 'origin/feature/pecan' into merge-branch
Kyle Mestery [Sat, 19 Sep 2015 14:44:06 +0000 (14:44 +0000)]
Merge remote-tracking branch 'origin/feature/pecan' into merge-branch

Change-Id: I1c0b6a9837273f6a5a24f537d75c1ff43ff599f8

9 years agoMerge "Update _TestModelMigration"
Jenkins [Sat, 19 Sep 2015 05:30:01 +0000 (05:30 +0000)]
Merge "Update _TestModelMigration"

9 years agoFix adding tap failure if bridge mapping is not provided
Kahou Lei [Sun, 13 Sep 2015 01:48:04 +0000 (18:48 -0700)]
Fix adding tap failure if bridge mapping is not provided

When bridge mapping option is not provided, tap interface cannot be
added properly. The root cause is that linux bridge agent is expecting
bridge mapping option is provided if physical network is presented.

However it is not always the case as Kilo was working fine
without existing bridge mapping

Change-Id: Ie43905887a9bc60858e3edae7fc339a7e0485716
Closes-bug: #1495161

9 years agoSubnetPoolsTest: Skip IPv6 tests appropriately
YAMAMOTO Takashi [Thu, 17 Sep 2015 23:28:34 +0000 (08:28 +0900)]
SubnetPoolsTest: Skip IPv6 tests appropriately

Rename a class variable so that it will be checked by the base class.

Certain tests were not being run correctly due to subclasses
incorrectly overriding a base class variable. This change names
the variable correctly in the subclasses to fix the problem.

Closes-Bug: #1497188
Change-Id: I97756b91cbec297ade7efcc8986a038a184b3a84

9 years agoMerge "Fixes SNAT port not found for internal port"
Jenkins [Fri, 18 Sep 2015 23:07:52 +0000 (23:07 +0000)]
Merge "Fixes SNAT port not found for internal port"

9 years agoMerge "Remove pecan branch reference from .gitreview file" into feature/pecan
Jenkins [Fri, 18 Sep 2015 22:50:34 +0000 (22:50 +0000)]
Merge "Remove pecan branch reference from .gitreview file" into feature/pecan

9 years agoMerge "Remove an invalid comment."
Jenkins [Fri, 18 Sep 2015 22:08:42 +0000 (22:08 +0000)]
Merge "Remove an invalid comment."

9 years agoRemove an invalid comment.
Margaret Frances [Tue, 15 Sep 2015 15:10:43 +0000 (11:10 -0400)]
Remove an invalid comment.

Closes-Bug: 1491110
Change-Id: I6c000f8891eb9c120dfaaac5938dfc69bf4c1572
Signed-off-by: Margaret Frances <margaret_frances@cable.comcast.com>
9 years agoMerge "Use pecan controllers for routing" into feature/pecan
Jenkins [Fri, 18 Sep 2015 19:36:32 +0000 (19:36 +0000)]
Merge "Use pecan controllers for routing" into feature/pecan

9 years agoMerge "Imported Translations from Zanata"
Jenkins [Fri, 18 Sep 2015 18:45:52 +0000 (18:45 +0000)]
Merge "Imported Translations from Zanata"

9 years agoFixes SNAT port not found for internal port
Swaminathan Vasudevan [Wed, 16 Sep 2015 18:13:46 +0000 (11:13 -0700)]
Fixes SNAT port not found for internal port

For every router interface added to a router
with a default gateway there will be an internal
SNAT port generated and will be required by the
L3 Agent to process the SNAT rules.

This bug was introduced by the change ID below
Icc099c1a97e3e68eeaf4690bc83167ba30d8099a.

When the gateway is removed these ports have to
be removed from the namespace. These ports are
cached in the router_info and should be provided
to the get_snat_port_for_internal_port function
when called from external_gateway_removed or when
called from _dvr_internal_network_removed.

This patch fixes this problem.

Closes-Bug: #1496578

Change-Id: Id5af4774ba246e24f343f5623af5ea9143bd5f6b

9 years agoDon't write DHCP opts for SLAAC entries
Kevin Benton [Fri, 18 Sep 2015 14:15:45 +0000 (07:15 -0700)]
Don't write DHCP opts for SLAAC entries

Change I81b4669eadaa9119e08c6a5e1d2a7b5959babdcc
caused DHCP options to be written for SLAAC entries
when they previously were not. This restores the previous
behavior.

Closes-Bug: #1499054
Change-Id: I81400305f166d62aa4612aab54602abb8178b64c

9 years agoMerge "Optimize if statement in dvr_local_router.py"
Jenkins [Fri, 18 Sep 2015 17:06:58 +0000 (17:06 +0000)]
Merge "Optimize if statement in dvr_local_router.py"

9 years agoMerge "Introduce a separate RPC server" into feature/pecan
Jenkins [Fri, 18 Sep 2015 16:58:54 +0000 (16:58 +0000)]
Merge "Introduce a separate RPC server" into feature/pecan

9 years agoMerge "Remove restriction of adding constraints to expand"
Jenkins [Fri, 18 Sep 2015 15:50:52 +0000 (15:50 +0000)]
Merge "Remove restriction of adding constraints to expand"

9 years agoMerge "Add skeleton to 'Effective Neutron' devref"
Jenkins [Fri, 18 Sep 2015 15:47:15 +0000 (15:47 +0000)]
Merge "Add skeleton to 'Effective Neutron' devref"

9 years agoUpdate _TestModelMigration
Ann Kamyshnikova [Fri, 18 Sep 2015 15:21:44 +0000 (18:21 +0300)]
Update _TestModelMigration

_TestModelMigrationTest contain some duplication of code from oslo.db.
As change 94d583acde16860e7ca535bd7a960e8993cd12d2 was merged and
included in oslo.db 2.4.1 this duplication can be avoid.

Change-Id: I5e789fb2fd6a27c1778b6155afc3d0396ccb5cb9

9 years agoAdd --verbose to subset of cmds in neutron-db-manage
Matt Thompson [Thu, 17 Sep 2015 11:27:44 +0000 (12:27 +0100)]
Add --verbose to subset of cmds in neutron-db-manage

This commit updates neutron/db/migration/cli.py such that --verbose can
be passed to the following commands:

- current
- history
- branches

We also update tests in neutron/tests/unit/db/test_migration.py and add
a new test for 'neutron-db-manage branches' as that appears to be
untested.

Lastly, we add a brief description of the newly added capability to
doc/source/devref/alembic_migrations.rst.

Change-Id: I9fc136055b422f12a22c1365f52f17df53219820
Closes-Bug: #1488021

9 years agoUse pecan controllers for routing
Salvatore Orlando [Fri, 14 Aug 2015 23:32:38 +0000 (16:32 -0700)]
Use pecan controllers for routing

Pecan defines several efficient mechanism for routing requests to
the appropriate controller, but the current code for Neutron's
Pecan WSGI server basically uses Pecan hooks to route requests.

This patch partially fixes that, removing the 'resource_identifier'
pecan hook and replacing it with explicit pecan routes between
controllers added at resource registration time.

All the remaining hooks, like attribute_population and
policy_enforments, which were relying on finding the resource
name in the pecan.request threadlocal variable have been updated.

This patch also:
- ensures the appropriate plugin is always selected for a given
  resource
- add a common NeutronPecanController base class for the classes
  CollectionsController and ItemaController
- Fixes the way in which plurals and singulars are handled in
  neutron.api.v2.resource_heper

Change-Id: I4ec0d2276c3974117b497228d289c3fb0dc5a140

9 years agoMerge "Fix log statement to log correct variable first_ip"
Jenkins [Fri, 18 Sep 2015 06:31:18 +0000 (06:31 +0000)]
Merge "Fix log statement to log correct variable first_ip"