Instead of using oslo.versionedobjects UUID type, use a custom UUIDField
class located in common_types that will actually validate passed values
for UUID-ness.
Closes-Bug: #1614537
Change-Id: I20b24ee57c521b1c68977c2ff7ae56b56875dd64
TimeStamp_db_mixin was using the private '_mapper_adapter_map'
property of sqlalchemy's Query object. Replace it with the public
access property.
Change-Id: I9798078a6c3c4540379d419fb1f16b56d6a4efa6
Fix the following warning:
WARNING: Block quote ends without a blank line; unexpected unindent.
Closes-Bug: #1647541
Change-Id: I1025a22c4c97ca1b824f5fa26bfa3b354d42f4b8
This patch eliminates the following methods in L3 DVR DB
and converts the necessary logic into callbacks:
* _create_router_db
* _update_router_db
There should be no functional difference between the two.
However, this will get us closer to completely eliminating
the inheritance approach for the DVR DB and we can then move
all DVR specific logic into its service provider driver.
This patch had to fix some of the L3HA unit tests that
were instantiating both the regular L3 service plugin as
well as a custom test plugin for L3 operations.
Additionally, to ensure correct ordering of the flag
setting for 'distributed' and the verification of
user-provided flags by the L3 flavor framework, the
L3 flavor framework now subscribed to a BEFORE_CREATE
event that provides the API request before it's mutated
by the DVR code.
Change-Id: I5d4752bf0f8be412af8924d8209bb5fa6d94f40d
Adopt the class rehomed in https://review.openstack.org/389825
This change impacts subprojects that use ExtensionDescriptor from
neutron core. All subprojects should switch to using the class
directly from neutron-lib.
NeutronLibImpact
Change-Id: I0da90fb9d27a0a2008b60e56ed69bc9b9ae63c3e
The test case validates that autogenerated alembic commands meet
our expectations.
The new alembic version adds a leading '# ' to each autogenerated
comment to make flake8 happy. This patch adopts the test case to handle
both new and older versions. This is achieved by switching from exact
match to using a regexp.
Change-Id: I9ca411e5b3d20412fffa05f6eb79659f6c56f3fd
Closes-Bug: #1647027
Port object is already merged. This patch uses it for the unit test.
Change-Id: I4bb5918ea09325f012783b06b49906590c412882
Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db
Refactoring ml2 plugin openvswitch driver configuration options to be
in neutron/conf/plugins/ml2/drivers. This would allow centralization
of all configuration options and provides an easy way to import.
Change-Id: Ie8c6023b2d012eae7ecdb99d5d413956608f4294
Partial-Bug: #1563069
The only reason we need newer openvswitch is following fix [1] for
user-space part of openvswitch. This patch fixes our
test_install_flood_to_tun tests.
Current 2.6 branch has issues with ovsdb where connection with native
interface is getting lost and functional job gets stuck. To mitigate
that, this patch switches back to OVS 2.5.1 version for functional jobs,
compiling only user-space part as OVS 2.5.1 kernel modules are not
supported by Xenial.
Fullstack job remains running with 2.6 because the job needs OVS kernel patch
for local VXLAN tunneling.
[1] 56de2148f6
Related-bug: bug/1646107
Change-Id: Ic5419afe7170e759749afd7055441c82c317efe0
Also performed other house cleaning, like removing lbaas,
which is now part of Octavia, and removing vpnaas since
it is out of the stadium.
Change-Id: I0b625a156e80c3263453ab6790fb2f2453fe924d
In certain cases, the keepalived can take a few seconds to run/stop.
For this reason, the patch proposes a change to the tests, in which
instead of asserting that the process started/stopped, we'll wait a
short while until they do. This will cause failing tests to not fail
simply because it took a few extra CPU cycles to run.
Change-Id: I497ef32651fbb68bf49e172543f9675f6279df4b
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
This patch creates test that generates port ranges and
uses software diversity for comparison the results.
Change-Id: I77a76aa8288b505a0f083357f26a3bce23625897
Related-bug: 1611991
Use the common policy values for all services when enforcing policy
decisions. We add all possibly used policy values to maintain backwards
compatibility.
Change-Id: Ie1d0739ab4dfb0654d8767693dbdba5cd52a30b2
Closes-Bug: #1602081
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
Through [1] ipset members are updated in update_security_group_members
instead of updating during firewall apply. In the same way, we will
delete conntrack entries immediately after deleting remote ipset
members(in update_security_group_members) instead of deleting them after
firewall apply.
As explained in [2], this change partially fixes bug #1580377 i.e it
deletes conntrack entries on remote hosts for a removed port.
[1] https://review.openstack.org/#/c/347068/
[2] https://bugs.launchpad.net/neutron/+bug/1580377/comments/13
Co-Authored-By:shihanzhang <shihanzhang@huawei.com>
Partial-Bug: #1580377
Change-Id: Iea3344a24e2a068b794c44796b4c945432379c13