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

9 years agoMerge "Prevent full sync in dhcp_agent when possible"
Jenkins [Wed, 16 Sep 2015 05:16:15 +0000 (05:16 +0000)]
Merge "Prevent full sync in dhcp_agent when possible"

9 years agoovsdb: Fix a few docstring
YAMAMOTO Takashi [Wed, 16 Sep 2015 04:20:51 +0000 (13:20 +0900)]
ovsdb: Fix a few docstring

Change-Id: I53e1e21655b28fe5da60e58aeeb7cbbd103ae014

9 years agoRemove requirements.txt for the ofagent mechanism driver
fumihiko kakuma [Wed, 16 Sep 2015 02:52:59 +0000 (11:52 +0900)]
Remove requirements.txt for the ofagent mechanism driver

It is no longer used.

Related-Blueprint: core-vendor-decomposition
https://blueprints.launchpad.net/neutron/+spec/core-vendor-decomposition

Change-Id: Ib31fb3febf8968e50d86dd66e1e6e1ea2313f8ac

9 years agoMerge "Allow passing arbitrary ip route parameters to add/delete_route"
Jenkins [Wed, 16 Sep 2015 00:04:22 +0000 (00:04 +0000)]
Merge "Allow passing arbitrary ip route parameters to add/delete_route"

9 years agoMerge "Process user iptables rules before INVALID"
Jenkins [Wed, 16 Sep 2015 00:03:27 +0000 (00:03 +0000)]
Merge "Process user iptables rules before INVALID"

9 years agoMerge "Remove out-of-tree vendor AGENT_TYPE_* constant"
Jenkins [Wed, 16 Sep 2015 00:03:06 +0000 (00:03 +0000)]
Merge "Remove out-of-tree vendor AGENT_TYPE_* constant"

9 years agoMerge "Return exception when attempting to add duplicate VIP"
Jenkins [Tue, 15 Sep 2015 23:53:14 +0000 (23:53 +0000)]
Merge "Return exception when attempting to add duplicate VIP"

9 years agoAlways return iterables in L3 get_candidates
Kevin Benton [Fri, 4 Sep 2015 03:25:57 +0000 (20:25 -0700)]
Always return iterables in L3 get_candidates

The caller of this function expects iterables.

Closes-Bug: #1494996
Change-Id: I3d103e63f4e127a77268502415c0ddb0d804b54a

9 years agoRemove plural param to QUOTAS.count
Kevin Benton [Tue, 15 Sep 2015 17:24:19 +0000 (10:24 -0700)]
Remove plural param to QUOTAS.count

This parameter is no longer in the signature of the count function.

Change-Id: I686f3e3ed1095fdb48dd0515b58b159594f64f9e

9 years agoReturn version info on version controller
Salvatore Orlando [Tue, 1 Sep 2015 17:56:58 +0000 (10:56 -0700)]
Return version info on version controller

Just like the global root controller "/" returns info for
all versions, with this change the version root controller
"/<version>" will return info about the selected version.

The patch also ensures the root version controller only
accepts GET requests.

Change-Id: I183c6ff67597fe93e394fc8f07d7229112d4e215

9 years agoLog exception.msg before exception.message
Kevin Benton [Tue, 15 Sep 2015 17:22:35 +0000 (10:22 -0700)]
Log exception.msg before exception.message

The exception translation hook was logging the exception messages
before variables were interpolated, making it really unhelpful.
This patch corrects that and falls back to e.message if e.msg isn't
available.

Change-Id: I331444d577b03257db2fcc96324d020eff9bef08

9 years agoFix pecan policy enforcement for GET requests
Kevin Benton [Tue, 15 Sep 2015 17:21:04 +0000 (10:21 -0700)]
Fix pecan policy enforcement for GET requests

The policy enforcement hook had no effect on responses.
This patch corrected that. The fix was validated with the
standard API tests.

Change-Id: I014a18474ff79d48de469d7fc2a12c2e195ce22d

9 years agoAdd missing resource discriminator in update resp
Kevin Benton [Tue, 15 Sep 2015 17:13:38 +0000 (10:13 -0700)]
Add missing resource discriminator in update resp

The update method of the pecan itemcontroller was not returning
the response encapsulated correctly in a dictionary with the resource
type identifier. This was discovered via the standard API tests.

Change-Id: Ie2217972c75b14a0867477f26f434055b33a9ae6

9 years agoFix missing check for admin/adv_service
Kevin Benton [Tue, 15 Sep 2015 17:11:28 +0000 (10:11 -0700)]
Fix missing check for admin/adv_service

Adds a missing skip for a network ownership check for admins
and advanced services. This was found via an API test.

Change-Id: I796f6abf56dc7ff0f374b9912b92085f4a993a27

9 years agoClarify and add a TODO in the controller
Kevin Benton [Tue, 15 Sep 2015 17:04:09 +0000 (10:04 -0700)]
Clarify and add a TODO in the controller

This clarifies and adds a TODO regarding the filters and fields
API parameters.

Change-Id: I01cfd45b99dcfca4e320900caebdc68f6562ddd8

9 years agoSet expected HTTP codes for create and delete
Kevin Benton [Tue, 15 Sep 2015 17:16:11 +0000 (10:16 -0700)]
Set expected HTTP codes for create and delete

Our API tests have HTTP code assertions that our controller
was not honoring in the create and delete cases.

Change-Id: I3b00348c854b5d887d74c115d06984222f20ccc1

9 years agoAdd basic bulk support to collection controller
Kevin Benton [Tue, 15 Sep 2015 17:07:51 +0000 (10:07 -0700)]
Add basic bulk support to collection controller

This patch adds very basic bulk support to the
collection controller for bulk operations. TODOs
are inline for the things that still need to be
done. Functionality was verified with api tests.

Change-Id: I2c2e6f6e449a51ea60de75325855affa62869692

9 years agoPrevent full sync in dhcp_agent when possible
Sudhakar Babu Gariganti [Fri, 11 Sep 2015 09:23:27 +0000 (14:53 +0530)]
Prevent full sync in dhcp_agent when possible

If an exception occurs in sync_state method, we try for a full sync
even in the case where we have fewer networks to resync for.

This turns out to be pretty costly in scaled environments.

This patch addresses the above behavior by resyncing only for the
eariler set of failed networks.

Closes-Bug: #1495592

Change-Id: I069e992b3b7814370d409236b6a3c81a25829cc1

9 years agoMerge "Revert "AsyncProcess: try to kill tender""
Jenkins [Tue, 15 Sep 2015 17:13:28 +0000 (17:13 +0000)]
Merge "Revert "AsyncProcess: try to kill tender""

9 years agoRemove duplicated API server
Kevin Benton [Tue, 15 Sep 2015 16:46:05 +0000 (09:46 -0700)]
Remove duplicated API server

The server in neutron.cmd.eventlet.api was almost exactly the same
as neutron.cmd.eventlet.server.main_wsgi_pecan(). This patch just
gets rid of the former and updates a bash script to reference the
latter.

Change-Id: Ib1ae1d4de9f61bf9eea7e3ceb7fd971195e452e3

9 years agoAdd QoS fullstack test
Jakub Libosvar [Wed, 15 Jul 2015 10:46:35 +0000 (10:46 +0000)]
Add QoS fullstack test

Test the qos policy and rule CRUD lifecycle with port. Future plans are
to add similar testing with ports belonging to network with set qos
policy.

Change-Id: Iebe9b3e9d612d3533381a8cf4d0b9c587f8fda42

9 years agoMerge "sub_project_guidelines: Add richer documentation"
Jenkins [Tue, 15 Sep 2015 14:33:47 +0000 (14:33 +0000)]
Merge "sub_project_guidelines: Add richer documentation"

9 years agoQoS agent extension and driver refactoring
Moshe Levi [Mon, 10 Aug 2015 09:25:59 +0000 (12:25 +0300)]
QoS agent extension and driver refactoring

Moved some code common to all drivers into base
qos driver abstract class, so related bugfixes go all in one
place and we simplify the logic for every qos drivers.

Port/Policy mapping moved out to a separate class.

Support delete per rule_type or delete all rules.

Related-bug: #1486039

Co-Authored-By: Miguel Angel Ajo <mangelajo@redhat.com>
Partially-Implements: blueprint ml2-qos
Change-Id: Ia9d8638b9268b5aa8512cbb9d001413751f82649

9 years agoAdd IPv6 Address Resolution protection
sridhargaddam [Tue, 14 Jul 2015 16:18:06 +0000 (16:18 +0000)]
Add IPv6 Address Resolution protection

Similar to IPv4 arp protection support, this patch adds the necessary OVS
rules to prevent ports attached to agent from sending any icmpv6 neighbor
advertisement messages that contain an IPv6 address not belonging to the port.

For details please refer to "Figure 3. Attack against IPv6 Address Resolution"
http://www.cisco.com/web/about/security/intelligence/ipv6_first_hop.html

DocImpact
SecurityImpact

Closes-Bug: #1491690
Change-Id: I1f8311f1b9ae1be02afde3e9078e49c6da373a88

9 years agoRevert "AsyncProcess: try to kill tender"
Jakub Libosvar [Tue, 15 Sep 2015 11:52:03 +0000 (11:52 +0000)]
Revert "AsyncProcess: try to kill tender"

This change introduced bug 1495937.

This reverts commit 470a7d8a106a274e06fb1311c6738f333a98f59c.

Change-Id: I84fea4fdac71141da335ccd9e0d4c9d6174dfd86

9 years agoMerge "func: Don't use private method of AsyncProcess"
Jenkins [Tue, 15 Sep 2015 11:45:45 +0000 (11:45 +0000)]
Merge "func: Don't use private method of AsyncProcess"

9 years agoMerge "Remove unused ovs_lib method reset_bridge"
Jenkins [Tue, 15 Sep 2015 10:21:46 +0000 (10:21 +0000)]
Merge "Remove unused ovs_lib method reset_bridge"

9 years agoMerge "AsyncProcess: try to kill tender"
Jenkins [Tue, 15 Sep 2015 09:08:38 +0000 (09:08 +0000)]
Merge "AsyncProcess: try to kill tender"

9 years agoRemove out-of-tree vendor AGENT_TYPE_* constant
Cedric Brandily [Mon, 24 Aug 2015 20:24:10 +0000 (22:24 +0200)]
Remove out-of-tree vendor AGENT_TYPE_* constant

AGENT_TYPE_* constants[1] defines all agent types BUT the only vendor
one(AGENT_TYPE_NEC) is only used in out-of-tree networking-nec repo.
This changes removes out-of-tree AGENT_TYPE_NEC constant (dependant
change defines it in networking-nec repo).

[1] in neutron.extensions.portbindings

Change-Id: Ia80c33ee7970cfe167c2c9ca6d512f23561455a2
Closes-Bug: #1487598
Depends-On: I955fa48ee2120900e422bab57db250303c3d7bb4

9 years agofunc: Don't use private method of AsyncProcess
Jakub Libosvar [Mon, 14 Sep 2015 14:54:34 +0000 (14:54 +0000)]
func: Don't use private method of AsyncProcess

In functional test we simulate crash of AsyncProcess by calling
_kill_process(). This method is a private method and such usage
introduced a race where process was respawned prior to calling wait() of
killed process, leading to infinite wait on newly spawned process.

This patch adds manual send of kill and then active waiting for process
to be respawned, similarly like done with recent keepalived patch [1].

[1] https://review.openstack.org/#/c/222460/7/neutron/tests/functional/agent/linux/test_keepalived.py

Closes-Bug: #1477860
Change-Id: I1c91393304d65a0695311416ecc5b64fd549b192

9 years agoMerge "Fix TypeError caused by delete_agent_gateway_port()"
Jenkins [Tue, 15 Sep 2015 01:08:09 +0000 (01:08 +0000)]
Merge "Fix TypeError caused by delete_agent_gateway_port()"

9 years agoRemove unused ovs_lib method reset_bridge
lzklibj [Thu, 10 Sep 2015 18:37:47 +0000 (02:37 +0800)]
Remove unused ovs_lib method reset_bridge

Per [1] we are using a better way to keep tunnel connectivity,
so reset_bridge isn't used anymore. Bug in [2] was caused by
using method reset_bridge which will delete and recreate bridge.
For [1] makes method reset_bridge deprecated, it makes sense to
remove this method, and make [2] no longer produce.

[1] https://review.openstack.org/#/c/182920
[2] Related-bug: #1332450

Change-Id: I155f66a37b8d4081126467fe576e8315c2d5560c