24853 Commits

Author SHA1 Message Date
Slawek Kaplonski
a75fc891bc Add mitogen to the docs requirements
Mitogen is dependency of the pyroute2 and was added link to it
the docs in pyroute2 0.6.1. Due to the missing mitogen in our
docs venv, docs job was failing.
So let's install mitogen as docs env requirement, at least for now
to unblock our gate.
Later we can think about better solution as e.g. adding it properly to
the requirements or report and fix the issue in the pyroute2.

Change-Id: Iba37581916842bb5fc9f42f7f483d3431747bf8d
Closes-Bug: #1928913
2021-05-20 09:00:40 -04:00
Zuul
5307cd8abe Merge "Add tests for QoS API's new policy rules" 2021-05-20 11:12:46 +00:00
Zuul
f3d1b8b9c2 Merge "Add tests for Security Groups API's new policy rules" 2021-05-20 09:22:03 +00:00
Zuul
b894d0103d Merge "Add tests for L3 conntrack helper API's new policy rules" 2021-05-20 08:49:15 +00:00
Rodolfo Alonso Hernandez
9e6b7a2284 Install "pyroute2" as a doc job depedency
By adding this library to the doc requirements file, tox will install
it limiting the upper version according to
"requirements/upper-constraints.txt".

"pyroute2" is called in tox doc job as mentioned in [1]. Since version
0.6.0, the library structure changed. To keep backwards compatibility,
all modules are imported from the main namespace. As reported in the
referred bug, the library "mitogen" must be installed first.

In stable releases that use older "pyroute2" versions, this library is
not needed but this patch should enforce the upper library version.

Related-Bug: #1928913

[1]2a4074918c/doc/source/conf.py (L33-L40)

Change-Id: I0cf458f4532d313e593a943653e8310b93ac1e9c
2021-05-19 14:31:31 +00:00
Rodolfo Alonso Hernandez
2a4074918c Remove call to "fixup_ubuntu"
Since [1] this method is not in Devstack repository. Bionic is no
longer supported.

[1]https://review.opendev.org/c/openstack/devstack/+/788754

Change-Id: Ied3442289864656654d3745d3ea7841a5aae713c
Closes-Bug: #1928805
2021-05-18 14:13:31 +00:00
Zuul
c12588c7be Merge "Fix wrong assertion methods in a unit test" 2021-05-17 08:21:16 +00:00
Zuul
3b3398b8c5 Merge "use payloads for NETWORK callback events" 2021-05-16 08:50:19 +00:00
Zuul
8353675884 Merge "Fix SQLAlchemy warnings with view only relationships" 2021-05-14 19:24:31 +00:00
Zuul
0f3e04b00f Merge "Use payloads for TRUNK and SUBPORTS callbacks" 2021-05-14 18:02:07 +00:00
Takashi Natsume
4e3f65ceef Fix wrong assertion methods in a unit test
Fix wrong assertion methods in the
test_delete_port_binding_delete_binding_and_levels method in
neutron.tests.unit.plugins.ml2.test_plugin.TestMl2PluginOnly.

Change-Id: Ib9c5f9ba660484df6048238375bc31f624228677
Closes-Bug: 1928471
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2021-05-14 23:38:42 +09:00
Zuul
92fa8ce6af Merge "[ovs fw] Restrict IPv6 NA and DHCP(v6) IP and MAC source addresses" 2021-05-14 13:57:02 +00:00
Zuul
aa28685406 Merge "[OVN] Re-enable test_port_security_macspoofing_port for slow jobs" 2021-05-14 12:47:26 +00:00
Zuul
8bd65385d1 Merge "[OVN] Add "filter-validation" extension to supported list" 2021-05-14 11:17:51 +00:00
likui
2c192b78a2 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of
dash-separated options in 'setup.cfg' will not be supported
in a future version [1].
Get ahead of the issue by replacing the dashes with underscores.
Without this, we see 'UserWarning' messages
like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I68b247f1abc93df91fd2ece6b7a14c633e27b279
2021-05-12 18:23:20 +08:00
Zuul
ba2dc74c9a Merge "Adding placement auth options to oslo.config entry_points" 2021-05-12 05:33:23 +00:00
Zuul
a12d9e41fd Merge "Deprecate [designate] admin_* parameters" 2021-05-11 08:38:32 +00:00
Takashi Kajinami
adfd853267 Deprecate [designate] admin_* parameters
The admin_* parameters are implementing the same functionality as
keystoneauth parameters alghouth these don't provide all parameters for
Keystone v3 identity but are still based on Keystone v2 identity.
This change deprecates these parameters so that we can remove
such redundant and outdated definitions in a future release.

Closes-Bug: #1927494
Change-Id: I6294098008fbebb2e64922b3aaa085c1361d48a2
2021-05-11 12:08:42 +09:00
Zuul
63e4932496 Merge "Add physnet name case sensitivity limitation to the qos doc" 2021-05-10 21:28:39 +00:00
David Vallee Delisle
89fd50d0f9 Adding placement auth options to oslo.config entry_points
To assist with automated configuration validation, we need entry points
for oslo.config.opts for placement auth options.

Change-Id: Ibaaa1600e6a14f3308024c4e22e3489ee21e7244
2021-05-10 09:00:57 -04:00
Zuul
9241c76b04 Merge "Add enable_dhcp filter in get_network_info rpc" 2021-05-08 22:01:59 +00:00
Nurmatov Mamatisa
4aa5de254d use payloads for NETWORK callback events
This patch switches over to the payload style of callbacks for
NETWORK based events. As part of this change a few shims are needed
to handle cases where some callbacks don't yet use payloads and others
do. Once we move over to payloads for all callbacks the shims can be
removed.

NeutronLibImpact

Change-Id: I889364b5d184d47a79fe6ed604ce13a4b334acfa
2021-05-08 20:50:46 +03:00
Zuul
5d4f5d42d0 Merge "Replace "get_routing_table" with "list_ip_routes"" 2021-05-07 21:46:07 +00:00
Rodolfo Alonso Hernandez
2321339ee6 Fix SQLAlchemy warnings with view only relationships
The view only relatinships must be specified in the DB model.
The following are fixed:
- QosNetworkPolicyBinding.port: "port" DB object will have a view only
  copy of the "network" QoS policy.
- Subnet.rbac_entries: "subnet" DB object will have a view only copy
  of the "network" RBAC policies.

Change-Id: I2396c0a23b00439d46faf4b29a082b3819528d89
Closes-Bug: #1927763
2021-05-07 17:31:33 +00:00
Balazs Gibizer
dcd277f4f1 Add physnet name case sensitivity limitation to the qos doc
Change-Id: I1485948b251e451895f8e773cc34be1221cf650d
2021-05-07 18:24:40 +02:00
Zuul
235864772d Merge "use payloads for SEGMENT events" 2021-05-07 11:58:53 +00:00
Zuul
9e9488be86 Merge "Implement multipath routing in route commands" 2021-05-06 06:42:49 +00:00
Zuul
4d26c3a544 Merge "[OVN] Check for lock in check_for_mcast_flood_reports" 2021-05-05 13:01:52 +00:00
Nurmatov Mamatisa
2d97f3edb2 use payloads for SEGMENT events
This patch switches over to payload style of callbacks for the remaining
SEGMENT based callback events. Unit tests are also updated as needed
to handle the switch.

NeutronLibImpact

Change-Id: I3624228238babc64fe02bf0cc56eb0c1f6d35e73
2021-05-05 15:17:50 +03:00
Zuul
ce22171b05 Merge "designate: allow PTR zone creation to fail" 2021-05-05 02:09:39 +00:00
Zuul
6293a7325c Merge "Improve Network delete performance" 2021-05-04 22:58:53 +00:00
Lucas Alvares Gomes
317407fe61 [OVN] Check for lock in check_for_mcast_flood_reports
The maintenance method check_for_mcast_flood_reports() was not checking
if that instance of the maintenance task has a valid lock before trying
to execute a transaction.

This patch adds such check so instances of the maintenance task without
a valid lock will just return.

Change-Id: I791026058b37f06d1a19b5fb6823b9dbb2a3eca5
Closes-Bug: #1927077
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
2021-05-04 11:33:20 +01:00
Zuul
d6d6855234 Merge "Physical NIC RP should be child of agent RP" 2021-05-02 02:35:13 +00:00
Rodolfo Alonso Hernandez
c511964d70 Replace "get_routing_table" with "list_ip_routes"
"get_routing_table" uses "pyroute2.IPDB" that has been deprecated.
"list_ip_routes" has been improved to be able to read multipath
routes.

Closes-Bug: #1926476

Change-Id: I0299fa11a7afefbd2999f81cd4ed3beed572009c
2021-05-01 17:39:42 +00:00
Zuul
94d36862c2 Merge "trivial: Reduce duplication in project network tests" 2021-04-30 16:46:07 +00:00
Zuul
1a5ae1db21 Merge "trivial: Reduce duplication in network policy tests" 2021-04-30 16:43:40 +00:00
Zuul
d3a8bdf49a Merge "Add tests for network API's new policy rules" 2021-04-30 16:41:54 +00:00
Zuul
c170d86ff9 Merge "Improve Subnet update performance" 2021-04-30 16:02:26 +00:00
Nurmatov Mamatisa
69ef824069 Use payloads for TRUNK and SUBPORTS callbacks
This patch switches the code over to the payload style of callbacks [1]
for TRUNK and SUBPORTS events. As needed existing callbacks are shimmed
to support both payload and kwarg style callbacks. These shims will be
removed once all callbacks are switched over to payloads.
Also the neutron.services.trunk.callback module is removed as consumers
will no longer need the TrunkPayload therein.

NeutronLibImpact

[1]
https://docs.openstack.org/neutron-lib/latest/contributor/callbacks.html

Change-Id: Ie302b48b283f8780072b5c9e2bc8787d87c11794
2021-04-30 14:41:08 +03:00
Rodolfo Alonso Hernandez
2cf4314553 Implement multipath routing in route commands
Related-Bug: #1926476

Change-Id: I598da266905a5645b744d7ffcc47b417ff64a5e7
2021-04-30 08:34:48 +00:00
Jens Harbott
ca1c6fd69b designate: allow PTR zone creation to fail
When multiple PTR records are created at the same time, Neutron may try
to create the same zone multiple times, resulting in a conflict. Ignore
the resulting error instead and try to create the record anyway.

Change-Id: I59b0f99463ab00743f19016a890561916df900ed
Closes-Bug: 1891309
2021-04-30 08:58:50 +02:00
Zuul
b4812af4ee Merge "Improve "objects.db.api.count" method" 2021-04-29 17:31:15 +00:00
Zuul
150396625a Merge "Add tests for logging API's new policy rules" 2021-04-29 07:39:46 +00:00
Zuul
9b1631bdd2 Merge "Added common config and SR-IOV agent config to sanity check" 2021-04-28 23:30:45 +00:00
Zuul
613e34de41 Merge "[OVN] External network ports (SR-IOV) QoS is handled by SR-IOV agent" 2021-04-28 23:06:51 +00:00
Zuul
b479cb4376 Merge "Add missing "system" scope in some of the new API policies" 2021-04-28 21:26:47 +00:00
Zuul
912c8a15a0 Merge "Change wrong "admin" scope in floatingip_pools to correct "system"" 2021-04-28 21:25:51 +00:00
Zuul
3093510926 Merge "Do not include dynamically loaded values into OVO testing" 2021-04-28 21:25:03 +00:00
Zuul
57f34438c9 Merge "Fix SQLAlchemy backref warnings for viewonly columns" 2021-04-28 18:40:41 +00:00
Zuul
5a3afdb808 Merge "ovn: Add functional tests for get_network_port_bindings_by_ip" 2021-04-28 15:52:52 +00:00