]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoCall _allocate_vr_id outside of transaction
Kevin Benton [Thu, 24 Dec 2015 08:54:06 +0000 (00:54 -0800)]
Call _allocate_vr_id outside of transaction

_allocate_vr_id is called from _set_vr_id, which was starting a
transaction before calling it. This caused an error when the retry
logic was triggered inside of _allocate_vr_id since it would
encounter a DB exception and put the transaction into a bad state
that couldn't be used on the retry.

This patch just stops _set_vr_id from starting a transaction because
it didn't serve a purpose. It also stops _allocate_vr_id from allowing
subtransactions when it starts a transaction, since it's retry logic
isn't compatible with them.

Co-Authored-By: Ann Kamyshnikova <akamyshnikova@mirantis.com>
Closes-Bug: #1528201
Change-Id: If7bcae39098f40f5ee9db78d3190bf9fdaf6438b

8 years agoMerge "Return availability_zone_hints as list when net-create"
Jenkins [Thu, 24 Dec 2015 04:12:53 +0000 (04:12 +0000)]
Merge "Return availability_zone_hints as list when net-create"

8 years agoMerge "Add address scope to floating IPs in RPC response to L3 agent"
Jenkins [Thu, 24 Dec 2015 00:07:40 +0000 (00:07 +0000)]
Merge "Add address scope to floating IPs in RPC response to L3 agent"

8 years agoMerge "reject leading '0's in IPv4 addr to avoid ambiguity"
Jenkins [Wed, 23 Dec 2015 23:04:40 +0000 (23:04 +0000)]
Merge "reject leading '0's in IPv4 addr to avoid ambiguity"

8 years agoMerge "Add constant to L3 extension for floating ips"
Jenkins [Wed, 23 Dec 2015 21:38:34 +0000 (21:38 +0000)]
Merge "Add constant to L3 extension for floating ips"

8 years agoMerge "API: _validate_ip_address should not raise an exception"
Jenkins [Wed, 23 Dec 2015 19:42:48 +0000 (19:42 +0000)]
Merge "API: _validate_ip_address should not raise an exception"

8 years agoAdd constant to L3 extension for floating ips
Miguel Lavalle [Wed, 23 Dec 2015 17:22:14 +0000 (17:22 +0000)]
Add constant to L3 extension for floating ips

Add a constant string to the L3 extension to access floating ips in request and
response dictionaries

Change-Id: I161ab583f4eca3a8f0ddda1dd533780591e3423d

8 years agoAdd address scope to floating IPs in RPC response to L3 agent
Carl Baldwin [Wed, 23 Dec 2015 17:16:15 +0000 (10:16 -0700)]
Add address scope to floating IPs in RPC response to L3 agent

The L3 agent needs to know the address scope of the fixed ip of each
floating ip because floating ips are a way to cross scope boundaries.
Without the scope information, there could be ambiguity and no way to
know which scope to send it to.

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

Change-Id: Id9f8c12954a6efbf4d9b99c011652eefbe5f5145
Partially-Implements: blueprint address-scopes

8 years agoMerge "Run functional gate jobs in a constrained environment"
Jenkins [Wed, 23 Dec 2015 16:35:13 +0000 (16:35 +0000)]
Merge "Run functional gate jobs in a constrained environment"

8 years agoMerge "DVR: Remove get_port call from dvr_update_router_addvm"
Jenkins [Wed, 23 Dec 2015 12:33:05 +0000 (12:33 +0000)]
Merge "DVR: Remove get_port call from dvr_update_router_addvm"

8 years agoMerge "update docstring for get_ports_on_host_by_subnet"
Jenkins [Wed, 23 Dec 2015 11:43:59 +0000 (11:43 +0000)]
Merge "update docstring for get_ports_on_host_by_subnet"

8 years agoMerge "XenAPI: Fix netwrap to support security group"
Jenkins [Wed, 23 Dec 2015 03:46:38 +0000 (03:46 +0000)]
Merge "XenAPI: Fix netwrap to support security group"

8 years agoMerge "Force L3 agent to resync router it could not configure"
Jenkins [Wed, 23 Dec 2015 03:46:20 +0000 (03:46 +0000)]
Merge "Force L3 agent to resync router it could not configure"

8 years agoRun functional gate jobs in a constrained environment
armando-migliaccio [Thu, 17 Dec 2015 20:25:32 +0000 (12:25 -0800)]
Run functional gate jobs in a constrained environment

This patch modifies the gate hooks to run jobs with upper constraints.

Change-Id: I9eb1eb8e61381e9bb45678af8a24fa88a99e2c8f

8 years agoupdate docstring for get_ports_on_host_by_subnet
lzklibj [Thu, 17 Dec 2015 04:07:32 +0000 (12:07 +0800)]
update docstring for get_ports_on_host_by_subnet

This patch updates docstring for get_ports_on_host_by_subnet, to
tell that the method will only get dvr serviced ports, not all ports
for given subnet and host.

Change-Id: I85ea5a9e37b6c894f7d51e73c10143b208a29f0e

8 years agoMerge "Updated from global requirements"
Jenkins [Wed, 23 Dec 2015 02:54:31 +0000 (02:54 +0000)]
Merge "Updated from global requirements"

8 years agoMerge "Restore _validate_subnet/uuid_list not to break subproject gates"
Jenkins [Wed, 23 Dec 2015 01:50:40 +0000 (01:50 +0000)]
Merge "Restore _validate_subnet/uuid_list not to break subproject gates"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 23 Dec 2015 00:34:19 +0000 (00:34 +0000)]
Updated from global requirements

Change-Id: I3782e12d497174fa30394f7d0e70d944f992d45f

8 years agoMerge "Don't raise if polling manager is running when stopped"
Jenkins [Tue, 22 Dec 2015 21:00:23 +0000 (21:00 +0000)]
Merge "Don't raise if polling manager is running when stopped"

8 years agoMerge "DVR:Fix _notify_l3_agent_new_port for proper arp update"
Jenkins [Tue, 22 Dec 2015 11:14:53 +0000 (11:14 +0000)]
Merge "DVR:Fix _notify_l3_agent_new_port for proper arp update"

8 years agoRestore _validate_subnet/uuid_list not to break subproject gates
Akihiro Motoki [Tue, 22 Dec 2015 10:14:37 +0000 (19:14 +0900)]
Restore _validate_subnet/uuid_list not to break subproject gates

https://review.openstack.org/#/c/258867/ removed
_validate_subnet_list and _validate_uuid_list.
_validate_subnet_list is being used in VPNaaS and VPNaaS gate
is now broken. We need to remove validators more carefully
because subprojects may use them.
This commit restores them once.

Change-Id: I9c40b9d67a8364f698cc9bf604e4e1f4caea413e
Closes-Bug: #1528435

8 years agoMerge "Add abstractmethod to FirewallDriver abstract class"
Jenkins [Tue, 22 Dec 2015 09:45:41 +0000 (09:45 +0000)]
Merge "Add abstractmethod to FirewallDriver abstract class"

8 years agoMerge "Add functional test for availability_zone support"
Jenkins [Mon, 21 Dec 2015 22:16:07 +0000 (22:16 +0000)]
Merge "Add functional test for availability_zone support"

8 years agoDVR: Remove get_port call from dvr_update_router_addvm
Swaminathan Vasudevan [Fri, 4 Dec 2015 20:44:10 +0000 (12:44 -0800)]
DVR: Remove get_port call from dvr_update_router_addvm

The dvr_update_router_addvm un-necessarily calls the
get_port to retreive the port dict, even though the port
dict is already passed in.

So this patch will remove the get_port call.

Change-Id: Ib893024ef0cf811497f077f5ae9d3965ea19f288

8 years agoMerge "Add notes on loading strategies for ORM relationships"
Jenkins [Mon, 21 Dec 2015 21:31:37 +0000 (21:31 +0000)]
Merge "Add notes on loading strategies for ORM relationships"

8 years agoDVR:Fix _notify_l3_agent_new_port for proper arp update
Swaminathan Vasudevan [Fri, 4 Dec 2015 19:58:57 +0000 (11:58 -0800)]
DVR:Fix _notify_l3_agent_new_port for proper arp update

Now with notifications coming from ml2 plugin on port create
and port update, it is worth fixing the existing _notify_
l3_agent_new_port for proper arp update and router scheduling.

Previously we have been sending arp update and calling router
scheduling for every update notification for service ports,
but now we can take necessary action only when required, since
the fix to update the arp and router scheduling was recently
done by sending the port info for every new port created.

When _notify_l3_agent_port_update is triggered, we check if the
original port host binding exists and if there is a change in
host binding with respect to the new port, then we go ahead and
reschedule the router on the new host and flush the arp entry.

Related-Bug: #1524020

Change-Id: Ifda623d5413b72bf80f38fba5c12a05a88bb7de5

8 years agoMerge "Corrected wrong ethertype exception message"
Jenkins [Mon, 21 Dec 2015 17:10:17 +0000 (17:10 +0000)]
Merge "Corrected wrong ethertype exception message"

8 years agoMerge "Remove duplicated code in attribute.py"
Jenkins [Mon, 21 Dec 2015 17:08:38 +0000 (17:08 +0000)]
Merge "Remove duplicated code in attribute.py"

8 years agoDon't raise if polling manager is running when stopped
rossella [Mon, 14 Dec 2015 12:31:17 +0000 (12:31 +0000)]
Don't raise if polling manager is running when stopped

AsyncProcess.stop() will raise if the process we are trying
to stop is not running. Some functional tests sporadically
fail because in the clean up the polling manager is stopped
without checking if it's still running. Add an except
in InterfacePollingMinimizer.stop() to avoid raising an
exception when the monitor is not running.

Change-Id: Iec8f5039ae5b830836564a1a402ad3e4ba38935d
Closes-bug: #1525856

8 years agoMerge "Use the constant HOST_ID instead of 'binding:host_id'"
Jenkins [Mon, 21 Dec 2015 14:38:49 +0000 (14:38 +0000)]
Merge "Use the constant HOST_ID instead of 'binding:host_id'"

8 years agoMerge "Correct return values for bridge sysctl calls"
Jenkins [Mon, 21 Dec 2015 12:55:35 +0000 (12:55 +0000)]
Merge "Correct return values for bridge sysctl calls"

8 years agoAdd abstractmethod to FirewallDriver abstract class
Dariusz Smigiel (dasm) [Mon, 26 Oct 2015 11:12:38 +0000 (12:12 +0100)]
Add abstractmethod to FirewallDriver abstract class

FirewallDriver is abstract base class but do not have abstractmethods.
Updated methods to correspond with use-case of class.

Closes-bug: #1119119
Change-Id: I4b27b27d66c0b89cd9b65541cc1703103a2b00d2

8 years agoCorrected wrong ethertype exception message
Sreekumar S [Wed, 16 Dec 2015 21:04:33 +0000 (02:34 +0530)]
Corrected wrong ethertype exception message

This patch resolves the issue where wrong message was being
shown when ethertype input parameter was not amongst one of
the types supported. New message made akin to other input
parameters like 'protocol'.

Change-Id: I5636f3582c9d9877dad4d091a374284b656923f4
Closes-Bug: #1508106

8 years agoMerge "Misspelling in message"
Jenkins [Sun, 20 Dec 2015 21:20:30 +0000 (21:20 +0000)]
Merge "Misspelling in message"

8 years agoMisspelling in message
hgangwx [Fri, 18 Dec 2015 13:07:25 +0000 (21:07 +0800)]
Misspelling in message

    Misspelling in the message: "Duplicate adddress detected"
    Should be "Duplicate address detected"
    Totally 1 occasion in Neutron base code.

Change-Id: I95adccffd80763cf9ab171b29e6812b821373b6e

8 years agoMerge "Cleanup all the release notes"
Jenkins [Sun, 20 Dec 2015 14:15:56 +0000 (14:15 +0000)]
Merge "Cleanup all the release notes"

8 years agoUse the constant HOST_ID instead of 'binding:host_id'
Gary Kotton [Sun, 13 Dec 2015 12:52:27 +0000 (04:52 -0800)]
Use the constant HOST_ID instead of 'binding:host_id'

This patch makes use of the constant defined in the extension.
In addition to this having value of debing defined in one place it
also enables the caller to understand that the portbindings
extension is required.

Note: the constant is not used in the API tests. This has import
issues so it is not relevant.

TrivialFix

Change-Id: I7bfe2528dbbd8017ddbdcf949dbb6264ce1eb5d8

8 years agoMerge "QOS: add in missing translation"
Jenkins [Sun, 20 Dec 2015 01:42:43 +0000 (01:42 +0000)]
Merge "QOS: add in missing translation"

8 years agoForce L3 agent to resync router it could not configure
Assaf Muller [Sat, 19 Dec 2015 19:13:43 +0000 (14:13 -0500)]
Force L3 agent to resync router it could not configure

If the L3 agent fails to configure a router, commit:
4957b5b43521a61873a041fe3e8989ed399903d9 changed it so
that instead of performing an expensive full sync, only that
router is reconfigured. However, it tries to reconfigure the
cached router. This is a change of behavior from the fullsync
days. The retry is more likely to succeed if the
router is retrieved from the server, instead of using
the locally cached version, in case the user or operator
fixed bad input, or if the router was retrieved in a bad
state due to a server-side race condition.

Note that this is only relevant to full syncs, as those retrieve
routers from the server and queue updates with the router object.
Incremental updates queue up updates without router objects,
so if one of those fails it would always be resynced on a
second attempt.

Related-Bug: #1494682
Change-Id: Id0565e11b3023a639589f2734488029f194e2f9d

8 years agoMerge "Enable Guru Meditation Reports for other refarch agents"
Jenkins [Sat, 19 Dec 2015 15:01:47 +0000 (15:01 +0000)]
Merge "Enable Guru Meditation Reports for other refarch agents"

8 years agoMerge "Updated from global requirements"
Jenkins [Sat, 19 Dec 2015 10:32:38 +0000 (10:32 +0000)]
Merge "Updated from global requirements"

8 years agoAdd notes on loading strategies for ORM relationships
armando-migliaccio [Sat, 19 Dec 2015 00:34:21 +0000 (16:34 -0800)]
Add notes on loading strategies for ORM relationships

There have been a number of regressions caused by our inability
to thoroughly review relatiohships' loading strategies. We should
at least make an attempt to remind ourselves, and since I am guilty
as charged, this patch is my attempt to redemption.

Change-Id: I879cfceaa51386e9d6c683e7e02487df92b7e290

8 years agoEnable Guru Meditation Reports for other refarch agents
Ihar Hrachyshka [Thu, 17 Dec 2015 13:38:08 +0000 (14:38 +0100)]
Enable Guru Meditation Reports for other refarch agents

OVS agent already supports GMR, but LinuxBridge and SR-IOV agents don't.
To enable them for those agents, we should move their main() entry
points under neutron/cmd/, so that __init__.py code that initializes
them is triggered on their invocation.

Since we put their entrypoints under neutron/cmd/eventlet/, there is now
also no need to explicitly monkey patch stdlib for eventlet in the
agents code (neutron/cmd/eventlet/__init__.py already does it for us).
With that, there is no more code in the tree that directly patches
stdlib except neutron/cmd/eventlet/__init__.py.

Also removed a way to execute agent modules as scripts since it's not a
supported way to invoke them (instead, stevedore generated console
scripts should always be used).

Change-Id: I9b823d07a41b575334e52065eed7e6be2741e79d
Implements: blueprint guru-meditation-report

8 years agoMerge "Use a joined relationship for AZ info on routers"
Jenkins [Fri, 18 Dec 2015 19:05:24 +0000 (19:05 +0000)]
Merge "Use a joined relationship for AZ info on routers"

8 years agoMerge "Adding a VNIC type for physical functions"
Jenkins [Fri, 18 Dec 2015 19:00:06 +0000 (19:00 +0000)]
Merge "Adding a VNIC type for physical functions"

8 years agoMerge "Catch known exceptions during deleting last HA router"
Jenkins [Fri, 18 Dec 2015 18:01:06 +0000 (18:01 +0000)]
Merge "Catch known exceptions during deleting last HA router"

8 years agoMerge "L3 DB: set get_assoc_data to be an internal method"
Jenkins [Fri, 18 Dec 2015 15:53:41 +0000 (15:53 +0000)]
Merge "L3 DB: set get_assoc_data to be an internal method"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 18 Dec 2015 13:50:47 +0000 (13:50 +0000)]
Updated from global requirements

Change-Id: I2d197470280bac0adffe00e2bcaa6c321ecc2f18

8 years agoCatch known exceptions during deleting last HA router
LIU Yulong [Tue, 8 Dec 2015 06:13:44 +0000 (14:13 +0800)]
Catch known exceptions during deleting last HA router

In some scenarios, for instance rally test create_and_delete_routers,
it will get some exceptions, such as the network in use exception,
during the router deleting api call, but actually the router has
been deleted. There has race between HA router create and delete,
if set more api and rpc worker race raises exception more frequently.
Because the inconsistent error message was not useful for user,
this patch will catch those know exceptions ObjectDeletedError,
NetworkInUse when user delete last HA router.

At the same time, when user create the first HA router, but because
of the failure of HA network creation, the router will be deleted,
then the deleting HA network will raise AttributeError, this patch
also move HA network deleting procedure under ha_network exist check
block.

Change-Id: I8cda00c1e7caffc4dfb20a817a11c60736855bb5
Closes-Bug: #1523780
Related-Bug: #1367157

8 years agoMerge "Clean up code for bug1511311"
Jenkins [Fri, 18 Dec 2015 07:50:21 +0000 (07:50 +0000)]
Merge "Clean up code for bug1511311"

8 years agoMerge "Kill the vrrp orphan process when (re)spawn keepalived"
Jenkins [Fri, 18 Dec 2015 07:48:37 +0000 (07:48 +0000)]
Merge "Kill the vrrp orphan process when (re)spawn keepalived"

8 years agoMerge "Add to deprecate OFAgent in release note"
Jenkins [Fri, 18 Dec 2015 05:21:26 +0000 (05:21 +0000)]
Merge "Add to deprecate OFAgent in release note"

8 years agoAdd new troubleshooting bugs tag
Assaf Muller [Thu, 17 Dec 2015 23:06:45 +0000 (18:06 -0500)]
Add new troubleshooting bugs tag

The rationale is that we would have a single tag to track all
bugs that are about admin and user ease of use, logging quality,
and debuggability.

Change-Id: Ie42e08c924c9e742bdc6d9f4b68bdfbd1a622ba4

8 years agoAdd to deprecate OFAgent in release note
fumihiko kakuma [Mon, 12 Jan 2015 11:57:01 +0000 (20:57 +0900)]
Add to deprecate OFAgent in release note

The OFAgent is decomposed completely.
And the OFAgent driver and its agent are depecated in the Mitaka and
will be removed in the next release.

Partial-Bug: #1521477
Change-Id: I8ce5e69d84bad486c95d5e3bd3f44effd29b2a62

8 years agoClean up code for bug1511311
Hong Hui Xiao [Thu, 17 Dec 2015 15:05:50 +0000 (10:05 -0500)]
Clean up code for bug1511311

Due to the code change for the fix, the callback is no longer needed.

Change-Id: Id603add6bdf98d848fb4afe4dd117552992f9ed1
Related-Bug: #1511311

8 years agoKill the vrrp orphan process when (re)spawn keepalived
Hong Hui Xiao [Wed, 4 Nov 2015 06:44:43 +0000 (01:44 -0500)]
Kill the vrrp orphan process when (re)spawn keepalived

When keepalived crashed unexpectedly, the vrrp process that
it associates with will be orphan process. This will make
the VIP unable to migrate to the router in the same host.
Also, neutron code is not able to respawn the keepalived
process, because keepalived thinks itself is still running,
according to [1-3]. As a result, neutron will report respawning
keepalived all the time. Restart l3-agent will not help.

This patch will check and delete the orphan vrrp process
if there is any, in the processmonitor of l3 agent.

More details can be found in the bug description and comments.

[1] https://goo.gl/W3GL9I
[2] https://goo.gl/F0Ixfb
[3] https://goo.gl/dUqhTo

Change-Id: Ia1759ed1365b845d404686a8cd25f882cce35caf
Closes-Bug: #1511311

8 years agoreject leading '0's in IPv4 addr to avoid ambiguity
Bo Chi [Thu, 10 Dec 2015 13:42:26 +0000 (08:42 -0500)]
reject leading '0's in IPv4 addr to avoid ambiguity

If a IPv4 address has a leading '0', it will be interpreted as an
octal number, e.g. 10.0.0.011 will be interpreted as 10.0.0.9.
Users who are not familiar with or not expecting octal interpretation
will not get the address they intended. Since there is no standard
around this, we reject leading '0's to avoid ambiguity.

APIImpact
Change-Id: I3163ba13468c47d385585221d2167fbe31d24010
Closes-Bug: #1524220

8 years agoMerge "Remove unused parameter from _update_router_db method"
Jenkins [Thu, 17 Dec 2015 12:10:46 +0000 (12:10 +0000)]
Merge "Remove unused parameter from _update_router_db method"

8 years agoMerge "Improve tox to show coverage report on same window"
Jenkins [Thu, 17 Dec 2015 11:32:25 +0000 (11:32 +0000)]
Merge "Improve tox to show coverage report on same window"

8 years agoMerge "Add check that list of agents is not empty in _get_enabled_agents"
Jenkins [Thu, 17 Dec 2015 11:29:36 +0000 (11:29 +0000)]
Merge "Add check that list of agents is not empty in _get_enabled_agents"

8 years agoRemove duplicated code in attribute.py
Hong Hui Xiao [Thu, 17 Dec 2015 08:26:56 +0000 (03:26 -0500)]
Remove duplicated code in attribute.py

The _validate_XXX_list functions in [1] are mostly duplicated, this
patch will use one function to validate list of items and remove
others.

[1] neutron/api/v2/attributes.py

Change-Id: I86905018914becb64451941f0ecb06be30f2c740
Closes-Bug: #1527113

8 years agoQOS: add in missing translation
Gary Kotton [Thu, 17 Dec 2015 07:55:04 +0000 (23:55 -0800)]
QOS: add in missing translation

Commit 0a33e355bcfb0a44ad3617f659ab452a04abdbdb did not add in a
translation for a reason.

TrivialFix

Change-Id: I3f0dfb98d0c184e9b065e5e3f77ba5105672a4e3

8 years agoFix comparison of Variant and other type in test_model_sync
AKamyshnikova [Wed, 16 Dec 2015 12:32:45 +0000 (15:32 +0300)]
Fix comparison of Variant and other type in test_model_sync

Tests TestModelsMigrations failed on comparation Variant type and
BigInteger after alembic 0.8.4 release.
Current change corrected compare_type for such case.

Closes-bug: #1526675

Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
Change-Id: I7ae7aaf053a81f487d9ec14859700806fa4f9017

8 years agoAdd check that list of agents is not empty in _get_enabled_agents
Sergey Belous [Thu, 3 Dec 2015 15:49:13 +0000 (18:49 +0300)]
Add check that list of agents is not empty in _get_enabled_agents

No reason to try get enabled_agents and send notification
if there are no any agents associated with network.

Closes-bug: #1522471
Change-Id: I111967415ce600253fc679837d03c9cd75f19656

8 years agoRemove unused parameter from _update_router_db method
Eugene Nikanorov [Wed, 16 Dec 2015 12:58:47 +0000 (16:58 +0400)]
Remove unused parameter from _update_router_db method

While gw_info is being passed to _update_router_db method
of various classes it is never actually used, so this is just
a cleanup.

Change-Id: I311f6976c21fa07a7532c3d0bbe56b5e35a18f6e
Closes-Bug: #1526785

8 years agoMerge "Tune _get_candidates for faster scheduling in dvr"
Jenkins [Wed, 16 Dec 2015 08:47:31 +0000 (08:47 +0000)]
Merge "Tune _get_candidates for faster scheduling in dvr"

8 years agoUse a joined relationship for AZ info on routers
Kevin Benton [Wed, 16 Dec 2015 06:49:50 +0000 (22:49 -0800)]
Use a joined relationship for AZ info on routers

This patch adds a joined relationship from the routers
to the agent table to prevent excessive DB lookups of the
agent availability zones during router listings.

This fix is the same as the one for networks here:
I908ceb1a68e0eed7c304e3ff82279ad6fa406167

A follow-up patch will add an AZ table so this doesn't
have to join directly to the agents table.

Change-Id: I808f8ff0c581478b2ea1144e297d83af599a32f2
Closes-Bug: #1526644

8 years agoMerge "Updating devref for networking-onos project"
Jenkins [Wed, 16 Dec 2015 07:24:56 +0000 (07:24 +0000)]
Merge "Updating devref for networking-onos project"

8 years agoMerge "Use a joined relationship for AZ info on networks"
Jenkins [Wed, 16 Dec 2015 07:21:03 +0000 (07:21 +0000)]
Merge "Use a joined relationship for AZ info on networks"

8 years agoMerge "Add explicit address family to AddressScope"
Jenkins [Wed, 16 Dec 2015 03:45:32 +0000 (03:45 +0000)]
Merge "Add explicit address family to AddressScope"

8 years agoCleanup all the release notes
Kyle Mestery [Mon, 14 Dec 2015 14:40:26 +0000 (08:40 -0600)]
Cleanup all the release notes

Fix grammar issues with release notes. Make the wording clearer for
a few of them as well.

Change-Id: If766f222c57f490276de717618ebb7102e7efdcb
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoMerge "Force service provider relationships to load"
Jenkins [Tue, 15 Dec 2015 23:08:40 +0000 (23:08 +0000)]
Merge "Force service provider relationships to load"

8 years agoImprove tox to show coverage report on same window
Manjeet Singh Bhatia [Tue, 15 Dec 2015 21:06:24 +0000 (21:06 +0000)]
Improve tox to show coverage report on same window

with this patch coverage report will be shown with the results when
tox -e cover will be run

Change-Id: Ic975e65f1b3abadd90075e7f040c605e3740990f

8 years agoMerge "DVR: handle dvr serviceable port's host change"
Jenkins [Tue, 15 Dec 2015 21:05:22 +0000 (21:05 +0000)]
Merge "DVR: handle dvr serviceable port's host change"

8 years agoMerge "Batch db segment retrieval"
Jenkins [Tue, 15 Dec 2015 18:51:27 +0000 (18:51 +0000)]
Merge "Batch db segment retrieval"

8 years agoMerge "Separate rbac calculation from _make_network_dict"
Jenkins [Tue, 15 Dec 2015 18:34:07 +0000 (18:34 +0000)]
Merge "Separate rbac calculation from _make_network_dict"

8 years agoTune _get_candidates for faster scheduling in dvr
Swaminathan Vasudevan [Fri, 6 Nov 2015 01:00:49 +0000 (17:00 -0800)]
Tune _get_candidates for faster scheduling in dvr

Right now we have seen some performance issues when
dvr routers are scheduled on multiple compute nodes
with thousands of VMs on the routed subnets.

The _get_candidates call get_l3_agent_candidates with
a complete list of agents irrespective of the routers
already hosted on the agents or not.

So this fix will reduce the amount of iterations that
get_l3_agent_candidates need to process for all the
agents and would increase the control plane performance.

Closes-Bug: #1513678
Change-Id: I8f781d4cbc996ce13441303c9296e4f6ec822b94

8 years agoMerge "Ignore possible suffix in iproute commands."
Jenkins [Tue, 15 Dec 2015 14:06:23 +0000 (14:06 +0000)]
Merge "Ignore possible suffix in iproute commands."

8 years agoMerge "Add option for nova endpoint type"
Jenkins [Tue, 15 Dec 2015 10:06:06 +0000 (10:06 +0000)]
Merge "Add option for nova endpoint type"

8 years agoMerge "Removing adv svcs dependencies on neutron"
Jenkins [Tue, 15 Dec 2015 09:18:04 +0000 (09:18 +0000)]
Merge "Removing adv svcs dependencies on neutron"

8 years agoUpdating devref for networking-onos project
vikram.choudhary [Tue, 1 Dec 2015 09:23:17 +0000 (14:53 +0530)]
Updating devref for networking-onos project

Below changes are done as part of this patch.
* Mention about ONOS l3 support.
* Proposing Mr. Albert Dongfeng as a lieutenant for networking-onos.

Change-Id: I87827b08ed868f68cbd49c1fa7b91352d3c46605

8 years agoUse a joined relationship for AZ info on networks
Kevin Benton [Mon, 14 Dec 2015 01:56:57 +0000 (17:56 -0800)]
Use a joined relationship for AZ info on networks

The previous code was doing a DB lookup for each network's
availability zone which was significantly impacting the
performance of network listings.

This patch adjusts the network model to be automatically joined
to the DHCP agents table that the AZ code uses to populate the
AZs for the network.

Change-Id: I908ceb1a68e0eed7c304e3ff82279ad6fa406167
Closes-Bug: #1525740

8 years agoCorrect return values for bridge sysctl calls
Andreas Scheuring [Thu, 3 Dec 2015 13:54:39 +0000 (14:54 +0100)]
Correct return values for bridge sysctl calls

This fixes an issue where the lb agent did not plug the
dhcp tap device into the bridge when having vlan networking
set up.  Caused by setting of disable_ipv6 value.

Closes-Bug: #1520618
Change-Id: I0d21fad3a676d1fdd30501ea6a295f1e9b207a3a
Co-Authored-By: Brian Haley <brian.haley@hpe.com>
8 years agoBatch db segment retrieval
Kevin Benton [Fri, 11 Dec 2015 18:55:38 +0000 (10:55 -0800)]
Batch db segment retrieval

A net-list operation was calling extend_network_dict_provider for
each network individually which would result in a database call for
each network.

This adds a new call in the manager to extend multiple networks at
once and then it adds a bulk version of get_network_segments that
it calls.

Now 1 net list of any number of networks will only result in 1
segment DB call.

Change-Id: I2543b3bdbb178ee4bb8d1288e9a27af1c5c8c8b4
Closes-Bug: #1525423
Partial-Bug: #1513782

8 years agoSeparate rbac calculation from _make_network_dict
Kevin Benton [Fri, 11 Dec 2015 17:56:01 +0000 (09:56 -0800)]
Separate rbac calculation from _make_network_dict

When a subnet dict was being created, it was calling
_make_network_dict to get the 'shared' flag for the
subnet. The issue with this is that the _make_network_dict
function would iterate over the subnets on the passed in
network object, which would trigger a database lookup
of all of the subnets.

This patch just separates the 'shared' flag calculation out
into a separate function that both calls can leverage.

Change-Id: I2cb766ce1fd8ddcc75209f9e92221a3b77015ea2
Closes-Bug: #1525295
Partial-Bug: #1513782

8 years agoAdd explicit address family to AddressScope
Ryan Tidwell [Sat, 10 Oct 2015 00:07:51 +0000 (17:07 -0700)]
Add explicit address family to AddressScope

Adds an ip_version field for enforcing an address family on
an AddressScope.  All SubnetPools in an AddressScope must be
from the same address family. A SubnetPool cannot be created
in an AddressScope with a different address family.

Change-Id: Ibc6de08e0ef58a5da954d13f274f6003012a76cd
Partially-Implements: blueprint address-scopes

8 years agoDVR: handle dvr serviceable port's host change
Oleg Bondarev [Thu, 22 Oct 2015 10:23:21 +0000 (13:23 +0300)]
DVR: handle dvr serviceable port's host change

When a VM port's host is changed we need to check if a router
should be unscheduled from old host and send corresponding
notifications.
commit d5a8074ec3c67ed68e64a96827da990f1c34e10f added such
a check when port is unbound. This patch adds similar check
in case of host change (instance live migration)

Closes-Bug: #1508869

Change-Id: I57fa8253b2c88f7b7380a79b841fc424e9e52f19

8 years agoMerge "Skip keepalived_respawns test"
Jenkins [Mon, 14 Dec 2015 14:57:56 +0000 (14:57 +0000)]
Merge "Skip keepalived_respawns test"

8 years agoAdding a VNIC type for physical functions
Brent Eagles [Mon, 9 Nov 2015 12:56:53 +0000 (09:26 -0330)]
Adding a VNIC type for physical functions

This change adds a new VNIC type to distinguish between virtual and
physical functions in SR-IOV.

The new VNIC type 'direct-physical' deviates from the behavior of
'direct' VNICs for virtual functions. While neutron tracks the resource
as a port, it does not currently perform any management functions.
Future changes may extend the segment mapping functionality that is
currently based on agent configuration to include direct types.
However, the direct-physical VNICs will not have functional parity with
the other SR-IOV VNIC types in that quality of service and port security
functionality is not available.

APIImpact
DocImpact: Add description for new 'direct-physical' VNIC type.

Closes-Bug: #1500993

Change-Id: If1ab969c2002c649a3d51635ca2765c262e2d37f

8 years agoAdd functional test for availability_zone support
Hirofumi Ichihara [Fri, 4 Dec 2015 14:56:20 +0000 (23:56 +0900)]
Add functional test for availability_zone support

This patch adds the functional tests for availability_zone support.

Change-Id: Ie7fe7cd357a952baacb95d4fc05a687c6465ad61
Co-Authored-By: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Partially-implements: blueprint add-availability-zone

8 years agoMerge "Deprecated tox -downloadcache option removed"
Jenkins [Sun, 13 Dec 2015 11:02:16 +0000 (11:02 +0000)]
Merge "Deprecated tox -downloadcache option removed"

8 years agoMerge "Add address scope to ports in RPC response to L3 agent"
Jenkins [Sat, 12 Dec 2015 00:09:32 +0000 (00:09 +0000)]
Merge "Add address scope to ports in RPC response to L3 agent"

8 years agoMerge "Decompose OFAgent mechanism driver from neutron tree completely"
Jenkins [Fri, 11 Dec 2015 22:37:01 +0000 (22:37 +0000)]
Merge "Decompose OFAgent mechanism driver from neutron tree completely"

8 years agoDeprecated tox -downloadcache option removed
Ondřej Nový [Fri, 11 Dec 2015 20:06:14 +0000 (21:06 +0100)]
Deprecated tox -downloadcache option removed

Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I1778135d68a4bf96da3a0c0e4660172d1f13d16b

8 years agoAPI: _validate_ip_address should not raise an exception
Gary Kotton [Thu, 10 Dec 2015 12:23:55 +0000 (04:23 -0800)]
API: _validate_ip_address should not raise an exception

The _validate* methods should return an error message and
not raise an exception.

Commit 2794bb89d664355ae1194a0b1f8346c1538caef8 raised an
exception instead of returning a message with the invalid data.

TrivialFix

Change-Id: Id3cc44a4ed248415f19c73beec2b24fd295110c8

8 years agoRemoving adv svcs dependencies on neutron
Paul Michali [Mon, 7 Dec 2015 20:05:35 +0000 (15:05 -0500)]
Removing adv svcs dependencies on neutron

After upstreaming Idcfeee6ddc2982fff49f44064c918bfd4627be12 and
I62bfd6b34c381427425ca2a656e5782087de3a3b, we can remove items
from Neutron.

Specifically, LOADBALANCER_PLUGIN and LOADBALANCER_AGENT are not
used now. FIREWALL_PLUGIN is used in one module, so moved there.
The LOADBALANCER constant is only used in test files, but it is
used in multiple files, so leaving it. LOADBALANCERV2 is only used
in the header it is defined, so leaving it as well.

In the FW and LB repos, there are no longer dependency on these literals.

Change-Id: I7f0b972e1ae7ef435a3612e239dad7b2c04baea2
Implements: blueprint neutron-lib

8 years agoReturn availability_zone_hints as list when net-create
Hirofumi Ichihara [Fri, 11 Dec 2015 07:19:27 +0000 (16:19 +0900)]
Return availability_zone_hints as list when net-create

In neutron with availability zone extensions, we receive
the return value with availability_zone_hints as string
although we expect list.

Change-Id: Ifb1d741324725f3f2692962a02bf3d870611fafb
Closes-bug: #1524602

8 years agoMerge "ML2: Add tests to validate quota usage tracking"
Jenkins [Fri, 11 Dec 2015 03:03:34 +0000 (03:03 +0000)]
Merge "ML2: Add tests to validate quota usage tracking"

8 years agoDecompose OFAgent mechanism driver from neutron tree completely
fumihiko kakuma [Wed, 9 Dec 2015 04:00:39 +0000 (13:00 +0900)]
Decompose OFAgent mechanism driver from neutron tree completely

All 3rd-party code is required to be removed from the neutron tree.
This change removes definition for ofagent mechanism driver from
neutron repository.

Change-Id: Ia21387eeaed71f38822356e22e4adbd237c1e64c
Closes-Bug: #1524164
Depends-On: I04c741daf12e7628e2c1e2d1b81b2b2ce1310542

8 years agoIgnore possible suffix in iproute commands.
John Schwarz [Tue, 8 Dec 2015 14:17:46 +0000 (16:17 +0200)]
Ignore possible suffix in iproute commands.

Closes-Bug: #1522199
Change-Id: I14815abd9345edb079e3331cbe2465ad22a0d4c3