]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 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 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 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 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 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 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"

9 years agoImported Translations from Zanata
OpenStack Proposal Bot [Fri, 18 Sep 2015 06:06:47 +0000 (06:06 +0000)]
Imported Translations from Zanata

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

Change-Id: Ibbe1b9311c7b6c3fdf57afcca1d62590126caed8

9 years agoMerge "Introduce kill_signal parameter to AsynProcess.stop()"
Jenkins [Fri, 18 Sep 2015 03:52:43 +0000 (03:52 +0000)]
Merge "Introduce kill_signal parameter to AsynProcess.stop()"

9 years agoMerge "ipam: Prevent none from being passed to delete"
Jenkins [Fri, 18 Sep 2015 00:56:50 +0000 (00:56 +0000)]
Merge "ipam: Prevent none from being passed to delete"

9 years agoAdd skeleton to 'Effective Neutron' devref
armando-migliaccio [Thu, 17 Sep 2015 04:36:07 +0000 (21:36 -0700)]
Add skeleton to 'Effective Neutron' devref

Have you ever wondered why you were making the same mistakes
over and over again and wondered how you can remind yourself not
to repeat them again?

Have you ever felt like you posted review comments on some other
patch, only to see that the same anti-pattern was adopted in
someone else's?

Have you wondered what the heck that test was meant to validate?

Does that sound familiar to you? Yes? Great, we have the answer
for you! 'Effective Neutron' is the solution to all your problems!
From now on, everytime you bang your head against the monitor, do
not despair! You may find the answer to your grief in our collective
guide!

Go check it out!

(Your mileage may vary -- add your disclaimer here)

Change-Id: If1b8c1d04e1204985a4f9febb775c4fdb20305e9

9 years agoIntroduce kill_signal parameter to AsynProcess.stop()
Jakub Libosvar [Thu, 17 Sep 2015 13:26:05 +0000 (13:26 +0000)]
Introduce kill_signal parameter to AsynProcess.stop()

All stop() calls of instances of AsyncProcess class were sending
hardcoded SIGKILL signal to its process. This patch leaves the default
behavior to SIGKILL but offers any number to be sent to kill command.

Note: Internal private methods also got a new parameter which is not
      appended. Given that those methods are private and thus not used
      outside of the class, we can afford it.

Change-Id: Ib7b0273c134d59c6a50173d4c2eb35761fcd3d62
Related-Bug: #1487548

9 years agoRemove early yields in _iter_hosts in dhcp agent
Kevin Benton [Thu, 17 Sep 2015 16:53:46 +0000 (09:53 -0700)]
Remove early yields in _iter_hosts in dhcp agent

There were early yields in the DHCP agent to handling skipping
lease setup for certain IPv6 addresses. However, the setup for
name resolution in _output_addn_hosts_file depends on the same
function so certain IPv6 addresses weren't getting name resolution.

This patch adjusts the function to return a flag indicating that
DHCP isn't required for the port so the callers setting up reservations
can skip based on that and the name resolution setup can continue
as normal.

Change-Id: I81b4669eadaa9119e08c6a5e1d2a7b5959babdcc
Closes-Bug: #1498665

9 years agoOptimize if statement in dvr_local_router.py
Ryan Moats [Tue, 25 Aug 2015 10:57:03 +0000 (05:57 -0500)]
Optimize if statement in dvr_local_router.py

The if statement for calling create_rtr_2_fip_link and kicking
the FW agent includes a check on floating_ips, that has already
been performed by the previous if block.  Pull this block into
the previous block for code clarity.

Change-Id: I8661aa3998bda9341f558d0ecbc8e2663cd95aca
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
Co-Authored-By: Brian Haley <brian.haley@hpe.com>
9 years agoRe-adds VIF_TYPE_VHOST_USER to portbindings extension
Sean Mooney [Thu, 17 Sep 2015 12:31:13 +0000 (13:31 +0100)]
Re-adds VIF_TYPE_VHOST_USER to portbindings extension

- This change re-adds the definition of the VIF_TYPE_VHOST_USER
  constant to the neuton portbinding extension.
- This change enables reuse of a single common VIF_TYPE_VHOST_USER
  constant between all agents and mechanism drivers that wish
  to support the qemu vhost-user interface type.

Change-Id: If92afb03f91a9092657e5b50c058f258952bafd8
Partial-Bug: #1477611

9 years agoIntroduce a separate RPC server
Salvatore Orlando [Mon, 10 Aug 2015 23:03:41 +0000 (16:03 -0700)]
Introduce a separate RPC server

As the Pecan server only server REST requests over HTTP, this
patch introduces a new server implementing the RPC over AMQP
endpoints for agent/server communication.

However, the REST server does not yet have the ability to send
notifications to the RPC server or directly to the agents.
This patch simply adapts the ML2 plugin to run the RPC notifiers
only when initialized in the pecan server, so that notification
to agents can still be sent.

This patch therefore is tantamount to a poor man's
implementation of REST/RPC separation which will be iteratively
improved.

Change-Id: Ie471869d9b2793acdc412f13507038433f6a72c6

9 years agoMerge "Delete unused file tests/unit/database_stubs.py"
Jenkins [Thu, 17 Sep 2015 01:55:41 +0000 (01:55 +0000)]
Merge "Delete unused file tests/unit/database_stubs.py"

9 years agoFix log statement to log correct variable first_ip
Aaron Rosen [Thu, 17 Sep 2015 01:34:37 +0000 (18:34 -0700)]
Fix log statement to log correct variable first_ip

Change-Id: I75b8caad184d8fde535689000fbe11ac188c8b77

9 years agoRemove pecan branch reference from .gitreview file
Kevin Benton [Wed, 16 Sep 2015 23:24:52 +0000 (16:24 -0700)]
Remove pecan branch reference from .gitreview file

This needs to be removed before the merge back into
master so people don't start proposing patches to the
feature branch by default.

Change-Id: Ia14afe104b38a9b16fd3dc964686a733061d7e5c

9 years agoipam: Prevent none from being passed to delete
Aaron Rosen [Wed, 16 Sep 2015 22:50:21 +0000 (15:50 -0700)]
ipam: Prevent none from being passed to delete

Previously, it was possible for None to be passed to context.session.delete()
if a port was not found (usually a result of a concurrent delete). This
resulted in an UnmappedInstanceError. This is avoided now by calling
query.delete() directly which does not raise any exceptions.

Change-Id: I3b9f513308d90874ac8e8a7f6345697978d4920f
Closes-bug: #1496554

9 years agoMerge "No network devices on network attached qos policies"
Jenkins [Wed, 16 Sep 2015 22:49:26 +0000 (22:49 +0000)]
Merge "No network devices on network attached qos policies"

9 years agoMerge "Fix establishing UDP connection"
Jenkins [Wed, 16 Sep 2015 20:34:06 +0000 (20:34 +0000)]
Merge "Fix establishing UDP connection"

9 years agoMerge "Add QoS fullstack test"
Jenkins [Wed, 16 Sep 2015 20:27:15 +0000 (20:27 +0000)]
Merge "Add QoS fullstack test"

9 years agoRemove restriction of adding constraints to expand
Kevin Benton [Wed, 16 Sep 2015 20:08:57 +0000 (13:08 -0700)]
Remove restriction of adding constraints to expand

Adding a constraint to a table shouldn't be restricted
to an expand operation. There can be contraction migrations
required before the constraint can be safely added (e.g. inserting
records into the target table of the constraint).

Change-Id: I1963facaa6ab1916d92c044f90b6c00291f00ab9

9 years agoMerge "Use tempest-lib's token_client"
Jenkins [Wed, 16 Sep 2015 20:25:41 +0000 (20:25 +0000)]
Merge "Use tempest-lib's token_client"

9 years agoMerge "ovsdb: Fix a few docstring"
Jenkins [Wed, 16 Sep 2015 20:25:28 +0000 (20:25 +0000)]
Merge "ovsdb: Fix a few docstring"

9 years agoMerge "Add IPv6 Address Resolution protection"
Jenkins [Wed, 16 Sep 2015 20:25:14 +0000 (20:25 +0000)]
Merge "Add IPv6 Address Resolution protection"

9 years agoMerge "Enable servicing lbaasV2 vip by DVR"
Jenkins [Wed, 16 Sep 2015 20:22:13 +0000 (20:22 +0000)]
Merge "Enable servicing lbaasV2 vip by DVR"

9 years agoMerge "QoS agent extension and driver refactoring"
Jenkins [Wed, 16 Sep 2015 14:42:04 +0000 (14:42 +0000)]
Merge "QoS agent extension and driver refactoring"

9 years agoMerge "Always return iterables in L3 get_candidates"
Jenkins [Wed, 16 Sep 2015 14:34:36 +0000 (14:34 +0000)]
Merge "Always return iterables in L3 get_candidates"

9 years agoDelete unused file tests/unit/database_stubs.py
Assaf Muller [Wed, 16 Sep 2015 14:21:41 +0000 (10:21 -0400)]
Delete unused file tests/unit/database_stubs.py

No usages in Neutron, vpnaas, lbaas or fwaas repos.

Change-Id: I64867eca23dd77e491c4624e8b35c90af23e8e4e

9 years agoNo network devices on network attached qos policies
Miguel Angel Ajo [Thu, 3 Sep 2015 13:40:12 +0000 (15:40 +0200)]
No network devices on network attached qos policies

Network devices, like internal router legs, or dhcp ports
should not be affected by bandwidth limiting rules.

This patch disables application of network attached policies
to network/neutron owned ports.

Closes-bug: #1486039
DocImpact

Change-Id: I75d80227f1e6c4b3f5fa7762b8dc3b0c0f1abd46

9 years agoMerge "Cleanup the fip agent gateway port delete routines"
Jenkins [Wed, 16 Sep 2015 11:16:23 +0000 (11:16 +0000)]
Merge "Cleanup the fip agent gateway port delete routines"

9 years agoMerge "Remove requirements.txt for the ofagent mechanism driver"
Jenkins [Wed, 16 Sep 2015 11:03:33 +0000 (11:03 +0000)]
Merge "Remove requirements.txt for the ofagent mechanism driver"

9 years agoRevert "Revert "Pecan WSGI: prevent plugins from opening AMQP connections""
Kevin Benton [Wed, 16 Sep 2015 10:33:05 +0000 (03:33 -0700)]
Revert "Revert "Pecan WSGI: prevent plugins from opening AMQP connections""

This reverts commit 4f1fb05959b211c0edc52021af8774a163aa518c.
Merge of master went in so this can be re-applied and have the
conflict resovled.

Conflicts:
neutron/server/__init__.py

Change-Id: I917e89b2191b3d4646e66a7a313783a56cf0ace5

9 years agoMerge remote-tracking branch 'origin/master' into walnut
armando-migliaccio [Thu, 17 Sep 2015 00:07:19 +0000 (17:07 -0700)]
Merge remote-tracking branch 'origin/master' into walnut

Change-Id: Ic6314ef9c1db6524fbb0ed8b1bacdc2b081c4775

9 years agoUse tempest-lib's token_client
Ken'ichi Ohmichi [Wed, 16 Sep 2015 10:04:32 +0000 (10:04 +0000)]
Use tempest-lib's token_client

Now tempest-lib provides token_client modules as library and the
interface is stable. So neutron repogitory doesn't need to contain
these modules.
This patch makes neutron use tempest-lib's token_client and removes
the own modules for the maintenance.

Change-Id: Ieff7eb003f6e8257d83368dbc80e332aa66a156c

9 years agoRevert "Pecan WSGI: prevent plugins from opening AMQP connections"
Kevin Benton [Wed, 16 Sep 2015 10:02:49 +0000 (03:02 -0700)]
Revert "Pecan WSGI: prevent plugins from opening AMQP connections"

This reverts commit 2ba2456f9dae2a4cf30804a562c08832c24b6231
because it has a conflict with upstream commit
9f6bd17703b7286be9e7d439d15f4dec2774e13a. We need to merge
master into pecan with this reverted and then revert the revert
and resolve the conflict there so we don't have any conflict
resolutions in merge commits.

Change-Id: I22388de076cbd90da33502249e101749e019e0cb

9 years agoMerge "Log exception.msg before exception.message" into feature/pecan
Jenkins [Wed, 16 Sep 2015 21:37:58 +0000 (21:37 +0000)]
Merge "Log exception.msg before exception.message" into feature/pecan

9 years agoMerge "Fix pecan policy enforcement for GET requests" into feature/pecan
Jenkins [Wed, 16 Sep 2015 20:36:21 +0000 (20:36 +0000)]
Merge "Fix pecan policy enforcement for GET requests" into feature/pecan

9 years agoMerge "Add constraint target to tox.ini" into feature/pecan
Jenkins [Wed, 16 Sep 2015 20:26:27 +0000 (20:26 +0000)]
Merge "Add constraint target to tox.ini" into feature/pecan

9 years agoMerge "Set expected HTTP codes for create and delete" into feature/pecan
Jenkins [Wed, 16 Sep 2015 17:23:53 +0000 (17:23 +0000)]
Merge "Set expected HTTP codes for create and delete" into feature/pecan

9 years agoMerge "Add basic bulk support to collection controller" into feature/pecan
Jenkins [Wed, 16 Sep 2015 17:20:54 +0000 (17:20 +0000)]
Merge "Add basic bulk support to collection controller" into feature/pecan

9 years agoAdd constraint target to tox.ini
Sachi King [Tue, 1 Sep 2015 05:10:54 +0000 (15:10 +1000)]
Add constraint target to tox.ini

This adds a pip install command to tox.ini that is only used when the
tox env is passed with the 'constraints' factor appended onto it.
As such this will not effect developer workflows or current unit tests.

The initial use of this will be in a non-voting job, to verify that the
constrained checks with tox are stable.  DevStack is already running
constrained jobs, as such problems are no expected.

To run a tox with pip using constraints on a developer system a
developer should run the desired tox environment with -constraints.
For example: $(tox -epy27-constraints)
Pip will pull the current version of the upper-constraints.txt file down
from the git.openstack.org, however this method can be overriden to use
a local file setting the environment variable "UPPER_CONSTRAINTS_FILE"
to the local path or a different URL, it is passed directly to pip.

This is currently not enabled in the default tox run, however it is
possible to enable it as a default by adding it to 'envlist' in tox.ini

Closes-Bug: #1496424
Change-Id: I13579599dfdf846d06d8c39f33265e8b46db6e68
Depends-On: I17ac389f78af241917b6da7f049085f2b13d30f2
Implements Blueprint: Requirements-Management
(cherry picked from commit c029954c8ae041e5f15b14ceef0e2aa060928e05)

9 years agoMerge "Fix missing check for admin/adv_service" into feature/pecan
Jenkins [Wed, 16 Sep 2015 12:24:26 +0000 (12:24 +0000)]
Merge "Fix missing check for admin/adv_service" into feature/pecan

9 years agoMerge "Remove plural param to QUOTAS.count" into feature/pecan
Jenkins [Wed, 16 Sep 2015 12:00:12 +0000 (12:00 +0000)]
Merge "Remove plural param to QUOTAS.count" into feature/pecan

9 years agoMerge "Return version info on version controller" into feature/pecan
Jenkins [Wed, 16 Sep 2015 11:01:43 +0000 (11:01 +0000)]
Merge "Return version info on version controller" into feature/pecan

9 years agoMerge "Clarify and add a TODO in the controller" into feature/pecan
Jenkins [Wed, 16 Sep 2015 11:01:17 +0000 (11:01 +0000)]
Merge "Clarify and add a TODO in the controller" into feature/pecan

9 years agoMerge "Add missing resource discriminator in update resp" into feature/pecan
Jenkins [Wed, 16 Sep 2015 10:59:20 +0000 (10:59 +0000)]
Merge "Add missing resource discriminator in update resp" into feature/pecan

9 years agoFix establishing UDP connection
Jakub Libosvar [Thu, 13 Aug 2015 09:08:20 +0000 (09:08 +0000)]
Fix establishing UDP connection

Previously, in establish_connection() for UDP protocol data were sent
but never read on peer socket. That lead to successful read on peer side
if this connection was filtered. Having constant testing string masked
this issue as we can't distinguish to which test of connectivity data
belong.

This patch makes unique data string per test_connectivity() and
also makes establish_connection() to create an ASSURED entry in
conntrack table. Finally, in last test after firewall filter was
removed, connection is re-established in order to avoid troubles with
terminated processes or TCP continuing sending packets which weren't
successfully delivered.

Closes-Bug: 1478847
Change-Id: I2920d587d8df8d96dc1c752c28f48ba495f3cf0f