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

9 years agoMerge "Fix query in get_l3_agent_with_min_routers"
Jenkins [Mon, 14 Sep 2015 21:59:13 +0000 (21:59 +0000)]
Merge "Fix query in get_l3_agent_with_min_routers"

9 years agoFix TypeError caused by delete_agent_gateway_port()
Brian Haley [Mon, 14 Sep 2015 20:12:18 +0000 (16:12 -0400)]
Fix TypeError caused by delete_agent_gateway_port()

A recent change used a keyword argument when it didn't need to,
correct it to fix the multinode DVR job.

End of typical traceback:

File "/opt/stack/new/neutron/neutron/api/rpc/handlers/l3_rpc.py",
in delete_agent_gateway_port(admin_ctx, network_id, host_id=host)

TypeError: delete_floatingip_agent_gateway_port() got multiple
values for keyword argument 'host_id'

Introduced in commit 639f1893dde0d393a97b29ca5309dba716831a7

Related-bug: #1495147

Change-Id: Id2522bc843bc7b089b7783d3f765900a50a0033f

9 years agoMerge "Fix typo: Large Ops, not Large Opts"
Jenkins [Mon, 14 Sep 2015 18:37:15 +0000 (18:37 +0000)]
Merge "Fix typo: Large Ops, not Large Opts"

9 years agoMerge "docstring fix"
Jenkins [Mon, 14 Sep 2015 18:36:55 +0000 (18:36 +0000)]
Merge "docstring fix"

9 years agoMerge "Stop logging deadlock tracebacks"
Jenkins [Mon, 14 Sep 2015 18:36:42 +0000 (18:36 +0000)]
Merge "Stop logging deadlock tracebacks"

9 years agoMerge "Fix RBAC filter query for negative case"
Jenkins [Mon, 14 Sep 2015 18:33:17 +0000 (18:33 +0000)]
Merge "Fix RBAC filter query for negative case"

9 years agosub_project_guidelines: Add richer documentation
Kyle Mestery [Thu, 10 Sep 2015 15:46:04 +0000 (15:46 +0000)]
sub_project_guidelines: Add richer documentation

Add additional documentation around releasing sub-projects.

Change-Id: I71f31b6b8ed085066491e181074b467435f8d66d
Signed-off-by: Kyle Mestery <mestery@mestery.com>
9 years agoMerge "Do not specify host for l2population topics"
Jenkins [Mon, 14 Sep 2015 16:50:23 +0000 (16:50 +0000)]
Merge "Do not specify host for l2population topics"

9 years agoFix typo: Large Ops, not Large Opts
Ryan Moats [Mon, 14 Sep 2015 16:29:28 +0000 (11:29 -0500)]
Fix typo: Large Ops, not Large Opts

Change-Id: I73e64e19275f002fcc2ae2e903611835bfd98f8a
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoMerge "Fix typo in error message in NetcatTester"
Jenkins [Mon, 14 Sep 2015 16:28:10 +0000 (16:28 +0000)]
Merge "Fix typo in error message in NetcatTester"

9 years agoFix query in get_l3_agent_with_min_routers
Ann Kamyshnikova [Mon, 14 Sep 2015 14:29:22 +0000 (17:29 +0300)]
Fix query in get_l3_agent_with_min_routers

For PostgreSQL if you're using GROUP BY everything in the SELECT
list must be an aggregate count(...) or used in the GROUP BY.

Closes-bug: #1495523

Change-Id: Ieb75d0666ec2f6d2e61686bf2bacea2b9ad6c521

9 years agoDo not specify host for l2population topics
Ilya Shakhat [Mon, 14 Sep 2015 12:43:05 +0000 (15:43 +0300)]
Do not specify host for l2population topics

When creating topics oslo.messaging automatically creates
topic with hostname suffix (e.g. topic.hostname), there's
no need to do this explicitly.

Change-Id: Ia396452e8deb2c8f10bbead936245eeece8066a6
Closes-Bug: #1495508

9 years agoAdd utility function for checking trusted port
Kevin Benton [Thu, 3 Sep 2015 17:01:40 +0000 (10:01 -0700)]
Add utility function for checking trusted port

Ports that have a device_owner that starts with 'network:'
are trusted in several places throughout the codebase. Each
of these did a startswith check on each field and it's not
immediately obvious why it's done.

This patch adds a utility function called 'is_port_trusted'
that performs the same check and makes it obvious what is
being done.

Change-Id: I542c753776d5cfb2fd736b25ea6e111867c89c89

9 years agoFix typo in error message in NetcatTester
Jakub Libosvar [Mon, 14 Sep 2015 09:19:14 +0000 (09:19 +0000)]
Fix typo in error message in NetcatTester

Change-Id: Ie00901b1dab6c0c5ad4ec0f0c437426afc60396e

9 years agodocstring fix
Saju Madhavan [Mon, 14 Sep 2015 08:33:28 +0000 (14:03 +0530)]
docstring fix

Change-Id: I35e44872c3dc7508d5991dc967bbceb22d6bea51

9 years agoAsyncProcess: try to kill tender
IWAMOTO Toshihiro [Fri, 11 Sep 2015 10:01:20 +0000 (19:01 +0900)]
AsyncProcess: try to kill tender

_kill_process kills processes with SIGKILL, which prevents the
processes' cleanup from running.  Issue SIGTERM first and wait a bit.

Change-Id: Ie7b94011bbd11b1d672c95e3be19bb3c84ef77ec
Closes-bug: 1494363

9 years agoMerge "Delete gateway conntrack state when remove external gateway"
Jenkins [Mon, 14 Sep 2015 05:05:20 +0000 (05:05 +0000)]
Merge "Delete gateway conntrack state when remove external gateway"

9 years agoEnable servicing lbaasV2 vip by DVR
Hong Hui Xiao [Thu, 10 Sep 2015 10:38:01 +0000 (06:38 -0400)]
Enable servicing lbaasV2 vip by DVR

Currently, the vip of lbaasV2 will not have l3 network with DVR.
This prevent the usercase of lbaasV2 + DVR. This patch aims to
enable servicing lbaasv2 vip by DVR.

Change-Id: I1b51550437994fbe78d4db904641d4d9fb75d82e
Closes-Bug: #1493809

9 years agoMerge "Switch scheduler drivers to load based schedulers"
Jenkins [Mon, 14 Sep 2015 00:20:02 +0000 (00:20 +0000)]
Merge "Switch scheduler drivers to load based schedulers"

9 years agoMerge "Remove an unnecessary extension check for rbac"
Jenkins [Mon, 14 Sep 2015 00:19:50 +0000 (00:19 +0000)]
Merge "Remove an unnecessary extension check for rbac"

9 years agoMerge "Don't log exceptions in GW update on router create"
Jenkins [Mon, 14 Sep 2015 00:19:38 +0000 (00:19 +0000)]
Merge "Don't log exceptions in GW update on router create"

9 years agoMerge "Handle ObjectDeletedError when deleting network ports/subnets"
Jenkins [Sun, 13 Sep 2015 07:22:34 +0000 (07:22 +0000)]
Merge "Handle ObjectDeletedError when deleting network ports/subnets"

9 years agoMerge "Fix BadRequest error on add_router_interface for DVR"
Jenkins [Sun, 13 Sep 2015 07:22:22 +0000 (07:22 +0000)]
Merge "Fix BadRequest error on add_router_interface for DVR"

9 years agoMerge "Tweak test_keepalived_respawns test logic"
Jenkins [Sun, 13 Sep 2015 06:43:25 +0000 (06:43 +0000)]
Merge "Tweak test_keepalived_respawns test logic"

9 years agoSwitch scheduler drivers to load based schedulers
armando-migliaccio [Fri, 11 Sep 2015 09:32:42 +0000 (02:32 -0700)]
Switch scheduler drivers to load based schedulers

Cloud deployed at scale most likely will use these scheduler
drivers because they allow a fairer resource allocation compared
to chance schedulers (which randomly place resources on the hosts).

Because of their importance, it's only wise to test them in
the gate on a continuous basis, so that we do not get surprised
by accidental regressions.

Rather than pushing this down through devstack-gate/project-config
patches, this chance alters the default of the scheduler
drivers, so that users can also pick these up out of the box.

This means that after an upgrade they would observe a change in
the scheduling behavior, if they relied on the default config.

DocImpact
UpgradeImpact

Closes-bug: #1494667

Change-Id: I5927914cb88eff66bc7a045340ff68cb8da95ad6

9 years agoFix BadRequest error on add_router_interface for DVR
armando-migliaccio [Sat, 12 Sep 2015 19:07:35 +0000 (12:07 -0700)]
Fix BadRequest error on add_router_interface for DVR

This operation for DVR is made of multiple steps, some of
which are not within the same DB transaction. For this
reason, if a failure occurs, the rollback will be partial.

This inconsistent state leads the retry logic to fail with
BadRequest, because the router is believed to be already
connected to the subnet.

To fix this condition, it is necessary to delete the port
should the DB deadlock occur.

Closes-bug: #1494114

Change-Id: Ia2a73d6f9d1e4746e761ad072d954e64267a3ad1

9 years agoFix missing value types for log message
Sergey Vilgelm [Sat, 12 Sep 2015 18:55:01 +0000 (21:55 +0300)]
Fix missing value types for log message

This patch add missing value types for some log message of exception.

Change-Id: Ie9f512bc804f0cd70df991b1910c975a2f9d6fcf
Closes-Bug: #1494574

9 years agoMerge "Reservations: Don't count usage if resource is unlimited"
Jenkins [Sat, 12 Sep 2015 15:31:57 +0000 (15:31 +0000)]
Merge "Reservations: Don't count usage if resource is unlimited"

9 years agoMerge "Remove an unused DVR function"
Jenkins [Sat, 12 Sep 2015 14:26:12 +0000 (14:26 +0000)]
Merge "Remove an unused DVR function"

9 years agoMerge "Don't setup ARP protection on LB for network ports"
Jenkins [Sat, 12 Sep 2015 09:14:38 +0000 (09:14 +0000)]
Merge "Don't setup ARP protection on LB for network ports"

9 years agoTweak test_keepalived_respawns test logic
armando-migliaccio [Fri, 11 Sep 2015 04:54:33 +0000 (21:54 -0700)]
Tweak test_keepalived_respawns test logic

This test initial design is problematic: it spawns keepalived,
it asserts the process is up, then it attempts to kill it.

However, this is when problems may arise:

a) it does so by using the disable method on the process - we
   should be more rude than that if we want to simulate a crash!

b) keepalived may be forking while it is starting and it is
   possible that for a moment the ppid changes and the process
   owner invoking the kill has no rights to kill the spawned
   process. This is the most plausible explaination I could find
   as to why kill returns 1 with no standard error

c) it does not verify that the process has indeed disappeared
   (what if the pm.disable didn't work?) - this means that the
   test can pass, and yet the monitor may not work.

Bottom line: this test relied on the correctness of the very code
that was meant to validate...and that's not cool. To this aim, we
wait for the process to be active, kill the process with a kill -9
and verify that the process after the kill is indeed different.

Closes-bug: #1490043

Change-Id: Idaf419a1464d9d0d75b9106a7acd5cd960a7c623

9 years agoMerge "Add RPC command and delete if last FIP on Agent"
Jenkins [Sat, 12 Sep 2015 07:16:12 +0000 (07:16 +0000)]
Merge "Add RPC command and delete if last FIP on Agent"

9 years agoMerge "Replace is_this_snat_host validation with internal function"
Jenkins [Sat, 12 Sep 2015 04:42:35 +0000 (04:42 +0000)]
Merge "Replace is_this_snat_host validation with internal function"

9 years agoMerge "Restore reservations in API controller"
Jenkins [Sat, 12 Sep 2015 03:46:53 +0000 (03:46 +0000)]
Merge "Restore reservations in API controller"

9 years agoMerge "Don't log deadlock or retry exceptions in L3 DB"
Jenkins [Sat, 12 Sep 2015 02:06:25 +0000 (02:06 +0000)]
Merge "Don't log deadlock or retry exceptions in L3 DB"

9 years agoMerge "Install sriov-agent.ini on 'setup.py install'"
Jenkins [Sat, 12 Sep 2015 00:54:19 +0000 (00:54 +0000)]
Merge "Install sriov-agent.ini on 'setup.py install'"

9 years agoMerge "Configure gw_iface for RAs only in Master HA Router"
Jenkins [Sat, 12 Sep 2015 00:51:37 +0000 (00:51 +0000)]
Merge "Configure gw_iface for RAs only in Master HA Router"

9 years agoMerge "ovs: don't use ARP responder for IPv6 addresses"
Jenkins [Fri, 11 Sep 2015 22:19:13 +0000 (22:19 +0000)]
Merge "ovs: don't use ARP responder for IPv6 addresses"

9 years agoMerge "Make ip address optional to add_route and delete_route"
Jenkins [Fri, 11 Sep 2015 21:46:34 +0000 (21:46 +0000)]
Merge "Make ip address optional to add_route and delete_route"