16882 Commits

Author SHA1 Message Date
YAMAMOTO Takashi
c15c4e4ede configure_for_func_testing.sh: Source lib/neutron as well
Also, set ENABLED_SERIVICES before sourcing devstack files
because they uses it.  This is a preparation for an upcoming
change in devstack. [1]

[1] I3ff136fc8330c92007cdfe91b77d7f9865eabd8d

Change-Id: Ida1f83b6b3ef9b76be13c063c7e35a8703214078
2016-12-01 20:40:19 +09:00
Jenkins
bf84180411 Merge "Fix docs headers" 2016-12-01 05:17:40 +00:00
Jenkins
a3c12485ba Merge "Update DB lieutenant to Ann Taraday" 2016-12-01 03:37:24 +00:00
Jenkins
a6ca513e6e Merge "Pecan: Minor Fix in startup" 2016-11-30 22:57:16 +00:00
Jenkins
6e0868d24c Merge "Refactoring config options for mech_sriov opts" 2016-11-30 22:57:00 +00:00
Jenkins
4735c6b64c Merge "Migrate device_owner for router's interface" 2016-11-30 22:56:39 +00:00
Jenkins
d1cf5bcd6c Merge "Fix OSprofiler support" 2016-11-30 22:52:41 +00:00
Jenkins
45d61e5749 Merge "tests: introduce update_obj_fields method in base objects test class" 2016-11-30 22:50:46 +00:00
Armando Migliaccio
76c9984426 Fix docs headers
Ic68858aaf1a519085dff394e6edc8c8fe6aeee6a forgot to move these
sections one level up. Without this, tox -edocs barfs.

Change-Id: I649ba20013ccbe25023b2c8c3a2014fb7be47d97
2016-11-30 11:54:34 -08:00
Henry Gessau
f87274c9b5 Update DB lieutenant to Ann Taraday
Also split the API and DB areas in the table, although in
the code itself the line between them is fuzzy.

Change-Id: I6c1122bf22da1713b11d472c59cec422865eb1e7
2016-11-30 19:32:01 +00:00
Anindita Das
78d5b240c0 Refactoring config options for mech_sriov opts
Refactoring neutron ml2 plugin mech_sriov config opts to be in
neutron/conf/plugins/ml2/drivers/mech_sriov so that all the
configuration options for mech_sriov reside in a centralized
location. This simplifies the process of looking up the mech_sriov
config opts and provides an easy way to import.

Change-Id: I64b243f91f2e637279456b3b06c2998cd89dc076
Partial-Bug: #1563069
2016-11-29 22:57:38 +00:00
John Schwarz
4c41a259c9 Migrate device_owner for router's interface
When migrating a HA router to legacy, the router's interface (whose
device_owner is network:ha_router_replicated_interface) isn't changed
to network:router_interface. This means that certain actions (such as
trying to use 'neutron router-interface-delete' and migrating the router
to DVR) won't work (since a router interface of the appropriate type
can't be found and an SNAT port won't be created, respectively). This
patch takes care of the needed migration.

Closes-Bug: #1645716
Change-Id: I0c18ccf08ddfa57fde9b5ac331101497079bd330
2016-11-29 17:54:27 +02:00
Jenkins
8e27076b32 Merge "Using a new security group in scenario tests" 2016-11-29 15:14:03 +00:00
Ihar Hrachyshka
79e62516af tests: introduce update_obj_fields method in base objects test class
This method can be used by subclasses to inject specific values into
randomly generated values for objects, for example, when we need to link
those automatic test objects to other objects through foreign keys.

Change-Id: Ic32ebf5ef055b25e4c765a9bf71ca4657d3b3d70
Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db
2016-11-29 07:29:31 +00:00
Jenkins
6c46e55232 Merge "Revert "Deprecate SR-IOV 'physical_device_mappings' config option"" 2016-11-29 07:28:58 +00:00
Jenkins
58dfad0cdc Merge "ovs-agent: Close ryu app on all exceptions" 2016-11-29 06:52:45 +00:00
Jenkins
8787000b8c Merge "Reuse plugin's update method for changing trunk status" 2016-11-29 06:51:45 +00:00
Jenkins
8427c0592f Merge "Add missing revises_on_change attribute" 2016-11-29 02:47:02 +00:00
Armando Migliaccio
1e36e9beb8 Reuse plugin's update method for changing trunk status
This has the effect of triggering notifications,
which may turn out to be useful to some drivers.

Change-Id: I02e268a413bfa7fe9f36fcece16886840a6fb0c6
2016-11-29 01:23:31 +00:00
Jenkins
def81325b4 Merge "Disable 'accept_ra' in DHCP agent namespace" 2016-11-28 23:45:41 +00:00
Jenkins
fedcbabbcf Merge "Get rid of DVR inheritance of _delete_current_gw_port" 2016-11-28 23:45:23 +00:00
Jenkins
ff6aded74d Merge "Introduce objects_exist method in neutron/objects/base.py" 2016-11-28 23:43:27 +00:00
Jenkins
8568320c37 Merge "OVO: add SubnetServiceType object and code integration." 2016-11-28 20:38:48 +00:00
Jenkins
b0f4c72214 Merge "OVO for Provisioning Block DB Model" 2016-11-28 19:33:10 +00:00
Dina Belova
6aa9a3cd63 Fix OSprofiler support
During the new OSprofiler initialization method introduction
there was an issue introduced - OSprofiler expects context
to be a dict, not Context object. This patch fixes it.

Change-Id: I8b42aa47276c6e7ef362cf9ed4501ee732b5cc4b
Closes-Bug: #1644437
2016-11-28 19:22:13 +00:00
Shashank Kumar Shankar
a2047bb6f6 Introduce objects_exist method in neutron/objects/base.py
This patch introduces objects_exist method in neutron/objects/base.py.

The purpose of this patch: During OVO integration, there are
instances where we need to check whether an object is present
or not. Instead of writing custom methods based on get_objects,
this objects_exist method can be used.

Change-Id: I2546c31ef4a81c1e34dfaade97f93407910e0985
Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db
2016-11-28 16:32:25 +00:00
Jenkins
cbd0632620 Merge "Integrate Address Scope OVO into DB" 2016-11-28 14:59:21 +00:00
Artur Korzeniewski
a20eac787f OVO: add SubnetServiceType object and code integration.
Adding SubnetServiceType to Subnet OVO as synthetic field.
It is not required to change the Subnet version, since it is not used.

Change-Id: I0ccff39dcb5e41351b0a4aeba7c98cfba24a1689
Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db
2016-11-28 14:54:06 +01:00
Moshe Levi
b25e29ca24 Revert "Deprecate SR-IOV 'physical_device_mappings' config option"
There are still valid use cases to keep using physical_device_mappings
config option. We still want to allow neutron user to restrict physnets,
for example, if API user does not enforce compatible segments chosen for
a SR-IOV port.

This reverts commit 03b84bc920b5499e1fef23c646268fffa1d859d7.

Change-Id: Ic373a0ab62c610fae1cbdaf489ba27e9cf02ba5b
2016-11-28 13:25:08 +00:00
Jenkins
d78903dd60 Merge "ovsdb: don't erase existing ovsdb managers" 2016-11-28 12:42:21 +00:00
Victor Morales
0d073270a3 Integrate Address Scope OVO into DB
This change take advantage of the use of Oslo-Versioned Objects for
Address Scope class.

Co-Authored-By: Ankur Gupta <ankur.gupta@intel.com>
Co-Authored-By: Mohit Malik <mohit.malik@intel.com>

Change-Id: I7d063b23f45c65c91750c4482817dd372ea1ac93
Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db
2016-11-28 11:09:52 +00:00
Jenkins
b2399d847a Merge "Refactoring config options for plugin l2pop opts" 2016-11-28 09:46:34 +00:00
Jenkins
e2ce3b6545 Merge "Redirect ExtensionDescriptor to neutron-lib" 2016-11-28 06:07:40 +00:00
Lujin
3b610a1deb Add missing revises_on_change attribute
This patch adds revises_on_change attribute to the following models
and API tests to ensure the correct behaviour:

ExternalNetwork (Network)
RouterExtraAttributes (Router)
QosPortPolicyBinding (Port)
QosNetworkPolicyBinding (Network)
PortBindingPort (Port)
SegmentHostMapping (Network Segment)

Change-Id: I8bda9fc940e99d18bab2b4229198374f1cabf84b
Closes-Bug: #1642517
2016-11-28 10:04:03 +09:00
Jenkins
661b2e1f28 Merge "L3: Only send notifications if l3 plugin exists" 2016-11-27 10:54:59 +00:00
Henry Gessau
8b0bdbea83 Redirect ExtensionDescriptor to neutron-lib
Preliminary step in adopting ExtensionDescriptor from neutron-lib.

This switches to using the ExtensionDescriptor class from
neutron-lib. In this step we provide a redirector so that subprojects
do not break. In follow-up patches, all subprojects will switch to
using neutron-lib directly, and then the redirector will be removed
from neutron core.

Change-Id: I5a111e0033e518e39b3042f047ee9eebba77a0d5
2016-11-25 21:31:53 -05:00
Jenkins
bc852b379c Merge "Remove legacy oslo.messaging.notify.drivers" 2016-11-26 00:33:53 +00:00
Jenkins
9355d73ead Merge "Solve unexpected NoneType returned by _get_routers_can_schedule." 2016-11-25 18:30:12 +00:00
Jenkins
7250d99088 Merge "Show team and repo badges on README" 2016-11-25 17:02:18 +00:00
Jenkins
cc87c8c0e9 Merge "functional: Pass string tag to other_config" 2016-11-25 16:27:30 +00:00
Jenkins
7714485d5a Merge "Speed-up iptables_manager remove_chain() code" 2016-11-25 16:25:31 +00:00
Flavio Percoco
20cd64b035 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/559465d22e07c31d0b932bba6ba62b7b

Change-Id: I77ab202260824ec33f22a0153776fe1baa1cd120
2016-11-25 15:35:21 +01:00
Jenkins
bc5d1a0d58 Merge "fullstack: add some more security group tests" 2016-11-25 13:30:00 +00:00
Jakub Libosvar
949bce960d ovs-agent: Close ryu app on all exceptions
Previous patch closes app only when ovs-agent raises an exception. This
leaves some corner cases where exceptions inheriting from BaseException
are raised. It's better to be defensive and always close app on error.

Change-Id: Icaaaecc4d00e3a280c3af2e403499bb7ac9e8aa6
Related-bug: 1611237
2016-11-25 08:15:43 -05:00
Kevin Benton
f6df76cc82 Get rid of DVR inheritance of _delete_current_gw_port
Switch to a callback based approach for cleaning up the
distributed resources for a router gateway. This maintains
the current transactional semantics and gets us closer
to eliminating the use of mixins for DVR.

Change-Id: I1d17706652811383d4bc968812d5cd6526febc4b
2016-11-25 02:47:52 -08:00
Jenkins
b8347e16d1 Merge "Add check to address_pair that items in list are dict" 2016-11-25 08:04:29 +00:00
Pepijn Oomen
62176a9b40 Solve unexpected NoneType returned by _get_routers_can_schedule.
Solve a problem with an unexpected NoneType returned by
_get_routers_can_schedule called from within
_schedule_ha_routers_to_additional_agent when using:

router_scheduler_driver =
    neutron.scheduler.l3_agent_scheduler.AZLeastRoutersScheduler

This was leading to problems with starting neutron-l3-agent on network
nodes, causing HA routers to fail to start.

Closes-Bug: #1641879
Change-Id: I33c5a6214670f0ada9c2293b0eb2ff243f6f7b1b
2016-11-25 06:59:54 +01:00
IWAMOTO Toshihiro
88ee81dfaa fullstack: add some more security group tests
The added tests check if a remote SG member addition works and
a SG rule removal stops an established connection.  These tests
piggyback on the existing test method in order to work around
the lack of isolation between tests.

Change-Id: I43bae9b320528ecdf3ec60881613ab1028e90144
2016-11-25 02:32:16 +00:00
Jenkins
e3258fcd64 Merge "Update network dict with segment and mtu info in _create_subnet_db" 2016-11-24 22:03:07 +00:00
Jenkins
0c1d1097d7 Merge "Capture NotFound Exceptions in subnet postcommit" 2016-11-24 21:22:22 +00:00