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
Ic68858aaf1a519085dff394e6edc8c8fe6aeee6a forgot to move these
sections one level up. Without this, tox -edocs barfs.
Change-Id: I649ba20013ccbe25023b2c8c3a2014fb7be47d97
Also split the API and DB areas in the table, although in
the code itself the line between them is fuzzy.
Change-Id: I6c1122bf22da1713b11d472c59cec422865eb1e7
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
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
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
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
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
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
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
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
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
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
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
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
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
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