27827 Commits

Author SHA1 Message Date
Brian Haley
1dbc373869 Update .pylintrc
There are a few warnings disabled that do not generate
failures any more, re-enable them by removing from
.pylintrc file.

TrivialFix

Change-Id: I1a4fff33b0dcd3d88b4ab0c86546098c7a9cafa4
2024-01-17 13:33:08 -05:00
70f9dd926f update OVS_BRANCH to be compatible with ovn main branch
Required since [1] included in ovn repo.

[1] https://github.com/ovn-org/ovn/commit/66ef670

Closes-Bug: #2049488
Change-Id: Ia50937dd81a33da8297576e91aa69e1897899529
2024-01-16 13:04:19 +05:30
Zuul
3ced5956a7 Merge "Forbid the subnet gateway IP deletion if a router interface is attached" 2024-01-15 19:45:23 +00:00
Rodolfo Alonso Hernandez
f9e40971e9 Forbid the subnet gateway IP deletion if a router interface is attached
When a router interface is created, the corresponding subnet gateway IP
is tested first [1]. If the subnet has no gateway IP, the router
interface cannot be created. This IP will be assigned to this port.

The Neutron API also prevents from modifying the subnet gateway IP
if assigned to a router interface [2]. However the API is not
preventing the subnet gateway IP deletion. This patch is adding
this check.

This patch is being tested in the neutron-tempest-plugin [3].

[1]de58c1b995/neutron/db/l3_db.py (L902-L904)
[2]de58c1b995/neutron/db/db_base_plugin_v2.py (L715)
[3]https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/904710

Closes-Bug: #2036423
Change-Id: I4c7b399a3a052749abdb88fb50be628ee91b63a0
2024-01-17 13:33:41 +00:00
Zuul
d34c1f916f Merge "Remove deprecated OVN vif_type config option" 2024-01-15 12:45:52 +00:00
Zuul
a89ba3ae32 Merge "Remove _use_db_facade()" 2024-01-15 12:30:02 +00:00
Zuul
6d927d283c Merge "Fix implicit-str-concat warnings" 2024-01-15 12:17:19 +00:00
Zuul
77ad1ba640 Merge "Fix use-maxsplit-arg warnings" 2024-01-15 12:17:15 +00:00
Zuul
8137d0b728 Merge "Fix use-list-literal warnings" 2024-01-15 12:17:11 +00:00
Zuul
3c31f027a1 Merge "Fix unnecessary-list-index-lookup warning" 2024-01-15 11:25:48 +00:00
Zuul
a921d14d9a Merge "Revert "Disable mysql gather performance in jobs"" 2024-01-15 10:24:49 +00:00
Brian Haley
d55b15bedc Fix unnecessary-list-index-lookup warning
Noticed this test file had this warning, fixed it.
No functional change.

TrivialFix

Change-Id: I2c32838d32d7e5c2ef3d573f2b55eb668ea09c67
2024-01-13 13:53:26 -05:00
Brian Haley
d2a50945bf Remove _use_db_facade()
neutron.object.base._use_db_facade() is unused according
to codesearch, except for the test cases. Remove it.

TrivialFix

Change-Id: I8f183584bf66bac157694c51769409dba2c79da2
2024-01-12 18:29:00 -05:00
Brian Haley
c05fa72915 Fix use-list-literal warnings
Noticed a few test files had these warnings, fixed them.
No functional change.

TrivialFix

Change-Id: Ieb31fed3278e0ca226ef7a64902c06c1df70ecc0
2024-01-12 16:00:24 -05:00
Brian Haley
3d8460c222 Fix use-maxsplit-arg warnings
Noticed a few test files had these warnings, fixed them.
No functional change.

TrivialFix

Change-Id: I082baf04588e3f96a975c8fb2d74b5ec1b987801
2024-01-12 15:54:28 -05:00
Brian Haley
3e2ae14c07 Fix implicit-str-concat warnings
Noticed two test files had these warnings, fixed them.
No functional change.

TrivialFix

Change-Id: I495aaef050da2bd10912d87451b8177a6a929563
2024-01-12 15:44:05 -05:00
Zuul
a89b5e5772 Merge "[FT] Add more information to `IpRouteCommandTestCase` if fails" 2024-01-11 19:33:23 +00:00
Rodolfo Alonso Hernandez
d1fe6a1c27 [FT] Add more information to `IpRouteCommandTestCase` if fails
If a test case fails, now the routes present in the system are printed
too.

Related-Bug: #1988037
Change-Id: Ie8931068bc6d3cb401f3dc70654d9b3d6f0e5281
2024-01-19 13:54:15 +00:00
Zuul
1c074df05a Merge "Add info about metering agent gap in the ML2/OVN backend" 2024-01-11 12:47:51 +00:00
Zuul
b1db513783 Merge "Update exception conditions in `_process_create_port`" 24.0.0.0b1 2024-01-11 11:45:18 +00:00
Rodolfo Alonso Hernandez
de40bfbafb Update exception conditions in `_process_create_port`
This is a follow-up patch to handle a missing comment. The except
branch should never catch a ``AttributeError`` exception, only a
``KeyError`` if that is missing in the ``data`` dictionary.

Related-Bug: #2013228
Change-Id: I6a3249649dde58e666048a613640338ea8af7b36
2024-01-17 17:14:23 +00:00
Rodolfo Alonso Hernandez
90ea96b290 Remove the "new_facade" parameter that is no longer needed
Trivial-Fix

Change-Id: Ie910e0b1655113c22e1cfbeff00ca341046cec71
2024-01-17 17:02:46 +00:00
Slawek Kaplonski
3eeb5d3e6a Add info about metering agent gap in the ML2/OVN backend
Metering agent don't supports ML2/OVN backend currently and this should
be documented in the feature parity gaps document.

Related-bug: #2048773
Change-Id: I2b8c37f33e3ae4b17cc88bffde014d7d730e59d3
2024-01-11 11:42:05 +00:00
Zuul
0251c03cf4 Merge "Remove the "new_facade" parameter that is no longer needed" 2024-01-11 11:33:49 +00:00
Brian Haley
4007cfa956 Remove deprecated OVN vif_type config option
This config option was originally introduced before
the networking-ovn merge into neutron in 2019, and as
there is no usage it can be safely removed.

TrivialFix

Change-Id: I8ac826926dc8d3881ee57dc677f41bdbed00e5c0
2024-01-10 16:19:18 -05:00
Brian Haley
712d000a7e Remove deprecated name quota_rbac_entry
This deprecated name for quota_rbac_policy was
introduced before 2016, and as there is no usage
according to codesearch it can be safely removed.

TrivialFix

Change-Id: I5cc3392985ee595999a5030e6b9c80a4c3009187
2024-01-10 16:16:16 -05:00
Zuul
1348b92ae5 Merge "[OVN] OVN agent extensions correctly consume agent API" 2024-01-10 19:47:27 +00:00
Zuul
3996685e68 Merge "fix netns deletion of broken namespaces" 2024-01-10 19:40:58 +00:00
Ghanshyam Mann
4d9482d8ec Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I3c5badcc6293840efe52b6d03e5ed990d9f3e8a9
2024-01-09 19:04:32 -08:00
Zuul
dce8c34dd2 Merge "Add a "port" child table "porthardwareoffloadtype"" 2024-01-09 13:21:08 +00:00
Zuul
cd28691d3a Merge "[OVN] "description" property missing in `NeutronAgent`" 2024-01-08 20:57:21 +00:00
Zuul
90ad995fa2 Merge "doc: Drop description about old translation method" 2024-01-08 20:57:12 +00:00
Zuul
b7cc5e1632 Merge "[FT] Remove test "test_get_datapath_id"" 2024-01-08 20:57:08 +00:00
Zuul
46e01f8063 Merge "[OVN] Remove backwards compatibility with OVN < v20.09 ver 2" 2024-01-08 07:42:48 +00:00
Felix Huettner
566fea3fed fix netns deletion of broken namespaces
normal network namespaces are bind-mounted to files under
/var/run/netns. If a process deleting a network namespace gets killed
during that operation there is the chance that the bind mount to the
netns has been removed, but the file under /var/run/netns still exists.

When the neutron-ovn-metadata-agent tries to clean up such network
namespaces it first tires to validate that the network namespace is
empty. For the cases described above this fails, as this network
namespace no longer really exists, but is just a stray file laying
around.

To fix this we treat network namespaces where we get an `OSError` with
errno 22 (Invalid Argument) as empty. The calls to pyroute2 to delete
the namespace will then clean up the file.

Additionally we add a guard to teardown_datapath to continue even if
this fails. failing to remove a datapath is not critical and leaves in
the worst case a process and a network namespace running, however
previously it would have also prevented the creation of new datapaths
which is critical for VM startup.

Closes-Bug: #2037102
Change-Id: I7c43812fed5903f98a2e491076c24a8d926a59b4
2024-01-08 07:51:33 +01:00
Zuul
0c251cce60 Merge "Handle creation of Port_Binding with chassis set" 2024-01-04 13:21:40 +00:00
Zuul
97b84180b2 Merge "[OVN] Update release note section to "fixes" for LP#2036705" 2024-01-03 10:15:36 +00:00
Zuul
de58c1b995 Merge "[UT] OVN fake resources factory method should return instance" 2024-01-02 12:13:43 +00:00
Zuul
5b728c55fb Merge "Improve the SG RPC callback `security_group_info_for_ports`" 2023-12-26 16:48:00 +00:00
Jakub Libosvar
087df97449 [OVN] Remove backwards compatibility with OVN < v20.09 ver 2
This is a followup patch for Iec8854749a1df81eb6a7154d3f951e176c69156d
that left some other unused code in tree. This patch attempts to remove
the remaining pieces.

Related-Bug: 2002839
Change-Id: Ie297dfba17deb79b38cf9f6eccf4f1a8e9e5060a
Signed-off-by: Jakub Libosvar <libosvar@redhat.com>
2023-12-22 05:42:26 +00:00
Rodolfo Alonso Hernandez
d603b0fc2c [OVN] "description" property missing in `NeutronAgent`
The "description" property abstract method definition is missing in
the abstract class ``NeutronAgent``. This property is being used in
this definition, in the "as_dict" method.

Trivial-Fix

Change-Id: I18029707414fc361b36e85326e2e9dadd7d6c336
2023-12-21 22:54:28 +00:00
Takashi Kajinami
ff94b49ce5 doc: Drop description about old translation method
Current translation no longer use babel[1] or these setup.cfg
entries[2].

[1] 4e907ed2f39329eaa12d1712d49ca8903db15124
[2] 22df2f6395c1426485a7cb97166601823f8a2a28

Change-Id: Ic866a41b00c37c549a83274e33ac18d0aba846bb
2023-12-21 02:36:09 +09:00
Rodolfo Alonso Hernandez
b4d39fd6e5 [FT] Remove test "test_get_datapath_id"
The method to retrieve an OVS bridge datapath ID have proven to work.
However the functional test is unstable. In order to improve the CI
stability, this patch is removing this single test.

Closes-Bug: #2000163
Change-Id: I784b29e364d21d064ede233aa05a1f00079a4cae
2023-12-20 11:52:07 +00:00
Rodolfo Alonso Hernandez
e45c403676 [UT] OVN fake resources factory method should return instance
The OVN fake resources factory method should return an instance
of the requested object, not a "type" metaclass object.

Closes-Bug: #2047049
Change-Id: I85c613dd628d7d2b67446d999b3e4d7b91eaf9fe
2023-12-20 04:08:08 +00:00
Rodolfo Alonso Hernandez
86efc8be99 [OVN] OVN agent extensions correctly consume agent API
Now the ``OVNAgentExtension`` class do not clear the agent API during
the extension initialization.

This patch also passes the agent object to the OVN agent extensions
as agent API. Any method required will be implemented directly on the
OVN agent class.

Closes-Bug: #2046939
Change-Id: Ia635ca1ff97c3db43a34d3dec6a7f9df154dfe28
2023-12-19 15:38:53 +00:00
Rodolfo Alonso Hernandez
fa46584af9 [OVN] Retrieve the OVN agent extensions correctly
Now the OVN agent implements a method ``__getitem__`` that retrieves,
from ``self.ext_manager``, a loaded extension by its name. The method
returns the instantiated extension object.

Closes-Bug: #2046892
Change-Id: Ibb6dc7c9150bf99639d5b6180356963998dc4e49
2023-12-19 15:32:26 +00:00
Zuul
ef3089547b Merge "Fix IGMP inconsistency across drivers" 2023-12-18 13:19:07 +00:00
Zuul
0643e1c3af Merge "[OVN][FT] Make explicit the "publish" call check in "test_port_forwarding"" 2023-12-18 05:37:42 +00:00
Terry Wilson
a641e8aec0 Handle creation of Port_Binding with chassis set
When there is a backlog of notifications to be sent, it is possible
that ovsdb-server will merge insert and update notifications. Due
to this, we need to handle the situation where we see a Port_Binding
created with the chassis set.

Closes-Bug: #2017748

Change-Id: Idfae87cf6c60e9e18ede91ea20857cea5322738c
2023-12-15 21:00:43 +00:00
Zuul
cf1d5ea35c Merge "[ovn] Add support for IPv6 metadata" 2023-12-15 13:10:13 +00:00